building/main.cpp
This commit is contained in:
parent
76f3742521
commit
f002034867
4
.gitignore
vendored
4
.gitignore
vendored
@ -8,4 +8,6 @@ building/main
|
||||
building/*.png
|
||||
building/*.svg
|
||||
|
||||
.idea/
|
||||
.idea/
|
||||
compile_commands.json
|
||||
local.sh
|
||||
|
@ -108,7 +108,7 @@ struct Libregexis024BuildSystem {
|
||||
"libregexis024tools/stringmatching.h",
|
||||
};
|
||||
|
||||
CTarget T("libregexis024", "shared_library");
|
||||
CTarget T{"libregexis024", "shared_library"};
|
||||
T.additional_compilation_flags = getSomeRadFlags();
|
||||
array_concat(T.units, compilation_units_release);
|
||||
if (build_type == "debug")
|
||||
@ -121,9 +121,9 @@ struct Libregexis024BuildSystem {
|
||||
my_targets.push_back(T);
|
||||
}
|
||||
if (build_tests) {
|
||||
CTarget T("libregexis024_test4", "executable");
|
||||
CTarget T{"libregexis024_test4", "executable"};
|
||||
T.additional_compilation_flags = getSomeRadFlags();
|
||||
T.proj_deps = {CTargetDependenceOnProjectsLibrary("libregexis024")};
|
||||
T.proj_deps = {CTargetDependenceOnProjectsLibrary{"libregexis024"}};
|
||||
T.units = {"libregexis024test/test4.cpp"};
|
||||
my_targets.push_back(T);
|
||||
}
|
||||
@ -143,8 +143,6 @@ int main(int argc, char** argv) {
|
||||
NormalCBuildSystemCommandMeaning cmd;
|
||||
regular_bs_cli_cmd_interpret(args, cmd);
|
||||
Libregexis024BuildSystem bs("debug", cmd);
|
||||
show_build_units_array_with_image_viewer(bs.runlevel_1, "true");
|
||||
show_build_units_array_with_image_viewer(bs.runlevel_2, "true");
|
||||
if (cmd.need_to_build)
|
||||
complete_tasks_of_build_units(bs.runlevel_1);
|
||||
if (cmd.need_to_install)
|
||||
@ -152,4 +150,4 @@ int main(int argc, char** argv) {
|
||||
} catch (const buildSystemFailure& e) {
|
||||
printf("Build system failure\n""%s\n", e.toString().c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user