Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ toolchains_qnx.sdp(
)
use_repo(toolchains_qnx, "toolchains_qnx_sdp")
use_repo(toolchains_qnx, "toolchains_qnx_ifs")

4 changes: 2 additions & 2 deletions bazel_common/score_modules_target_sw.MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ git_override(
bazel_dep(name = "score_lifecycle_health")
git_override(
module_name = "score_lifecycle_health",
commit = "14ee704eeac03e03ca10bece5de8b694d3c5e2dd",
remote = "https://github.com/eclipse-score/lifecycle.git",
commit = "e538003a2cdb30b03c78158894dbd7289ea99479",
remote = "https://github.com/etas-contrib/score_lifecycle.git",
)

bazel_dep(name = "score_logging")
Expand Down
59 changes: 7 additions & 52 deletions showcases/simple_lifecycle/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("//bazel_common:bundlers.bzl", "score_pkg_bundle")

load("@score_lifecycle_health//:defs.bzl", "launch_manager_config")
launch_manager_config(
name ="lifecycle_configs",
config="//showcases/simple_lifecycle/configs:launch_manager_config.json"
)

score_pkg_bundle(
name = "simple_lifecycle",
bins = [
Expand All @@ -26,57 +32,6 @@ score_pkg_bundle(
"//showcases/simple_lifecycle:simple_lifecycle.score.json",
],
custom_layout = {
":lm_demo.bin": "etc/lm_demo.bin",
":hm_demo.bin": "etc/hm_demo.bin",
":cpp_supervised_app_demo.bin": "etc/cpp_supervised_app_demo.bin",
":rust_supervised_app_demo.bin": "etc/rust_supervised_app_demo.bin",
":lifecycle_configs": "etc/",
},
)

genrule(
name = "gen_lm_demo.bin",
srcs = [
"@score_lifecycle_health//src/launch_manager_daemon:lm_flatcfg_fbs",
"//showcases/simple_lifecycle/configs:lm_demo.json",
],
outs = ["lm_demo.bin"],
cmd = "$(location @flatbuffers//:flatc) --binary $(SRCS) && mv lm_demo.bin $(location lm_demo.bin)",
tools = ["@flatbuffers//:flatc"],
visibility = ["//visibility:public"],
)

genrule(
name = "gen_hm_demo.bin",
srcs = [
"@score_lifecycle_health//src/launch_manager_daemon/health_monitor_lib:hm_flatcfg_fbs",
"//showcases/simple_lifecycle/configs:hm_demo.json",
],
outs = ["hm_demo.bin"],
cmd = "$(location @flatbuffers//:flatc) --binary $(SRCS) && mv hm_demo.bin $(location hm_demo.bin)",
tools = ["@flatbuffers//:flatc"],
visibility = ["//visibility:public"],
)

genrule(
name = "gen_cpp_supervised_app_demo.bin",
srcs = [
"@score_lifecycle_health//src/launch_manager_daemon/health_monitor_lib:hm_flatcfg_fbs",
"//showcases/simple_lifecycle/configs:cpp_supervised_app_demo.json",
],
outs = ["cpp_supervised_app_demo.bin"],
cmd = "$(location @flatbuffers//:flatc) --binary $(SRCS) && mv cpp_supervised_app_demo.bin $(location cpp_supervised_app_demo.bin)",
tools = ["@flatbuffers//:flatc"],
visibility = ["//visibility:public"],
)

genrule(
name = "gen_rust_supervised_app_demo.bin",
srcs = [
"@score_lifecycle_health//src/launch_manager_daemon/health_monitor_lib:hm_flatcfg_fbs",
"//showcases/simple_lifecycle/configs:rust_supervised_app_demo.json",
],
outs = ["rust_supervised_app_demo.bin"],
cmd = "$(location @flatbuffers//:flatc) --binary $(SRCS) && mv rust_supervised_app_demo.bin $(location rust_supervised_app_demo.bin)",
tools = ["@flatbuffers//:flatc"],
visibility = ["//visibility:public"],
)
5 changes: 1 addition & 4 deletions showcases/simple_lifecycle/configs/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
exports_files([
"hm_demo.json",
"lm_demo.json",
"cpp_supervised_app_demo.json",
"rust_supervised_app_demo.json",
"launch_manager_config.json"
])
14 changes: 0 additions & 14 deletions showcases/simple_lifecycle/configs/cpp_supervised_app_demo.json

This file was deleted.

165 changes: 0 additions & 165 deletions showcases/simple_lifecycle/configs/hm_demo.json

This file was deleted.

Loading
Loading