2019-01-07 09:31:27 +00:00
|
|
|
load("@rules_foreign_cc//tools/build_defs:cmake.bzl", "cmake_external")
|
2018-09-10 09:54:59 +00:00
|
|
|
load("@foreign_cc_platform_utils//:tools.bzl", "NINJA_COMMAND", "NINJA_DEP")
|
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 = [
|
2018-08-30 15:31:02 +00:00
|
|
|
NINJA_COMMAND,
|
|
|
|
NINJA_COMMAND + " install",
|
2018-08-22 08:22:56 +00:00
|
|
|
],
|
|
|
|
static_libraries = ["libnghttp2.a"],
|
2018-09-10 09:54:59 +00:00
|
|
|
tools_deps = NINJA_DEP,
|
2018-08-22 08:22:56 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "test_nghttp2",
|
|
|
|
srcs = ["nghttp2-test.cpp"],
|
|
|
|
visibility = ["//:__pkg__"],
|
|
|
|
deps = [":nghttp2"],
|
|
|
|
)
|