2026-01-08 00:37:55 -05:00
|
|
|
QT += core widgets gui multimedia network
|
2026-01-01 22:18:51 -05:00
|
|
|
|
2026-01-08 00:54:57 -05:00
|
|
|
RC_ICONS = app.ico
|
2026-01-01 22:18:51 -05:00
|
|
|
|
|
|
|
|
SUBDIRS += app
|
|
|
|
|
|
|
|
|
|
CONFIG += c++17
|
|
|
|
|
|
2026-01-08 00:37:55 -05:00
|
|
|
# Load API token from .env file at build time
|
|
|
|
|
ENV_FILE = $$PWD/../.env
|
|
|
|
|
exists($$ENV_FILE) {
|
|
|
|
|
ENV_CONTENTS = $$cat($$ENV_FILE, lines)
|
|
|
|
|
for(line, ENV_CONTENTS) {
|
|
|
|
|
# Parse GITEA_ACCESS_TOKEN=value
|
|
|
|
|
contains(line, "GITEA_ACCESS_TOKEN=.*") {
|
|
|
|
|
TOKEN = $$replace(line, "GITEA_ACCESS_TOKEN=", "")
|
|
|
|
|
DEFINES += GITEA_ACCESS_TOKEN=\\\"$$TOKEN\\\"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-01 22:18:51 -05:00
|
|
|
SOURCES += $$files($$PWD/*.cpp)
|
|
|
|
|
HEADERS += $$files($$PWD/*.h)
|
|
|
|
|
FORMS += $$files($$PWD/*.ui)
|
|
|
|
|
|
|
|
|
|
RESOURCES += ../data/Data.qrc
|
|
|
|
|
|
|
|
|
|
LIBS += \
|
|
|
|
|
-L$$PWD/../third_party/devil_sdk/lib/ -lDevIL -lILU -lILUT \
|
|
|
|
|
-L$$PWD/../third_party/zlib/lib/ -lzlib \
|
|
|
|
|
-L$$PWD/../third_party/xbox_sdk/lib -lxcompress64 \
|
|
|
|
|
-L$$OUT_PWD/../libs/ -lcore \
|
|
|
|
|
-L$$OUT_PWD/../libs/ -lcompression \
|
|
|
|
|
-L$$OUT_PWD/../libs/ -ldsl \
|
|
|
|
|
-L$$OUT_PWD/../libs/ -lencryption
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += \
|
|
|
|
|
$$PWD/../third_party/devil_sdk/include/ \
|
|
|
|
|
$$PWD/../third_party/zlib/include \
|
|
|
|
|
$$PWD/../third_party/xbox_sdk/include \
|
|
|
|
|
$$PWD/../libs/core \
|
|
|
|
|
$$PWD/../libs/compression \
|
|
|
|
|
$$PWD/../libs/dsl \
|
|
|
|
|
$$PWD/../libs/encryption
|
|
|
|
|
|
|
|
|
|
DEPENDPATH += \
|
|
|
|
|
$$PWD/../third_party/devil_sdk/include/ \
|
|
|
|
|
$$PWD/../third_party/zlib/include \
|
|
|
|
|
$$PWD/../third_party/xbox_sdk/include \
|
|
|
|
|
$$PWD/../libs/core \
|
|
|
|
|
$$PWD/../libs/compression \
|
|
|
|
|
$$PWD/../libs/dsl \
|
|
|
|
|
$$PWD/../libs/encryption
|
|
|
|
|
|
|
|
|
|
CONFIG(debug, debug|release) {
|
2026-01-11 12:09:31 -05:00
|
|
|
defs_install.path = $$OUT_PWD/debug/definitions
|
|
|
|
|
scripts_install.path = $$OUT_PWD/debug/scripts
|
2026-01-01 22:18:51 -05:00
|
|
|
} CONFIG(release, debug|release) {
|
2026-01-11 12:09:31 -05:00
|
|
|
defs_install.path = $$OUT_PWD/release/definitions
|
|
|
|
|
scripts_install.path = $$OUT_PWD/release/scripts
|
2025-09-05 19:43:49 +00:00
|
|
|
}
|
2026-01-01 22:18:51 -05:00
|
|
|
|
2026-01-11 12:09:31 -05:00
|
|
|
defs_install.files = $$PWD/../definitions/*
|
|
|
|
|
scripts_install.files = $$PWD/../scripts/*
|
|
|
|
|
INSTALLS += defs_install scripts_install
|