diff options
| author | ruki <[email protected]> | 2019-02-24 00:12:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-02-24 00:12:18 +0800 |
| commit | 28a830e6baec04094a2f4933421a216c87025272 (patch) | |
| tree | 0fd98b241f7061138aa84142a6995bcf2d0f1b3a /tests/projects/qt/quickapp_static/xmake.lua | |
| parent | 85a7d6d728348b22254abb1a1bf4e5b1402cba2f (diff) | |
add static qt projects
Diffstat (limited to 'tests/projects/qt/quickapp_static/xmake.lua')
| -rw-r--r-- | tests/projects/qt/quickapp_static/xmake.lua | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/projects/qt/quickapp_static/xmake.lua b/tests/projects/qt/quickapp_static/xmake.lua new file mode 100644 index 000000000..03232c822 --- /dev/null +++ b/tests/projects/qt/quickapp_static/xmake.lua @@ -0,0 +1,34 @@ + +-- add modes: debug and release +add_rules("mode.debug", "mode.release") + +-- add target +target("qt_demo") + + -- add rules + add_rules("qt.application") + + -- add headers + add_headerfiles("src/*.h") + + -- add files + add_files("src/*.cpp") + add_files("src/qml.qrc") + + -- add frameworks + add_frameworks("QtQuick") + + -- add plugin: platforms + add_values("qt.linkdirs", "plugins/platforms") + if is_plat("macosx") then + add_values("qt.links", "qcocoa", "Qt5PrintSupport", "Qt5PlatformSupport", "Qt5Widgets", "cups") + add_values("qt.plugins", "QCocoaIntegrationPlugin") + elseif is_plat("windows") then + add_values("qt.links", "Qt5PrintSupport", "Qt5PlatformSupport", "cups") + add_values("qt.plugins", "QWindowsIntegrationPlugin") + end + + -- add plugin: qml.QtQuick + add_values("qt.linkdirs", "qml/QtQuick.2") + add_values("qt.links", "qtquick2plugin") + |
