2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-11-28 08:43:26 +00:00
rules_foreign_cc/examples/BUILD.bazel
jheaff1 5163c3cec8
Build OpenSSL using MSVC toolchain on Windows (#729)
* build OpenSSL using MSVC toolchain on Windows

* Display lib name in progress message

Before this commit, when building OpenSSL using MSVC, the progress
message would display "Building openssl_msvc_".

After this commit, the progess message would display
"Building openssl".

* Add test to verify linkage with OpenSSL libs

* Add test to verify linkage with Curl libs

Note that linker errors occur in applications that link with libssl
and libcrypto if libcrypto comes before libssl on the linker
command-line. Swapping the order of libcrypto and libssl in
BUILD.openssl.bazel resolved the issue.
2021-07-28 08:13:03 -07:00

49 lines
1.4 KiB
Python

# TODO: This should not be necessary but there appears to be some inconsistent
# behavior with the use of `constraint_value`s in `select` statements. A support
# thread was started at the end of https://github.com/bazelbuild/bazel/pull/12071
# Once it is possible to replace `:windows` with `@platforms//os:windows` that
# should be done for this file. Note actioning on this will set the minimum
# supported version of Bazel to 4.0.0 for these examples.
config_setting(
name = "windows",
constraint_values = ["@platforms//os:windows"],
visibility = ["//visibility:public"],
)
config_setting(
name = "macos",
constraint_values = ["@platforms//os:macos"],
visibility = ["//visibility:public"],
)
config_setting(
name = "msvc_compiler",
flag_values = {
"@bazel_tools//tools/cpp:compiler": "msvc-cl",
},
)
test_suite(
name = "third_party_examples_linux_tests",
tags = ["manual"],
tests = ["@rules_foreign_cc_examples_third_party//:linux_tests"],
)
test_suite(
name = "third_party_examples_linux_rbe_tests",
tags = ["manual"],
tests = ["@rules_foreign_cc_examples_third_party//:linux_rbe_tests"],
)
test_suite(
name = "third_party_examples_macos_tests",
tags = ["manual"],
tests = ["@rules_foreign_cc_examples_third_party//:macos_tests"],
)
test_suite(
name = "third_party_examples_windows_tests",
tags = ["manual"],
tests = ["@rules_foreign_cc_examples_third_party//:windows_tests"],
)