2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-12-04 08:02:31 +00:00
rules_foreign_cc/examples/cmake_nghttp2/BUILD

26 lines
676 B
Python
Raw Normal View History

load("@rules_foreign_cc//tools/build_defs:cmake.bzl", "cmake_external")
2018-08-22 08:22:56 +00:00
cmake_external(
name = "nghttp2",
cache_entries = {
"ENABLE_STATIC_LIB": "on",
"ENABLE_LIB_ONLY": "on",
},
cmake_options = ["-GNinja"],
lib_source = "@nghttp2//:all",
make_commands = [
# The correct path to the ninja tool is detected from the selected ninja_toolchain.
# and "ninja" will be replaced with that path if needed
"ninja",
"ninja install",
2018-08-22 08:22:56 +00:00
],
static_libraries = ["libnghttp2.a"],
)
cc_test(
name = "test_nghttp2",
srcs = ["nghttp2-test.cpp"],
visibility = ["//:__pkg__"],
deps = [":nghttp2"],
)