diff options
| author | ruki <[email protected]> | 2018-04-10 00:28:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-04-09 20:48:49 +0800 |
| commit | c59a2f071f53f88516bb487e5bcef37d027ecc43 (patch) | |
| tree | bacfbce0d6c8ea5c791800fe17184626ebcdad19 /tests | |
| parent | fe78a523930b02f1e75c4490cdbae045d43d4f1a (diff) | |
add qt_console rule
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/projects/qt_console/src/main.cpp | 9 | ||||
| -rw-r--r-- | tests/projects/qt_console/xmake.lua | 32 |
2 files changed, 41 insertions, 0 deletions
diff --git a/tests/projects/qt_console/src/main.cpp b/tests/projects/qt_console/src/main.cpp new file mode 100644 index 000000000..de25444ff --- /dev/null +++ b/tests/projects/qt_console/src/main.cpp @@ -0,0 +1,9 @@ +#include <QCoreApplication> + +int main(int argc, char *argv[]) +{ + QCoreApplication a(argc, argv); + + printf("hello xmake\n"); + return a.exec(); +} diff --git a/tests/projects/qt_console/xmake.lua b/tests/projects/qt_console/xmake.lua new file mode 100644 index 000000000..d7151f790 --- /dev/null +++ b/tests/projects/qt_console/xmake.lua @@ -0,0 +1,32 @@ +-- the debug mode +if is_mode("debug") then + + -- enable the debug symbols + set_symbols("debug") + + -- disable optimization + set_optimize("none") +end + +-- the release mode +if is_mode("release") then + + -- set the symbols visibility: hidden + set_symbols("hidden") + + -- enable fastest optimization + set_optimize("fastest") + + -- strip all symbols + set_strip("all") +end + +-- add target +target("qt_console") + + -- add rules + add_rules("qt_console") + + -- add files + add_files("src/*.cpp") + |
