Add noX11 flag to Linux compilations
This allows users that are not using X11 to still compile the application.
This commit is contained in:
@@ -9,7 +9,7 @@ echo $MAKE_COMMAND
|
||||
mkdir -p $BUILD_DIR
|
||||
cd $BUILD_DIR
|
||||
qmake --version
|
||||
qmake -spec $QMAKE_SPEC $PROJECT_DIR
|
||||
qmake -spec $QMAKE_SPEC $PROJECT_DIR $QMAKE_EXTRAS
|
||||
$MAKE_COMMAND
|
||||
$CLANG_TIDY
|
||||
cp -r $PROJECT_DIR/src/res $BUILD_DIR/bin/linux/AdvancedSettings/
|
||||
|
||||
@@ -18,3 +18,6 @@ else
|
||||
CLANG_TIDY="$SCRIPT_DIR/run-clang-tidy.sh"
|
||||
fi
|
||||
|
||||
if [[ -n $NO_X11 ]]; then
|
||||
QMAKE_EXTRAS='CONFIG+=noX11'
|
||||
fi
|
||||
|
||||
@@ -54,9 +54,14 @@ win32 {
|
||||
}
|
||||
|
||||
unix:!macx {
|
||||
SOURCES += src/tabcontrollers/keyboardinput/KeyboardInputX11.cpp
|
||||
CONFIG += x11
|
||||
LIBS += -lXtst
|
||||
!noX11 {
|
||||
SOURCES += src/tabcontrollers/keyboardinput/KeyboardInputX11.cpp
|
||||
CONFIG += x11
|
||||
LIBS += -lXtst
|
||||
}
|
||||
else {
|
||||
SOURCES += src/tabcontrollers/keyboardinput/KeyboardInputDummy.cpp
|
||||
}
|
||||
}
|
||||
|
||||
macx {
|
||||
|
||||
Reference in New Issue
Block a user