Set qmake Jupyter optional

This commit is contained in:
xarkes 2018-03-02 21:00:16 +01:00
parent 8b77ad2766
commit 422a43f344

View File

@ -7,16 +7,27 @@ VERSION = 1.2
ICON = img/cutter.icns ICON = img/cutter.icns
QT += core gui widgets svg webenginewidgets 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
# Or manually edit this file
#CONFIG += CUTTER_ENABLE_JUPYTER
#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\\\"
CUTTER_ENABLE_QTWEBENGINE {
# TODO: make optional message("Jupyter support enabled.")
DEFINES += CUTTER_ENABLE_JUPYTER DEFINES += CUTTER_ENABLE_JUPYTER
}
CUTTER_ENABLE_QTWEBENGINE {
message("QtWebEngine support enabled.")
DEFINES += CUTTER_ENABLE_QTWEBENGINE DEFINES += CUTTER_ENABLE_QTWEBENGINE
QT += webenginewidgets
}
INCLUDEPATH *= . INCLUDEPATH *= .