Skip to content

Instantly share code, notes, and snippets.

@Morfly
Last active May 3, 2022 05:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Morfly/f0c0952341ef5fff2b0b0f3f99a99a4f to your computer and use it in GitHub Desktop.
Save Morfly/f0c0952341ef5fff2b0b0f3f99a99a4f to your computer and use it in GitHub Desktop.
# third_party/glfw/glfw.BUILD
...
cc_library(
name = "glfw_src",
srcs = COMMON_SRCS + select({
"@bazel_tools//src/conditions:windows": WIN32_SRCS,
"@bazel_tools//src/conditions:linux_x86_64": LINUX_SRCS,
}),
hdrs = COMMON_HDRS + select({
"@bazel_tools//src/conditions:windows": WIN32_HDRS,
"@bazel_tools//src/conditions:linux_x86_64": LINUX_HDRS,
}),
defines = select({
"@bazel_tools//src/conditions:windows": WIN32_DEFINES,
"@bazel_tools//src/conditions:linux_x86_64": LINUX_DEFINES,
}),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment