From 1f76e280c4bb8a05746cd86fc38b2a4bf25478c6 Mon Sep 17 00:00:00 2001 From: HapiFive <1143910315@qq.com> Date: Wed, 15 May 2024 05:50:39 +0800 Subject: add rule for qt project --- xmake/rules/qt/xmake.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/xmake/rules/qt/xmake.lua b/xmake/rules/qt/xmake.lua index 598a67343..9437b4b47 100644 --- a/xmake/rules/qt/xmake.lua +++ b/xmake/rules/qt/xmake.lua @@ -38,7 +38,7 @@ rule("qt._wasm_app") -- define rule: qt static library rule("qt.static") - add_deps("qt.qrc", "qt.ui", "qt.moc") + add_deps("qt.qrc", "qt.ui", "qt.moc", "qt.ts") -- we must set kind before target.on_load(), may we will use target in on_load() on_load(function (target) @@ -51,7 +51,7 @@ rule("qt.static") -- define rule: qt shared library rule("qt.shared") - add_deps("qt.qrc", "qt.ui", "qt.moc") + add_deps("qt.qrc", "qt.ui", "qt.moc", "qt.ts") -- we must set kind before target.on_load(), may we will use target in on_load() on_load(function (target) @@ -64,7 +64,7 @@ rule("qt.shared") -- define rule: qt console rule("qt.console") - add_deps("qt.qrc", "qt.ui", "qt.moc") + add_deps("qt.qrc", "qt.ui", "qt.moc", "qt.ts") -- we must set kind before target.on_load(), may we will use target in on_load() on_load(function (target) @@ -80,7 +80,7 @@ rule("qt.console") -- define rule: qt widgetapp rule("qt.widgetapp") - add_deps("qt.ui", "qt.moc", "qt._wasm_app", "qt.qrc") + add_deps("qt.ui", "qt.moc", "qt._wasm_app", "qt.qrc", "qt.ts") -- we must set kind before target.on_load(), may we will use target in on_load() on_load(function (target) @@ -115,7 +115,7 @@ rule("qt.widgetapp") -- define rule: qt static widgetapp rule("qt.widgetapp_static") - add_deps("qt.ui", "qt.moc", "qt._wasm_app", "qt.qrc") + add_deps("qt.ui", "qt.moc", "qt._wasm_app", "qt.qrc", "qt.ts") -- we must set kind before target.on_load(), may we will use target in on_load() on_load(function (target) @@ -143,7 +143,7 @@ rule("qt.widgetapp_static") -- define rule: qt quickapp rule("qt.quickapp") - add_deps("qt.qrc", "qt.moc", "qt._wasm_app") + add_deps("qt.qrc", "qt.moc", "qt._wasm_app", "qt.ts") -- we must set kind before target.on_load(), may we will use target in on_load() on_load(function (target) @@ -165,7 +165,7 @@ rule("qt.quickapp") -- define rule: qt static quickapp rule("qt.quickapp_static") - add_deps("qt.qrc", "qt.moc", "qt._wasm_app") + add_deps("qt.qrc", "qt.moc", "qt._wasm_app", "qt.ts") -- we must set kind before target.on_load(), may we will use target in on_load() on_load(function (target) @@ -189,7 +189,7 @@ rule("qt.quickapp_static") -- define rule: qt qmlplugin rule("qt.qmlplugin") - add_deps("qt.shared", "qt.qmltyperegistrar") + add_deps("qt.shared", "qt.qmltyperegistrar", "qt.ts") on_config(function(target) import("load")(target, {frameworks = { "QtCore", "QtGui", "QtQuick", "QtQml", "QtNetwork" }}) end) -- cgit v1.3.1