XPlor/tools/cli/cli.pro
njohnson a2b8f69bb1
Some checks failed
CI Build / build-macos (push) Failing after 27s
CI Build / build-windows (push) Failing after 7m43s
Fix macOS build: make Windows-only libraries conditional
- DevIL, bundled zlib, and xcompress64 only linked on Windows
- macOS/Linux use system zlib (-lz)
- DLL deployment only on Windows

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 14:37:52 -05:00

45 lines
888 B
INI

QT += core
QT -= gui
TEMPLATE = app
CONFIG += console c++17
CONFIG -= app_bundle
SUBDIRS += cli
TARGET = cli
SOURCES += main.cpp
# Link against the DSL library
LIBS += -L$$OUT_PWD/../../libs -ldsl -lcompression -lcore -lencryption
# Windows-only: Xbox SDK
win32 {
LIBS += -L$$PWD/../../third_party/xbox_sdk/lib -lxcompress64
}
# Include paths
INCLUDEPATH += \
$$PWD/../../libs/dsl \
$$PWD/../../libs/compression \
$$PWD/../../libs/core
DEPENDPATH += \
$$PWD/../../libs/dsl \
$$PWD/../../libs/compression \
$$PWD/../../libs/core
CONFIG(debug, debug|release) {
FULL_OUT_DIR = $$OUT_PWD/debug
} CONFIG(release, debug|release) {
FULL_OUT_DIR = $$OUT_PWD/release
}
# Windows-only: deploy DLLs
win32 {
dll_install.path = $$FULL_OUT_DIR
dll_install.files = $$PWD/../../third_party/xbox_sdk/lib/xcompress64.dll
INSTALLS += dll_install
}