scirpt: build script.

This commit is contained in:
2025-07-06 13:04:05 +08:00
parent a65764dd5b
commit 3323755800
10 changed files with 64 additions and 110 deletions

View File

@@ -2,7 +2,7 @@ add_rules("mode.debug", "mode.release")
target("SingleApplication")
add_rules("qt.static")
if has_config("single5") then
if has_config("qt5") then
add_defines("QT_DEFAULT_MAJOR_VERSION=5")
else
add_defines("QT_DEFAULT_MAJOR_VERSION=6")
@@ -23,9 +23,4 @@ target("SingleApplication")
add_frameworks("QtCore")
add_frameworks("QtGui")
add_frameworks("QtWidgets")
add_frameworks("QtNetwork")
option("single5")
set_default(false)
set_showmenu(true)
set_description("SingleApplication Build with Qt5.")
add_frameworks("QtNetwork")