1818
1919namespace buildcc {
2020
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) {
2625// NOTE, Build as single lib
2726 target.AddIncludeDir (" " ,true );
2827
@@ -88,9 +87,6 @@ void buildcc_cb(BaseTarget &target, const TargetInfo &flatbuffers_ho,
8887 SyncOption::HeaderFiles,
8988 };
9089
91- // FLATBUFFERS HO
92- target.Insert (flatbuffers_ho,kInsertOptions );
93-
9490// NLOHMANN JSON HO
9591 target.Insert (nlohmann_json_ho,kInsertOptions );
9692
@@ -175,17 +171,6 @@ static void global_flags_cb(TargetInfo &global_info,
175171}
176172
177173void 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-
189174// Nlohmann json HO lib
190175 (void )storage_.Add <TargetInfo>(
191176kNlohmannJsonHoName , toolchain_,
@@ -240,7 +225,6 @@ void BuildBuildCC::Initialize() {
240225}
241226
242227void BuildBuildCC::Setup (const ArgToolchainState &state) {
243- auto &flatbuffers_ho_lib =GetFlatbuffersHo ();
244228auto &nlohmann_json_ho_lib =GetNlohmannJsonHo ();
245229auto &cli11_ho_lib =GetCli11Ho ();
246230auto &fmt_ho_lib =GetFmtHo ();
@@ -250,7 +234,6 @@ void BuildBuildCC::Setup(const ArgToolchainState &state) {
250234auto &tpl_lib =GetTpl ();
251235auto &buildcc_lib =GetBuildcc ();
252236Reg::Toolchain (state)
253- .Func (flatbuffers_ho_cb, flatbuffers_ho_lib)
254237 .Func (nlohmann_json_ho_cb, nlohmann_json_ho_lib)
255238 .Func (cli11_ho_cb, cli11_ho_lib)
256239 .Func (fmt_ho_cb, fmt_ho_lib)
@@ -260,9 +243,9 @@ void BuildBuildCC::Setup(const ArgToolchainState &state) {
260243 .Func (global_flags_cb, tpl_lib, toolchain_)
261244 .Build (tpl_cb, tpl_lib)
262245 .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)
266249 .Dep (buildcc_lib, tpl_lib);
267250}
268251