2021-06-15 09:16:22 +00:00
|
|
|
QT += quick svg
|
|
|
|
|
2021-10-15 15:53:48 +00:00
|
|
|
CONFIG += c++11 warn_on qtquickcompiler
|
|
|
|
|
|
|
|
QML_IMPORT_PATH= $$PWD/../src
|
2021-06-15 09:16:22 +00:00
|
|
|
|
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
2021-05-04 18:31:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
# You can make your code fail to compile if it uses deprecated APIs.
|
|
|
|
# In order to do so, uncomment the following line.
|
|
|
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
handler.cpp \
|
|
|
|
main.cpp \
|
2021-09-13 13:18:05 +00:00
|
|
|
sandboxapp.cpp \
|
|
|
|
spellchecker.cpp
|
2021-05-04 18:31:15 +00:00
|
|
|
|
2021-06-15 09:16:22 +00:00
|
|
|
!macx {
|
|
|
|
SOURCES += statuswindow.cpp
|
|
|
|
}
|
|
|
|
|
|
|
|
TARGET = sandboxapp
|
2022-01-18 22:45:21 +00:00
|
|
|
DESTDIR = $$PWD/bin
|
2021-06-15 09:16:22 +00:00
|
|
|
|
2022-01-18 19:54:45 +00:00
|
|
|
DESTDIR = $$PWD/bin
|
|
|
|
|
2021-06-15 09:16:22 +00:00
|
|
|
macx {
|
|
|
|
CONFIG -= app_bundle
|
|
|
|
OBJECTIVE_SOURCES += \
|
|
|
|
statuswindow_mac.mm
|
2021-09-13 13:04:38 +00:00
|
|
|
|
|
|
|
hunspellTarget.depends = FORCE
|
|
|
|
hunspellTarget.commands = brew install hunspell
|
|
|
|
QMAKE_EXTRA_TARGETS += hunspellTarget
|
|
|
|
|
2021-10-21 14:44:22 +00:00
|
|
|
exists (/usr/local/lib/libhunspell-1.7.a) {
|
|
|
|
LIBS += -L"/usr/local/lib" -lhunspell-1.7
|
|
|
|
INCLUDEPATH += /usr/local/include/hunspell
|
|
|
|
DEFINES += USE_HUNSPELL
|
|
|
|
message("hunspell exists in /usr/local/lib")
|
|
|
|
}
|
2022-01-11 14:49:24 +00:00
|
|
|
|
|
|
|
copydata.commands = $(COPY_DIR) $$PWD/dictionaries $$DESTDIR
|
|
|
|
first.depends = $(first) copydata
|
|
|
|
export(first.depends)
|
|
|
|
export(copydata.commands)
|
|
|
|
QMAKE_EXTRA_TARGETS += first copydata
|
2021-06-15 09:16:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ios {
|
|
|
|
LIBS += -framework UIKit
|
|
|
|
|
|
|
|
QMAKE_TARGET_BUNDLE_PREFIX = "im.status"
|
|
|
|
#QMAKE_XCODE_CODE_SIGN_IDENTITY = "iPhone Developer"
|
|
|
|
MY_DEVELOPMENT_TEAM.name = "STATUS HOLDINGS PTE.LTD"
|
|
|
|
MY_DEVELOPMENT_TEAM.value = "DTX7Z4U3YA"
|
|
|
|
QMAKE_MAC_XCODE_SETTINGS += MY_DEVELOPMENT_TEAM
|
2021-05-12 08:11:25 +00:00
|
|
|
|
2021-06-15 09:16:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
RESOURCES += qml.qrc \
|
|
|
|
$$PWD/../statusq.qrc
|
2021-05-04 18:31:15 +00:00
|
|
|
|
|
|
|
# Default rules for deployment.
|
|
|
|
qnx: target.path = /tmp/$${TARGET}/bin
|
|
|
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
|
|
|
!isEmpty(target.path): INSTALLS += target
|
2021-06-15 09:16:22 +00:00
|
|
|
#OTHER_FILES += $$files($$PWD/../src/*, true)
|
2021-05-04 18:31:15 +00:00
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
handler.h \
|
2021-05-20 06:25:52 +00:00
|
|
|
sandboxapp.h \
|
2021-09-13 13:18:05 +00:00
|
|
|
statuswindow.h \
|
|
|
|
spellchecker.h
|
2021-05-17 10:18:41 +00:00
|
|
|
|
2021-07-08 11:42:08 +00:00
|
|
|
OTHER_FILES += $$files($$PWD/../*.qml, true)
|
|
|
|
OTHER_FILES += $$files($$PWD/*.qml, true)
|
2021-06-15 09:16:22 +00:00
|
|
|
|
|
|
|
android {
|
|
|
|
|
|
|
|
DISTFILES += \
|
|
|
|
android/AndroidManifest.xml \
|
|
|
|
android/build.gradle \
|
|
|
|
android/gradle/wrapper/gradle-wrapper.jar \
|
|
|
|
android/gradle/wrapper/gradle-wrapper.properties \
|
|
|
|
android/gradlew \
|
|
|
|
android/gradlew.bat \
|
|
|
|
android/res/values/libs.xml
|
|
|
|
|
|
|
|
contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
|
|
|
|
ANDROID_PACKAGE_SOURCE_DIR = \
|
|
|
|
$$PWD/android
|
|
|
|
}
|
|
|
|
}
|