We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent06bed39 commitf8f6427Copy full SHA for f8f6427
bootstrap/src/build_buildcc.cpp
@@ -63,6 +63,7 @@ void buildcc_cb(BaseTarget &target, const BaseGenerator &schema_gen,
63
// TOOLCHAIN
64
target.GlobSources("lib/toolchain/src/api");
65
target.GlobSources("lib/toolchain/src/common");
66
+ target.GlobSources("lib/toolchain/src/toolchain");
67
target.AddIncludeDir("lib/toolchain/include");
68
target.GlobHeaders("lib/toolchain/include/toolchain");
69
target.GlobHeaders("lib/toolchain/include/toolchain/api");
@@ -72,6 +73,7 @@ void buildcc_cb(BaseTarget &target, const BaseGenerator &schema_gen,
72
73
target.GlobSources("lib/target/src/common");
74
target.GlobSources("lib/target/src/generator");
75
target.GlobSources("lib/target/src/api");
76
+ target.GlobSources("lib/target/src/target_info");
77
target.GlobSources("lib/target/src/target");
78
target.GlobSources("lib/target/src/target/friend");
79
buildcc/lib/args/test/test_persistent_storage.cpp
@@ -16,8 +16,8 @@ TEST_GROUP(PersistentStorageTestGroup)
16
};
17
// clang-format on
18
19
-buildcc::BaseToolchaingcc(buildcc::ToolchainId::Gcc,"gcc","as","gcc","g++",
20
-"ar","ld");
+staticbuildcc::BaseToolchaingcc(buildcc::ToolchainId::Gcc,"gcc","as","gcc",
+"g++","ar","ld");
21
22
TEST(PersistentStorageTestGroup, BasicUsage) {
23
buildcc::PersistentStorage persistent;
buildcc/lib/target/cmake/common_target_src.cmake
@@ -23,7 +23,6 @@ set(COMMON_TARGET_SRCS
include/target/api/include_api.h
24
include/target/api/lib_api.h
25
include/target/api/pch_api.h
26
- include/target/api/flag_api.h
27
include/target/api/deps_api.h
28
29
src/api/sync_api.cpp
@@ -38,6 +37,10 @@ set(COMMON_TARGET_SRCS
38
37
src/generator/generator.cpp
39
include/target/generator.h
40
+# Target Info
41
+ src/target_info/target_info.cpp
42
+ include/target/target_info.h
43
+
44
# Target friend
45
src/target/friend/compile_pch.cpp
46
src/target/friend/compile_object.cpp
@@ -49,6 +52,5 @@ set(COMMON_TARGET_SRCS
49
52
# Target
50
53
src/target/target.cpp
51
54
src/target/build.cpp
- include/target/target_info.h
55
include/target/target.h
56
)
buildcc/lib/target/include/target/api/deps_api.h
@@ -25,7 +25,6 @@ namespace buildcc::internal {
// Requires
// - TargetStorer
-// - TargetState
// - TargetEnv
30
template<typename T>classDepsApi {
31
public:
buildcc/lib/target/include/target/api/include_api.h
// - TargetConfig
template<typename T>classIncludeApi {
buildcc/lib/target/include/target/api/lib_api.h
@@ -32,7 +32,6 @@ namespace buildcc::internal {
32
33
34
35
36
// T::GetTargetPath
template<typename T>classLibApi {
buildcc/lib/target/include/target/api/pch_api.h
template<typename T>classPchApi {
buildcc/lib/target/include/target/api/source_api.h
template<typename T>classSourceApi {
buildcc/lib/target/include/target/api/sync_api.h
@@ -43,7 +43,6 @@ enum class SyncOption {
47
template<typename T>classSyncApi {
48
/**
buildcc/lib/target/include/target/api/target_getter.h
@@ -24,6 +24,8 @@
#include"toolchain/toolchain.h"
+#include"target/common/target_state.h"
#include"taskflow/taskflow.hpp"
namespacefs= std::filesystem;
@@ -32,6 +34,11 @@ namespace buildcc::internal {
template<typename T>classTargetGetter {
+// Target State
+const TargetState &GetState()const;
+boolIsBuilt()const;
+boolIsLocked()const;
const std::string &GetName()const;
const Toolchain &GetToolchain()const;
TargetTypeGetType()const;