1111# SPDX-License-Identifier: Apache-2.0
1212# *******************************************************************************
1313
14- load ("@rules_rust//rust:defs.bzl" , "rust_library" , "rust_test " , "rust_static_library " )
14+ load ("@rules_rust//rust:defs.bzl" , "rust_library" , "rust_static_library " , "rust_test " )
1515load ("@score_baselibs//:bazel/unit_tests.bzl" , "cc_gtest_unit_test" , "cc_unit_test_suites_for_host_and_qnx" )
1616
1717rust_library (
@@ -27,7 +27,6 @@ rust_library(
2727 ],
2828)
2929
30-
3130rust_static_library (
3231 name = "health_monitoring_lib_ffi" ,
3332 srcs = glob (["src/**/*.rs" ]),
@@ -52,26 +51,25 @@ rust_test(
5251cc_library (
5352 name = "health_monitoring_lib_cc" ,
5453 srcs = [
55- "cpp/deadline/deadline_monitor.cpp" ,
56- "cpp/health_monitor.cpp" ,
5754 "cpp/common.cpp" ,
55+ "cpp/deadline/deadline_monitor.cpp" ,
5856 "cpp/ffi_helpers.h" ,
59- ],
57+ "cpp/health_monitor.cpp" ,
58+ ],
6059 hdrs = [
61- "cpp/include/score/hm/deadline/deadline_monitor.h" ,
6260 "cpp/include/score/hm/common.h" ,
63- "cpp/include/score/hm/health_monitor.h"
64-
61+ "cpp/include/score/hm/deadline/deadline_monitor.h" ,
62+ "cpp/include/score/hm/health_monitor.h" ,
63+ ],
64+ copts = [
65+ "-Isrc/health_monitoring_lib/cpp" , # private include path
6566 ],
66- visibility = ["//visibility:public" ],
6767 strip_include_prefix = "cpp/include" ,
68+ visibility = ["//visibility:public" ],
6869 deps = [
6970 ":health_monitoring_lib_ffi" ,
7071 "@score_baselibs//score/result" ,
7172 ],
72- copts = [
73- "-Isrc/health_monitoring_lib/cpp" , # private include path
74- ],
7573)
7674
7775cc_gtest_unit_test (
@@ -82,4 +80,4 @@ cc_gtest_unit_test(
8280 deps = [
8381 ":health_monitoring_lib_cc" ,
8482 ],
85- )
83+ )
0 commit comments