Skip to content

Commit e602fd3

Browse files
fixing formatters
Fixing visbility fixing visibility
1 parent ff99eec commit e602fd3

7 files changed

Lines changed: 16 additions & 123 deletions

File tree

examples/demo_verification/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ pkg_files(
3838
pkg_files(
3939
name = "examples_etc_files",
4040
srcs = [
41-
":examples_test_config",
4241
"ecu_logging_config.json",
4342
"hm_logging.json",
4443
"logging.json",
44+
":examples_test_config",
4545
],
4646
prefix = "tests/examples/etc",
4747
)

score/launch_manager/src/daemon/src/alive_monitor/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# *******************************************************************************
1313
load("@rules_cc//cc:defs.bzl", "cc_library")
1414

15-
1615
cc_library(
1716
name = "alive_monitor",
1817
visibility = ["//score:__subpackages__"],

score/launch_manager/src/daemon/src/alive_monitor/config/BUILD

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
# *******************************************************************************
1313
load("@score_baselibs//score/flatbuffers/bazel:codegen.bzl", "generate_cpp")
1414

15-
16-
exports_files([
17-
"hm_flatcfg.fbs",
18-
"hmcore_flatcfg.fbs",
15+
exports_files(
16+
[
17+
"hm_flatcfg.fbs",
18+
"hmcore_flatcfg.fbs",
1919
],
2020
visibility = ["//visibility:public"],
2121
)
@@ -41,5 +41,8 @@ cc_library(
4141
":hmcore_config",
4242
],
4343
include_prefix = "score/mw/launch_manager/alive_monitor/config",
44-
visibility = ["//visibility:public"],
44+
visibility = ["//score/launch_manager/daemon/src/alive_monitor:__subpackages__"],
45+
deps = [
46+
"@score_baselibs//score/flatbuffers:flatbufferscpp",
47+
],
4548
)

score/launch_manager/src/daemon/src/configuration/BUILD

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ cc_test(
9797
visibility = ["//tests:__subpackages__"],
9898
deps = [
9999
":flatbuffer_type_converters",
100-
"@score_baselibs//score/flatbuffers:flatbufferscpp",
101100
"@googletest//:gtest_main",
101+
"@score_baselibs//score/flatbuffers:flatbufferscpp",
102102
],
103103
)
104104

@@ -108,16 +108,7 @@ cc_test(
108108
visibility = ["//tests:__subpackages__"],
109109
deps = [
110110
":flatbuffer_config_loader",
111-
"@score_baselibs//score/flatbuffers:flatbufferscpp",
112111
"@googletest//:gtest_main",
113-
],
114-
)
115-
116-
cc_library(
117-
name = "lm_flatcfg",
118-
visibility = ["//score:__subpackages__"],
119-
deps = [
120-
"//score/launch_manager/daemon/src/configuration/config_schema:config_lib",
121112
"@score_baselibs//score/flatbuffers:flatbufferscpp",
122113
],
123114
)
@@ -130,12 +121,12 @@ cc_library(
130121
strip_include_prefix = "/score/launch_manager/src/daemon/src/configuration",
131122
visibility = ["//score:__subpackages__"],
132123
deps = [
133-
":lm_flatcfg",
134124
"//score/launch_manager:error",
135125
"//score/launch_manager/daemon/src/common:constants",
136126
"//score/launch_manager/daemon/src/common:identifier_hash",
137127
"//score/launch_manager/daemon/src/common:log",
138128
"//score/launch_manager/daemon/src/common:process_group_state_id",
129+
"//score/launch_manager/daemon/src/configuration/config_schema",
139130
"//score/launch_manager/daemon/src/osal:num_cores",
140131
"//score/launch_manager/daemon/src/process_group_manager:iprocess",
141132
"//score/launch_manager/daemon/src/process_state_client:posix_process",

score/launch_manager/src/daemon/src/configuration/config_schema/BUILD

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,17 @@ exports_files(
2121
visibility = ["//visibility:public"],
2222
)
2323

24-
filegroup(
25-
name = "config_schema_files",
26-
srcs = [
27-
"launch_manager.schema.json",
28-
],
29-
visibility = ["//visibility:public"],
30-
)
31-
3224
generate_cpp(
33-
name = "config",
25+
name = "fbs_config",
3426
output = "lm_flatcfg_generated.h",
3527
schema = "lm_flatcfg.fbs",
36-
visibility = ["//visibility:public"],
28+
visibility = ["//visibility:private"],
3729
)
3830

3931
cc_library(
40-
name = "config_lib",
41-
hdrs = [":config"],
32+
name = "config_schema",
33+
hdrs = [":fbs_config"],
4234
include_prefix = "score/mw/launch_manager/configuration",
43-
visibility = ["//visibility:public"],
35+
visibility = ["//score/launch_manager/daemon/src/configuration:__subpackages__"],
4436
deps = ["@score_baselibs//score/flatbuffers:flatbufferscpp"],
4537
)

score/launch_manager/src/daemon/src/configuration/lm_flatcfg.fbs

Lines changed: 0 additions & 90 deletions
This file was deleted.

scripts/config_mapping/config.bzl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def _lm_config_splitter_impl(ctx):
2121
],
2222
)
2323

24-
2524
lm_config_splitter = rule(
2625
implementation = _lm_config_splitter_impl,
2726
attrs = {
@@ -49,7 +48,6 @@ lm_config_splitter = rule(
4948
},
5049
)
5150

52-
5351
def launch_manager_config(
5452
name,
5553
config,

0 commit comments

Comments
 (0)