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
|
fix(@sandbox): greatly speed up (re)build times (#746)
since most of the compilation time is spent on creating the QRC bundle
and the resulting binary is quite huge, advice the `rcc` compiler to add
support for "big resources"
(cf https://doc.qt.io/qt-6/resources.html#embedding-large-files)
Also pass the env $LDFLAGS to qmake (to be able to link e.g. with mold,
which again greatly reduces the time to link the binary)
this leads to 6-10x faster time when recompiling
(Linux, gcc 12.1.1, mold 1.3.0)
BEFORE:
Clean build:
real 0m57,256s
user 1m25,869s
sys 0m40,963s
Incremental build, one file touched:
real 0m54,323s
user 0m54,012s
sys 0m2,934s
AFTER:
Clean build:
real 0m7,276s
user 0m21,001s
sys 0m37,256s
Incremental build, one file touched:
real 0m5,569s
user 0m4,850s
sys 0m0,840s
2022-07-01 08:18:09 +00:00
|
|
|
CONFIG += resources_big
|
2021-10-15 15:53:48 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
fix(@sandbox): greatly speed up (re)build times (#746)
since most of the compilation time is spent on creating the QRC bundle
and the resulting binary is quite huge, advice the `rcc` compiler to add
support for "big resources"
(cf https://doc.qt.io/qt-6/resources.html#embedding-large-files)
Also pass the env $LDFLAGS to qmake (to be able to link e.g. with mold,
which again greatly reduces the time to link the binary)
this leads to 6-10x faster time when recompiling
(Linux, gcc 12.1.1, mold 1.3.0)
BEFORE:
Clean build:
real 0m57,256s
user 1m25,869s
sys 0m40,963s
Incremental build, one file touched:
real 0m54,323s
user 0m54,012s
sys 0m2,934s
AFTER:
Clean build:
real 0m7,276s
user 0m21,001s
sys 0m37,256s
Incremental build, one file touched:
real 0m5,569s
user 0m4,850s
sys 0m0,840s
2022-07-01 08:18:09 +00:00
|
|
|
QMAKE_LFLAGS += $$(LDFLAGS)
|
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 \
|
2022-02-11 14:55:44 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|