From 422a43f3443f38accbae38778f6b5a2c731478ac Mon Sep 17 00:00:00 2001 From: xarkes Date: Fri, 2 Mar 2018 21:00:16 +0100 Subject: [PATCH] Set qmake Jupyter optional --- src/cutter.pro | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/cutter.pro b/src/cutter.pro index cdf42167..9be7318d 100644 --- a/src/cutter.pro +++ b/src/cutter.pro @@ -7,16 +7,27 @@ VERSION = 1.2 ICON = img/cutter.icns -QT += core gui widgets svg webenginewidgets +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 + # Define the preprocessor macro to get the application version in our application. DEFINES += APP_VERSION=\\\"$$VERSION\\\" +CUTTER_ENABLE_QTWEBENGINE { + message("Jupyter support enabled.") + DEFINES += CUTTER_ENABLE_JUPYTER +} -# TODO: make optional -DEFINES += CUTTER_ENABLE_JUPYTER -DEFINES += CUTTER_ENABLE_QTWEBENGINE +CUTTER_ENABLE_QTWEBENGINE { + message("QtWebEngine support enabled.") + DEFINES += CUTTER_ENABLE_QTWEBENGINE + QT += webenginewidgets +} INCLUDEPATH *= .