diff --git a/build.sh b/build.sh index 65ed9374..e64d63c6 100755 --- a/build.sh +++ b/build.sh @@ -7,8 +7,8 @@ BUILDR2=1 #### User variables #### BUILD="build" -#QMAKE_CONF="CONFIG+=CUTTER_ENABLE_JUPYTER CONFIG+=CUTTER_ENABLE_QTWEBENGINE" QMAKE_CONF="" +#QMAKE_CONF="CUTTER_ENABLE_JUPYTER=false CUTTER_ENABLE_QTWEBENGINE=false" # Checking for radare2 r2 -v >/dev/null 2>&1 diff --git a/src/Cutter.pro b/src/Cutter.pro index f672afbf..45ca9099 100644 --- a/src/Cutter.pro +++ b/src/Cutter.pro @@ -11,10 +11,11 @@ QT += core gui widgets svg QT_CONFIG -= no-pkg-config CONFIG += c++11 -# You can spawn qmake with qmake "CONFIG+=CUTTER_ENABLE_JUPYTER" to set a variable -# Or manually edit this file -#CONFIG += CUTTER_ENABLE_JUPYTER -#CONFIG += CUTTER_ENABLE_QTWEBENGINE +!defined(CUTTER_ENABLE_JUPYTER, var) CUTTER_ENABLE_JUPYTER=true +equals(CUTTER_ENABLE_JUPYTER, true) CONFIG += CUTTER_ENABLE_JUPYTER + +!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. DEFINES += APP_VERSION=\\\"$$VERSION\\\"