diff --git a/ScreenPlay/ScreenPlay.pro b/ScreenPlay/ScreenPlay.pro index 39b66e46..593853c1 100644 --- a/ScreenPlay/ScreenPlay.pro +++ b/ScreenPlay/ScreenPlay.pro @@ -1,8 +1,9 @@ TEMPLATE = app -QT += qml quick av widgets quickcontrols2 webkit +QT += qml quick widgets quickcontrols2 core CONFIG += c++17 +CONFIG += qtquickcompiler #DEFINES += QT_NO_DEBUG_OUTPUT QT_NO_WARNING_OUTPUT - +msvc: LIBS += -luser32 TARGETPATH = ScreenPlay SOURCES += main.cpp \ @@ -83,6 +84,13 @@ QT_QUICK_CONTROLS_STYLE = "Material" # deprecated API in order to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS +debug { + DEFINES += SP_DEBUG +} +release { + DEFINES += SP_RELEASE +} + win32 { INCLUDEPATH += "C:\msys64\mingw64\include" diff --git a/ScreenPlayWidget/ScreenPlayWidget.pro b/ScreenPlayWidget/ScreenPlayWidget.pro index e4f35df3..c448b48b 100644 --- a/ScreenPlayWidget/ScreenPlayWidget.pro +++ b/ScreenPlayWidget/ScreenPlayWidget.pro @@ -1,6 +1,6 @@ QT += quick CONFIG += c++11 - +CONFIG += qtquickcompiler # The following define makes your compiler emit warnings if you use # any feature of Qt which as been marked deprecated (the exact warnings # depend on your compiler). Please consult the documentation of the diff --git a/ScreenPlayWindow/ScreenPlayWindow.pro b/ScreenPlayWindow/ScreenPlayWindow.pro index d2bef88e..2e9795c4 100644 --- a/ScreenPlayWindow/ScreenPlayWindow.pro +++ b/ScreenPlayWindow/ScreenPlayWindow.pro @@ -1,8 +1,8 @@ TEMPLATE = app -QT += qml quick av widgets quickcontrols2 widgets +QT += qml quick quickcontrols2 widgets core CONFIG += c++17 - - +CONFIG += qtquickcompiler +msvc: LIBS += -luser32 TARGETPATH = ScreenPlayWindow SOURCES += \ @@ -51,5 +51,3 @@ win32 { INCLUDEPATH += "C:\msys64\mingw64\include" } -win32:CONFIG(release, debug|release): LIBS += -L$${OUT_PWD}/../ScreenPlaySDK/release -lScreenPlaySDK.dll -else:win32:CONFIG(debug, debug|release): LIBS += -L$${OUT_PWD}/../ScreenPlaySDK/debug -lScreenPlaySDKd.dll