Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

platform-specific configurations for Snappy library, in snappy.gyp file #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kinaqu
Copy link

@Kinaqu Kinaqu commented Dec 14, 2024

Added platform-specific build configurations for the Snappy compression library.

  • Defined OS-specific conditions for Linux, macOS, Windows, FreeBSD, OpenBSD, and Solaris.
  • Included OS-specific directories for header files via the 'os_include' variable.
  • Set appropriate compiler flags for each platform to optimize the build process:
    • Suppressed warnings on Linux, FreeBSD, OpenBSD, and Solaris.
    • Disabled exceptions and customized MSVC settings for Windows.
    • Configured Xcode settings for macOS to support both x86_64 and arm64 architectures.
  • Specified sources and includes for building the static library snappy.
  • Enabled standalone static library creation to fix linker issues on SmartOS.

These changes allow Snappy to be built and optimized for multiple platforms, ensuring smoother cross-platform compatibility.

Added platform-specific build configurations for the Snappy compression library.

- Defined OS-specific conditions for Linux, macOS, Windows, FreeBSD, OpenBSD, and Solaris.
- Included OS-specific directories for header files via the 'os_include' variable.
- Set appropriate compiler flags for each platform to optimize the build process:
  - Suppressed warnings on Linux, FreeBSD, OpenBSD, and Solaris.
  - Disabled exceptions and customized MSVC settings for Windows.
  - Configured Xcode settings for macOS to support both x86_64 and arm64 architectures.
- Specified sources and includes for building the static library `snappy`.
- Enabled standalone static library creation to fix linker issues on SmartOS.

These changes allow Snappy to be built and optimized for multiple platforms, ensuring smoother cross-platform compatibility.
Copy link
Author

@Kinaqu Kinaqu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Defined OS-specific conditions for Linux, macOS, Windows, FreeBSD, OpenBSD, and Solaris.
  • Included OS-specific directories for header files via the 'os_include' variable.
  • Set appropriate compiler flags for each platform to optimize the build process:
    • Suppressed warnings on Linux, FreeBSD, OpenBSD, and Solaris.
    • Disabled exceptions and customized MSVC settings for Windows.
    • Configured Xcode settings for macOS to support both x86_64 and arm64 architectures.
  • Specified sources and includes for building the static library snappy.
  • Enabled standalone static library creation to fix linker issues on SmartOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant