summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/common/TARGETS
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-05-21 16:21:29 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-05-23 15:03:41 +0200
commitaf9a4c74e28d188e610f345065a9c78bb81ba9b2 (patch)
tree9d50a9154a29f2dfc798921e140f2d6870a97e28 /src/buildtool/execution_api/common/TARGETS
parentcc24ac99155345e61fa8d08de91be13bb31b5f6f (diff)
downloadjustbuild-af9a4c74e28d188e610f345065a9c78bb81ba9b2.tar.gz
Execution APIs: Extract common implementation into separate library
This reduces the code duplication between the local and bazel APIs and improves code maintainability.
Diffstat (limited to 'src/buildtool/execution_api/common/TARGETS')
-rw-r--r--src/buildtool/execution_api/common/TARGETS20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/buildtool/execution_api/common/TARGETS b/src/buildtool/execution_api/common/TARGETS
index d2fcfc6d..210cbb3a 100644
--- a/src/buildtool/execution_api/common/TARGETS
+++ b/src/buildtool/execution_api/common/TARGETS
@@ -48,4 +48,24 @@
, "deps": [["@", "grpc", "", "grpc++"]]
, "stage": ["src", "buildtool", "execution_api", "common"]
}
+, "common_api":
+ { "type": ["@", "rules", "CC", "library"]
+ , "name": ["common_api"]
+ , "hdrs": ["common_api.hpp"]
+ , "srcs": ["common_api.cpp"]
+ , "deps":
+ [ "common"
+ , ["@", "gsl", "", "gsl"]
+ , ["src/buildtool/common", "common"]
+ , ["src/buildtool/execution_api/bazel_msg", "bazel_msg_factory"]
+ , ["src/buildtool/execution_api/bazel_msg", "blob_tree"]
+ , ["src/buildtool/execution_api/bazel_msg", "directory_tree"]
+ ]
+ , "stage": ["src", "buildtool", "execution_api", "common"]
+ , "private-deps":
+ [ ["@", "fmt", "", "fmt"]
+ , ["src/buildtool/logging", "logging"]
+ , ["src/buildtool/logging", "log_level"]
+ ]
+ }
}