Make CUTTER_ENABLE_* individual vars in qmake

This commit is contained in:
Florian Märkl 2018-03-16 18:37:38 +01:00
parent 0a252bda7b
commit 98ea17c85a
2 changed files with 6 additions and 5 deletions

View File

@ -7,8 +7,8 @@ BUILDR2=1
#### User variables #### #### User variables ####
BUILD="build" BUILD="build"
#QMAKE_CONF="CONFIG+=CUTTER_ENABLE_JUPYTER CONFIG+=CUTTER_ENABLE_QTWEBENGINE"
QMAKE_CONF="" QMAKE_CONF=""
#QMAKE_CONF="CUTTER_ENABLE_JUPYTER=false CUTTER_ENABLE_QTWEBENGINE=false"
# Checking for radare2 # Checking for radare2
r2 -v >/dev/null 2>&1 r2 -v >/dev/null 2>&1

View File

@ -11,10 +11,11 @@ QT += core gui widgets svg
QT_CONFIG -= no-pkg-config QT_CONFIG -= no-pkg-config
CONFIG += c++11 CONFIG += c++11
# You can spawn qmake with qmake "CONFIG+=CUTTER_ENABLE_JUPYTER" to set a variable !defined(CUTTER_ENABLE_JUPYTER, var) CUTTER_ENABLE_JUPYTER=true
# Or manually edit this file equals(CUTTER_ENABLE_JUPYTER, true) CONFIG += CUTTER_ENABLE_JUPYTER
#CONFIG += CUTTER_ENABLE_JUPYTER
#CONFIG += CUTTER_ENABLE_QTWEBENGINE !defined(CUTTER_ENABLE_QTWEBENGINE, var) CUTTER_ENABLE_QTWEBENGINE=true
equals(CUTTER_ENABLE_QTWEBENGINE, true) CONFIG += CUTTER_ENABLE_QTWEBENGINE
# Define the preprocessor macro to get the application version in our application. # Define the preprocessor macro to get the application version in our application.
DEFINES += APP_VERSION=\\\"$$VERSION\\\" DEFINES += APP_VERSION=\\\"$$VERSION\\\"