XPlor/app/app.pro

69 lines
2.6 KiB
Prolog
Raw Normal View History

QT += core widgets gui multimedia network
2026-01-01 22:18:51 -05:00
SUBDIRS += app
2026-01-12 23:06:48 -05:00
CONFIG += c++latest
2026-01-01 22:18:51 -05:00
RC_ICONS = app.ico
# 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) {
FULL_OUT_DIR = $$OUT_PWD/debug
2026-01-01 22:18:51 -05:00
} CONFIG(release, debug|release) {
FULL_OUT_DIR = $$OUT_PWD/release
2025-09-05 19:43:49 +00:00
}
2026-01-01 22:18:51 -05:00
defs_install.path = $$FULL_OUT_DIR/definitions
defs_install.files = $$PWD/../definitions/*
scripts_install.path = $$FULL_OUT_DIR/scripts
scripts_install.files = $$PWD/../scripts/*
dll_install.path = $$FULL_OUT_DIR
dll_install.files = $$PWD/../third_party/xbox_sdk/lib/xcompress64.dll
INSTALLS += defs_install scripts_install dll_install