XPlor/app/app.pro

63 lines
2.3 KiB
Prolog
Raw Normal View History

QT += core widgets gui multimedia network
2026-01-01 22:18:51 -05:00
RC_ICONS = app.ico
2026-01-01 22:18:51 -05:00
SUBDIRS += app
CONFIG += c++17
# 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) {
install_it.path = $$OUT_PWD/debug/definitions
} CONFIG(release, debug|release) {
install_it.path = $$OUT_PWD/release/definitions
2025-09-05 19:43:49 +00:00
}
2026-01-01 22:18:51 -05:00
install_it.files = $$PWD/../definitions/*
INSTALLS += install_it