summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/execution_api/execution_service/TARGETS4
-rw-r--r--src/buildtool/main/TARGETS1
-rw-r--r--src/buildtool/serve_api/serve_service/TARGETS2
-rw-r--r--src/buildtool/storage/TARGETS24
-rw-r--r--src/other_tools/just_mr/TARGETS4
5 files changed, 30 insertions, 5 deletions
diff --git a/src/buildtool/execution_api/execution_service/TARGETS b/src/buildtool/execution_api/execution_service/TARGETS
index 05db677d..1e630d30 100644
--- a/src/buildtool/execution_api/execution_service/TARGETS
+++ b/src/buildtool/execution_api/execution_service/TARGETS
@@ -32,6 +32,7 @@
, ["src/buildtool/file_system", "file_system_manager"]
, ["src/buildtool/file_system", "object_type"]
, ["src/buildtool/logging", "log_level"]
+ , ["src/buildtool/storage", "garbage_collector"]
, ["src/utils/cpp", "hex_string"]
, ["src/utils/cpp", "path"]
]
@@ -60,6 +61,7 @@
, ["src/buildtool/common", "common"]
, ["src/buildtool/crypto", "hash_function"]
, ["src/buildtool/logging", "log_level"]
+ , ["src/buildtool/storage", "garbage_collector"]
, ["src/utils/cpp", "expected"]
]
}
@@ -90,6 +92,7 @@
, ["src/buildtool/common", "common"]
, ["src/buildtool/crypto", "hash_function"]
, ["src/buildtool/logging", "log_level"]
+ , ["src/buildtool/storage", "garbage_collector"]
, ["src/utils/cpp", "expected"]
]
}
@@ -150,6 +153,7 @@
, ["src/buildtool/crypto", "hash_function"]
, ["src/buildtool/execution_api/common", "bytestream_utils"]
, ["src/buildtool/logging", "log_level"]
+ , ["src/buildtool/storage", "garbage_collector"]
, ["src/utils/cpp", "expected"]
, ["src/utils/cpp", "tmp_dir"]
]
diff --git a/src/buildtool/main/TARGETS b/src/buildtool/main/TARGETS
index 69079c44..b93091b7 100644
--- a/src/buildtool/main/TARGETS
+++ b/src/buildtool/main/TARGETS
@@ -64,6 +64,7 @@
, ["src/buildtool/storage", "backend_description"]
, ["src/buildtool/storage", "config"]
, ["src/buildtool/storage", "file_chunker"]
+ , ["src/buildtool/storage", "garbage_collector"]
, ["src/buildtool/storage", "storage"]
, ["src/utils/cpp", "expected"]
, ["src/utils/cpp", "gsl"]
diff --git a/src/buildtool/serve_api/serve_service/TARGETS b/src/buildtool/serve_api/serve_service/TARGETS
index e109a072..b149c1f4 100644
--- a/src/buildtool/serve_api/serve_service/TARGETS
+++ b/src/buildtool/serve_api/serve_service/TARGETS
@@ -47,6 +47,7 @@
, ["src/buildtool/multithreading", "task_system"]
, ["src/buildtool/storage", "config"]
, ["src/buildtool/storage", "fs_utils"]
+ , ["src/buildtool/storage", "garbage_collector"]
, ["src/buildtool/storage", "repository_garbage_collector"]
, ["src/buildtool/storage", "storage"]
, ["src/utils/archive", "archive_ops"]
@@ -150,6 +151,7 @@
, ["src/buildtool/progress_reporting", "progress_reporter"]
, ["src/buildtool/storage", "backend_description"]
, ["src/buildtool/storage", "config"]
+ , ["src/buildtool/storage", "garbage_collector"]
, ["src/buildtool/storage", "repository_garbage_collector"]
, ["src/buildtool/storage", "storage"]
, ["src/utils/cpp", "tmp_dir"]
diff --git a/src/buildtool/storage/TARGETS b/src/buildtool/storage/TARGETS
index b334e4d0..55b6c533 100644
--- a/src/buildtool/storage/TARGETS
+++ b/src/buildtool/storage/TARGETS
@@ -46,7 +46,6 @@
, "target_cache.tpp"
, "target_cache_key.hpp"
, "target_cache_entry.hpp"
- , "garbage_collector.hpp"
, "large_object_cas.hpp"
, "large_object_cas.tpp"
, "compactifier.hpp"
@@ -55,7 +54,6 @@
, "private-hdrs": ["compactification_task.hpp"]
, "srcs":
[ "target_cache_entry.cpp"
- , "garbage_collector.cpp"
, "compactifier.cpp"
, "compactification_task.cpp"
, "uplinker.cpp"
@@ -83,7 +81,6 @@
, ["src/buildtool/logging", "log_level"]
, ["src/buildtool/logging", "logging"]
, ["src/utils/cpp", "expected"]
- , ["src/utils/cpp", "file_locking"]
, ["src/utils/cpp", "gsl"]
, ["src/utils/cpp", "tmp_dir"]
]
@@ -91,13 +88,30 @@
, "private-deps":
[ ["src/buildtool/build_engine/expression", "expression_ptr_interface"]
, ["src/buildtool/crypto", "hasher"]
- , ["src/buildtool/execution_api/common", "common"]
- , ["src/buildtool/execution_api/common", "message_limits"]
, ["src/buildtool/multithreading", "task_system"]
, ["src/utils/cpp", "hex_string"]
, ["src/utils/cpp", "path_hash"]
]
}
+, "garbage_collector":
+ { "type": ["@", "rules", "CC", "library"]
+ , "name": ["garbage_collector"]
+ , "hdrs": ["garbage_collector.hpp"]
+ , "srcs": ["garbage_collector.cpp"]
+ , "deps": ["config", ["src/utils/cpp", "file_locking"]]
+ , "private-deps":
+ [ "storage"
+ , ["@", "fmt", "", "fmt"]
+ , ["src/buildtool/crypto", "hash_function"]
+ , ["src/buildtool/execution_api/common", "common"]
+ , ["src/buildtool/execution_api/common", "message_limits"]
+ , ["src/buildtool/file_system", "file_system_manager"]
+ , ["src/buildtool/logging", "log_level"]
+ , ["src/buildtool/logging", "logging"]
+ , ["src/utils/cpp", "expected"]
+ ]
+ , "stage": ["src", "buildtool", "storage"]
+ }
, "fs_utils":
{ "type": ["@", "rules", "CC", "library"]
, "name": ["fs_utils"]
diff --git a/src/other_tools/just_mr/TARGETS b/src/other_tools/just_mr/TARGETS
index a90aef8d..b8792067 100644
--- a/src/other_tools/just_mr/TARGETS
+++ b/src/other_tools/just_mr/TARGETS
@@ -27,6 +27,7 @@
, ["src/buildtool/logging", "logging"]
, ["src/buildtool/main", "version"]
, ["src/buildtool/storage", "config"]
+ , ["src/buildtool/storage", "garbage_collector"]
, ["src/buildtool/storage", "repository_garbage_collector"]
, ["src/buildtool/storage", "storage"]
, ["src/utils/cpp", "expected"]
@@ -150,6 +151,7 @@
, ["src/buildtool/multithreading", "task_system"]
, ["src/buildtool/progress_reporting", "base_progress_reporter"]
, ["src/buildtool/serve_api/remote", "serve_api"]
+ , ["src/buildtool/storage", "garbage_collector"]
, ["src/other_tools/just_mr/progress_reporting", "progress"]
, ["src/other_tools/just_mr/progress_reporting", "progress_reporter"]
, ["src/other_tools/just_mr/progress_reporting", "statistics"]
@@ -235,6 +237,7 @@
, ["src/buildtool/progress_reporting", "base_progress_reporter"]
, ["src/buildtool/serve_api/remote", "serve_api"]
, ["src/buildtool/storage", "fs_utils"]
+ , ["src/buildtool/storage", "garbage_collector"]
, ["src/other_tools/just_mr/progress_reporting", "progress"]
, ["src/other_tools/just_mr/progress_reporting", "progress_reporter"]
, ["src/other_tools/just_mr/progress_reporting", "statistics"]
@@ -277,6 +280,7 @@
, ["src/buildtool/common", "user_structs"]
, ["src/buildtool/logging", "log_level"]
, ["src/buildtool/logging", "logging"]
+ , ["src/buildtool/storage", "garbage_collector"]
, ["src/buildtool/storage", "repository_garbage_collector"]
, ["src/utils/cpp", "file_locking"]
]