XPlor/tools/cli/cli.pro
njohnson 2d63185dc0
Some checks failed
CI Build / build-macos (push) Successful in 29s
CI Build / build-windows (push) Failing after 7m33s
Fix macOS CLI build: add zlib linkage for Unix platforms
The CLI tool was missing the system zlib linkage that app.pro already had,
causing undefined symbol errors for zlib functions on macOS.

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

50 lines
945 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
}
# macOS/Linux: use system zlib
unix {
LIBS += -lz
}
# 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
}