fix xmake macro
This commit is contained in:
parent
c6bed88d37
commit
db6c6cc7aa
@ -824,13 +824,16 @@ void work() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
|
#define AS_STR(x) #x
|
||||||
argparse::ArgumentParser program("acpa",
|
argparse::ArgumentParser program("acpa",
|
||||||
APP_VERSION,
|
AS_STR(APP_VERSION),
|
||||||
argparse::default_arguments::help,
|
argparse::default_arguments::help,
|
||||||
false);
|
false);
|
||||||
|
|
||||||
program.add_argument("input_file")
|
program.add_argument("input_file")
|
||||||
.help("Source proof file")
|
.help("Source proof file")
|
||||||
.action([](const std::string& value) { return value; });
|
.action([](const std::string& value) { return value; });
|
||||||
|
|
||||||
try {
|
try {
|
||||||
program.parse_args(argc, argv);
|
program.parse_args(argc, argv);
|
||||||
} catch (const std::runtime_error& err) {
|
} catch (const std::runtime_error& err) {
|
||||||
@ -847,3 +850,4 @@ int main(int argc, char* argv[]) {
|
|||||||
work();
|
work();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ target("build")
|
|||||||
add_files("src/**.cpp")
|
add_files("src/**.cpp")
|
||||||
-- add_includedirs("include/")
|
-- add_includedirs("include/")
|
||||||
add_includedirs("third-party/")
|
add_includedirs("third-party/")
|
||||||
add_defines("APP_VERSION=\"" .. app_version .. "\"")
|
add_defines("APP_VERSION=" .. app_version)
|
||||||
if is_mode("release") then
|
if is_mode("release") then
|
||||||
set_strip("all")
|
set_strip("all")
|
||||||
set_optimize("faster")
|
set_optimize("faster")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user