mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-18 16:32:33 +02:00
Clean pro to use mac only feature only at one place
This commit is contained in:
parent
dcfa165d85
commit
6cc6686691
@ -1,7 +1,7 @@
|
|||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
QT += qml quick quickcontrols2 widgets core webengine
|
QT += qml quick quickcontrols2 widgets core webengine
|
||||||
CONFIG += c++17
|
CONFIG += c++17
|
||||||
CONFIG += qtquickcompiler
|
#CONFIG += qtquickcompiler
|
||||||
msvc: LIBS += -luser32
|
msvc: LIBS += -luser32
|
||||||
TARGETPATH = ScreenPlayWindow
|
TARGETPATH = ScreenPlayWindow
|
||||||
|
|
||||||
@ -12,14 +12,6 @@ SOURCES += \
|
|||||||
HEADERS += \
|
HEADERS += \
|
||||||
src/SPWmainwindow.h
|
src/SPWmainwindow.h
|
||||||
|
|
||||||
macx: {
|
|
||||||
QMAKE_LFLAGS += -framework Cocoa
|
|
||||||
SOURCES += src/macintegration.cpp
|
|
||||||
HEADERS += src/macintegration.h \
|
|
||||||
src/macbridge.h
|
|
||||||
OBJECTIVE_SOURCES += src/MacBridge.mm
|
|
||||||
}
|
|
||||||
|
|
||||||
RESOURCES += \
|
RESOURCES += \
|
||||||
SPWResources.qrc
|
SPWResources.qrc
|
||||||
|
|
||||||
@ -31,8 +23,18 @@ INCLUDEPATH += \
|
|||||||
include(../ScreenPlaySDK/Screenplaysdk.pri)
|
include(../ScreenPlaySDK/Screenplaysdk.pri)
|
||||||
|
|
||||||
macx: {
|
macx: {
|
||||||
QMAKE_LIBDIR += $$OUT_PWD/
|
QMAKE_LIBDIR += $$OUT_PWD/
|
||||||
install_it.path = $${OUT_PWD}/../ScreenPlaySDK
|
install_it.path = $${OUT_PWD}/../ScreenPlaySDK
|
||||||
|
|
||||||
|
html_data.files = index.html
|
||||||
|
html_data.path = Contents/MacOS
|
||||||
|
QMAKE_BUNDLE_DATA += html_data
|
||||||
|
|
||||||
|
QMAKE_LFLAGS += -framework Cocoa
|
||||||
|
SOURCES += src/macintegration.cpp
|
||||||
|
HEADERS += src/macintegration.h \
|
||||||
|
src/macbridge.h
|
||||||
|
OBJECTIVE_SOURCES += src/MacBridge.mm
|
||||||
}
|
}
|
||||||
|
|
||||||
!macx: {
|
!macx: {
|
||||||
@ -46,19 +48,12 @@ install_it.path = $${OUT_PWD}/../ScreenPlaySDK
|
|||||||
QMAKE_LIBDIR += $$OUT_PWD/../ScreenPlaySDK/release
|
QMAKE_LIBDIR += $$OUT_PWD/../ScreenPlaySDK/release
|
||||||
}
|
}
|
||||||
QMAKE_LIBDIR += $$OUT_PWD/../ScreenPlaySDK
|
QMAKE_LIBDIR += $$OUT_PWD/../ScreenPlaySDK
|
||||||
}
|
|
||||||
|
|
||||||
macx: {
|
install_it.files += index.html \
|
||||||
html_data.files = index.html
|
install_it.path = $${OUT_PWD}/
|
||||||
html_data.path = Contents/MacOS
|
INSTALLS += install_it
|
||||||
QMAKE_BUNDLE_DATA += html_data
|
DISTFILES += \
|
||||||
}
|
index.html
|
||||||
|
|
||||||
!macx: {
|
|
||||||
install_it.files += index.html \
|
|
||||||
INSTALLS += install_it
|
|
||||||
DISTFILES += \
|
|
||||||
index.html
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user