mirror of
https://github.com/aimrebirth/tools.git
synced 2026-04-15 01:43:25 +00:00
Fix script2txt build.
This commit is contained in:
parent
8813810eb8
commit
c01c10f2d0
2 changed files with 19 additions and 15 deletions
|
|
@ -23,6 +23,7 @@
|
||||||
#include <primitives/filesystem.h>
|
#include <primitives/filesystem.h>
|
||||||
#include <primitives/sw/main.h>
|
#include <primitives/sw/main.h>
|
||||||
#include <primitives/sw/settings.h>
|
#include <primitives/sw/settings.h>
|
||||||
|
#include <primitives/sw/cl.h>
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
|
||||||
33
sw.cpp
33
sw.cpp
|
|
@ -47,23 +47,26 @@ void build(Solution &s)
|
||||||
unpaker.HeaderOnly = true;
|
unpaker.HeaderOnly = true;
|
||||||
|
|
||||||
// not so simple targets
|
// not so simple targets
|
||||||
auto &script2txt = tools.addStaticLibrary("script2txt");
|
auto &script2txt = add_exe_with_common("script2txt");
|
||||||
script2txt += cpp20;
|
{
|
||||||
script2txt.setRootDirectory("src/script2txt");
|
script2txt += ".*"_rr;
|
||||||
script2txt += "pub.lzwdgc.Polygon4.DataManager.schema-master"_dep;
|
script2txt += "pub.lzwdgc.Polygon4.DataManager.schema-master"_dep;
|
||||||
gen_flex_bison_pair("org.sw.demo.lexxmark.winflexbison"_dep, script2txt, "LALR1_CPP_VARIANT_PARSER", "script2txt");
|
gen_flex_bison_pair("org.sw.demo.lexxmark.winflexbison"_dep, script2txt, "LALR1_CPP_VARIANT_PARSER", "script2txt");
|
||||||
if (script2txt.getCompilerType() == CompilerType::MSVC)
|
if (script2txt.getCompilerType() == CompilerType::MSVC)
|
||||||
script2txt.CompileOptions.push_back("/Zc:__cplusplus");
|
script2txt.CompileOptions.push_back("/Zc:__cplusplus");
|
||||||
|
}
|
||||||
|
|
||||||
auto &model = tools.addStaticLibrary("model");
|
auto &model = tools.addStaticLibrary("model");
|
||||||
model += cpp20;
|
{
|
||||||
model.setRootDirectory("src/model");
|
model += cpp20;
|
||||||
model.Public += common,
|
model.setRootDirectory("src/model");
|
||||||
"org.sw.demo.unicode.icu.i18n"_dep,
|
model.Public += common,
|
||||||
"org.sw.demo.eigen"_dep,
|
"org.sw.demo.unicode.icu.i18n"_dep,
|
||||||
"pub.egorpugin.primitives.yaml"_dep,
|
"org.sw.demo.eigen"_dep,
|
||||||
"pub.egorpugin.primitives.sw.settings"_dep
|
"pub.egorpugin.primitives.yaml"_dep,
|
||||||
;
|
"pub.egorpugin.primitives.sw.settings"_dep
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
add_exe("mod_reader") += model;
|
add_exe("mod_reader") += model;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue