18
18
19
19
namespace buildcc {
20
20
21
- void buildcc_cb (BaseTarget &target, const TargetInfo &flatbuffers_ho,
22
- const TargetInfo &nlohmann_json_ho, const TargetInfo &fmt_ho,
23
- const TargetInfo &spdlog_ho, const TargetInfo &cli11_ho,
24
- const TargetInfo &taskflow_ho, const TargetInfo &tl_optional_ho,
25
- const BaseTarget &tpl) {
21
+ void buildcc_cb (BaseTarget &target, const TargetInfo &nlohmann_json_ho,
22
+ const TargetInfo &fmt_ho, const TargetInfo &spdlog_ho,
23
+ const TargetInfo &cli11_ho, const TargetInfo &taskflow_ho,
24
+ const TargetInfo &tl_optional_ho, const BaseTarget &tpl) {
26
25
// NOTE, Build as single lib
27
26
target.AddIncludeDir (" " , true );
28
27
@@ -88,9 +87,6 @@ void buildcc_cb(BaseTarget &target, const TargetInfo &flatbuffers_ho,
88
87
SyncOption::HeaderFiles,
89
88
};
90
89
91
- // FLATBUFFERS HO
92
- target.Insert (flatbuffers_ho, kInsertOptions );
93
-
94
90
// NLOHMANN JSON HO
95
91
target.Insert (nlohmann_json_ho, kInsertOptions );
96
92
@@ -175,17 +171,6 @@ static void global_flags_cb(TargetInfo &global_info,
175
171
}
176
172
177
173
void BuildBuildCC::Initialize () {
178
- (void )storage_.Add <ExecutableTarget_generic>(
179
- kFlatcExeName , kFlatcExeName , toolchain_,
180
- TargetEnv (env_.GetTargetRootDir () / " third_party" / " flatbuffers" ,
181
- env_.GetTargetBuildDir ()));
182
-
183
- // Flatbuffers HO lib
184
- (void )storage_.Add <TargetInfo>(
185
- kFlatbuffersHoName , toolchain_,
186
- TargetEnv (env_.GetTargetRootDir () / " third_party" / " flatbuffers" ,
187
- env_.GetTargetBuildDir ()));
188
-
189
174
// Nlohmann json HO lib
190
175
(void )storage_.Add <TargetInfo>(
191
176
kNlohmannJsonHoName , toolchain_,
@@ -240,7 +225,6 @@ void BuildBuildCC::Initialize() {
240
225
}
241
226
242
227
void BuildBuildCC::Setup (const ArgToolchainState &state) {
243
- auto &flatbuffers_ho_lib = GetFlatbuffersHo ();
244
228
auto &nlohmann_json_ho_lib = GetNlohmannJsonHo ();
245
229
auto &cli11_ho_lib = GetCli11Ho ();
246
230
auto &fmt_ho_lib = GetFmtHo ();
@@ -250,7 +234,6 @@ void BuildBuildCC::Setup(const ArgToolchainState &state) {
250
234
auto &tpl_lib = GetTpl ();
251
235
auto &buildcc_lib = GetBuildcc ();
252
236
Reg::Toolchain (state)
253
- .Func (flatbuffers_ho_cb, flatbuffers_ho_lib)
254
237
.Func (nlohmann_json_ho_cb, nlohmann_json_ho_lib)
255
238
.Func (cli11_ho_cb, cli11_ho_lib)
256
239
.Func (fmt_ho_cb, fmt_ho_lib)
@@ -260,9 +243,9 @@ void BuildBuildCC::Setup(const ArgToolchainState &state) {
260
243
.Func (global_flags_cb, tpl_lib, toolchain_)
261
244
.Build (tpl_cb, tpl_lib)
262
245
.Func (global_flags_cb, buildcc_lib, toolchain_)
263
- .Build (buildcc_cb, buildcc_lib, flatbuffers_ho_lib, nlohmann_json_ho_lib ,
264
- fmt_ho_lib, spdlog_ho_lib, cli11_ho_lib, taskflow_ho_lib,
265
- tl_optional_ho_lib, tpl_lib)
246
+ .Build (buildcc_cb, buildcc_lib, nlohmann_json_ho_lib, fmt_ho_lib ,
247
+ spdlog_ho_lib, cli11_ho_lib, taskflow_ho_lib, tl_optional_ho_lib ,
248
+ tpl_lib)
266
249
.Dep (buildcc_lib, tpl_lib);
267
250
}
268
251
0 commit comments