diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-03-14 16:21:55 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-03-15 13:12:48 +0100 |
commit | d0f2ba0ab15e63aa3511218a837eb6f057632ace (patch) | |
tree | 999aabe895ceee4dc692745b759b6279abb3885c /src/other_tools/utils | |
parent | 208e2af5b78167777f64864c209f0af6ad4d1ef7 (diff) | |
download | justbuild-d0f2ba0ab15e63aa3511218a837eb6f057632ace.tar.gz |
Clean up more includes and targets
Some of the more specific issues addressed:
- missing log_level target/include
- header-only libs wrongly marking deps as private
- missing/misplaced gsl includes
Diffstat (limited to 'src/other_tools/utils')
-rw-r--r-- | src/other_tools/utils/TARGETS | 21 | ||||
-rw-r--r-- | src/other_tools/utils/curl_context.cpp | 1 | ||||
-rw-r--r-- | src/other_tools/utils/curl_easy_handle.cpp | 2 | ||||
-rw-r--r-- | src/other_tools/utils/curl_easy_handle.hpp | 1 | ||||
-rw-r--r-- | src/other_tools/utils/curl_url_handle.cpp | 1 |
5 files changed, 17 insertions, 9 deletions
diff --git a/src/other_tools/utils/TARGETS b/src/other_tools/utils/TARGETS index 207dfb76..e210f901 100644 --- a/src/other_tools/utils/TARGETS +++ b/src/other_tools/utils/TARGETS @@ -4,21 +4,22 @@ , "hdrs": ["curl_context.hpp"] , "srcs": ["curl_context.cpp"] , "stage": ["src", "other_tools", "utils"] - , "private-deps": [["src/buildtool/logging", "logging"], ["", "libcurl"]] + , "private-deps": + [ ["src/buildtool/logging", "log_level"] + , ["src/buildtool/logging", "logging"] + , ["", "libcurl"] + ] } , "curl_easy_handle": { "type": ["@", "rules", "CC", "library"] , "name": ["curl_easy_handle"] , "hdrs": ["curl_easy_handle.hpp"] , "srcs": ["curl_easy_handle.cpp"] - , "deps": - [ "curl_context" - , ["src/buildtool/logging", "log_level"] - , ["@", "gsl", "", "gsl"] - ] + , "deps": ["curl_context", ["src/buildtool/logging", "log_level"]] , "stage": ["src", "other_tools", "utils"] , "private-deps": - [ ["src/buildtool/file_system", "file_system_manager"] + [ ["@", "gsl", "", "gsl"] + , ["src/buildtool/file_system", "file_system_manager"] , ["src/buildtool/logging", "logging"] , ["", "libcurl"] ] @@ -30,7 +31,11 @@ , "srcs": ["curl_url_handle.cpp"] , "deps": ["curl_context", ["@", "gsl", "", "gsl"]] , "stage": ["src", "other_tools", "utils"] - , "private-deps": [["src/buildtool/logging", "logging"], ["", "libcurl"]] + , "private-deps": + [ ["src/buildtool/logging", "log_level"] + , ["src/buildtool/logging", "logging"] + , ["", "libcurl"] + ] } , "content": { "type": ["@", "rules", "CC", "library"] diff --git a/src/other_tools/utils/curl_context.cpp b/src/other_tools/utils/curl_context.cpp index 46f7cfac..44d8048d 100644 --- a/src/other_tools/utils/curl_context.cpp +++ b/src/other_tools/utils/curl_context.cpp @@ -14,6 +14,7 @@ #include "src/other_tools/utils/curl_context.hpp" +#include "src/buildtool/logging/log_level.hpp" #include "src/buildtool/logging/logger.hpp" extern "C" { diff --git a/src/other_tools/utils/curl_easy_handle.cpp b/src/other_tools/utils/curl_easy_handle.cpp index cf833be9..6939c6d1 100644 --- a/src/other_tools/utils/curl_easy_handle.cpp +++ b/src/other_tools/utils/curl_easy_handle.cpp @@ -17,7 +17,9 @@ #include <cstdio> #include <fstream> +#include "gsl/gsl" #include "src/buildtool/file_system/file_system_manager.hpp" +#include "src/buildtool/logging/log_level.hpp" #include "src/buildtool/logging/logger.hpp" extern "C" { diff --git a/src/other_tools/utils/curl_easy_handle.hpp b/src/other_tools/utils/curl_easy_handle.hpp index 4c03d968..1a3d31c3 100644 --- a/src/other_tools/utils/curl_easy_handle.hpp +++ b/src/other_tools/utils/curl_easy_handle.hpp @@ -21,7 +21,6 @@ #include <optional> #include <string> -#include "gsl/gsl" #include "src/buildtool/logging/log_level.hpp" #include "src/other_tools/utils/curl_context.hpp" diff --git a/src/other_tools/utils/curl_url_handle.cpp b/src/other_tools/utils/curl_url_handle.cpp index 27898299..912691b4 100644 --- a/src/other_tools/utils/curl_url_handle.cpp +++ b/src/other_tools/utils/curl_url_handle.cpp @@ -17,6 +17,7 @@ #include <regex> #include <sstream> +#include "src/buildtool/logging/log_level.hpp" #include "src/buildtool/logging/logger.hpp" extern "C" { |