Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit 69db72e

Browse files
committedFeb 5, 2019
replace qpmx by qdep (WIP)
1 parent 0739cd2 commit 69db72e

File tree

14 files changed

+20
-132
lines changed

14 files changed

+20
-132
lines changed
 

‎README.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,8 @@ A simple offline-first synchronisation framework, to synchronize data of Qt appl
6060
3. Download the compiled modules from the release page. **Note:** You will have to add the correct ones yourself and may need to adjust some paths to fit your installation! In addition to that, you will have to download the modules this one depends on as well. See Section "Requirements" below.
6161
4. Build it yourself! **Note:** This requires all build an runtime dependencies to be available (See Section "Requirements" below). If you don't have/need cmake, you can ignore the related warnings. To automatically build and install to your Qt installation, run:
6262
- `qmake`
63-
- `make qmake_all`
6463
- `make` (If you want the tests/examples/etc. run `make all`)
65-
- Optional steps:
66-
- `make doxygen` to generate the documentation
67-
- `make lrelease` to generate the translations
64+
- Optional step: `make doxygen` to generate the documentation
6865
- `make install`
6966

7067
## Requirements

‎mkspecs/features/qtdatasync_androidkeystore.prf

-1
This file was deleted.

‎qtdatasync.pro

-6
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ doxygen.recurse_target = doxygen
88
doxygen.recurse += doc
99
QMAKE_EXTRA_TARGETS += doxygen
1010

11-
lrelease.target = lrelease
12-
lrelease.CONFIG = recursive
13-
lrelease.recurse_target = lrelease
14-
lrelease.recurse += sub_src sub_tools
15-
QMAKE_EXTRA_TARGETS += lrelease
16-
1711
runtests.target = run-tests
1812
runtests.CONFIG = recursive
1913
runtests.recurse_target = run-tests

‎src/3rdparty/3rdparty.pro

-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@ TEMPLATE = subdirs
22

33
system_cryptopp:unix: message("Not building cryptopp, using system provided version")
44
else: SUBDIRS += cryptopp
5-
6-
prepareRecursiveTarget(lrelease)
7-
QMAKE_EXTRA_TARGETS += lrelease

‎src/3rdparty/cryptopp/cryptopp.pro

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
TEMPLATE = lib
2-
CONFIG += staticlib
2+
CONFIG += static
33
CONFIG -= qt
44

55
TARGET = qtcryptopp
@@ -9,7 +9,7 @@ win32:!win32-g++ {
99
MODULE_DEFINES += CRYPTOPP_DISABLE_ASM #TODO reenable again later
1010
cross_compile: MODULE_DEFINES += NO_OS_DEPENDENCE
1111
} else {
12-
# based on https://github.com/KayEss/fost-crypto/blob/master/CMakeLists.txt
12+
# based on https://github.com/KayEss/fost-crypto/blob/master/CMakeLists.txt
1313
QMAKE_CXXFLAGS += -Wno-keyword-macro -Wno-unused-const-variable -Wno-unused-private-field
1414

1515
!isEmpty(ANDROID_TARGET_ARCH) {
@@ -70,5 +70,3 @@ HEADER_INSTALL_DIR = "$$MODULE_BASE_OUTDIR/include/cryptopp"
7070
MODULE_INCLUDEPATH += "$$MODULE_BASE_OUTDIR/include"
7171

7272
load(qt_helper_lib)
73-
74-
QMAKE_EXTRA_TARGETS += lrelease

‎src/datasync/datasync.pro

+8-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
TARGET = QtDataSync
22

33
QT = core jsonserializer sql websockets scxml remoteobjects
4+
android: QT += androidextras
45

56
HEADERS += \
67
qtdatasync_global.h \
@@ -92,21 +93,16 @@ TRANSLATIONS += \
9293
translations/qtdatasync_de.ts \
9394
translations/qtdatasync_template.ts
9495

95-
DISTFILES += $$TRANSLATIONS
96-
9796
include(rothreadedbackend/rothreadedbackend.pri)
9897
include(../messages/messages.pri)
9998

10099
MODULE_CONFIG += c++14
101-
android: MODULE_CONFIG += qtdatasync_androidkeystore
102100
MODULE_PLUGIN_TYPES = keystores
103101

104102
load(qt_module)
105103

106-
android: FEATURES += ../../mkspecs/features/qtdatasync_androidkeystore.prf
107-
features.files = $$FEATURES
108-
features.path = $$[QT_HOST_DATA]/mkspecs/features/
109-
INSTALLS += features
104+
CONFIG += lrelease
105+
QM_FILES_INSTALL_PATH = $$[QT_INSTALL_TRANSLATIONS]
110106

111107
win32 {
112108
QMAKE_TARGET_PRODUCT = "QtDataSync"
@@ -117,9 +113,8 @@ win32 {
117113
CONFIG -= c++1z #TODO remove later
118114
}
119115

120-
qpmx_ts_target.path = $$[QT_INSTALL_TRANSLATIONS]
121-
qpmx_ts_target.depends += lrelease
122-
INSTALLS += qpmx_ts_target
116+
QDEP_DEPENDS += Skycoder42/QPluginFactory
117+
QDEP_LINK_DEPENDS += ../messages
123118

124119
# extra cpp files for translations
125120
never_true_lupdate_only {
@@ -133,9 +128,8 @@ never_true_lupdate_only {
133128
for(plugin, PLUGINS): SOURCES += $$plugin/*.cpp
134129
}
135130

136-
!ReleaseBuild:!DebugBuild:!system(qpmx -d $$shell_quote($$_PRO_FILE_PWD_) --qmake-run init $$QPMX_EXTRA_OPTIONS $$shell_quote($$QMAKE_QMAKE) $$shell_quote($$OUT_PWD)): error(qpmx initialization failed. Check the compilation log for details.)
137-
else: include($$OUT_PWD/qpmx_generated.pri)
131+
!load(qdep):error("Failed to load qdep feature! Run 'qdep prfgen --qmake $$QMAKE_QMAKE' to create it.")
138132

139133
#replace template qm by ts
140-
qpmx_ts_target.files -= $$OUT_PWD/$$QPMX_WORKINGDIR/qtdatasync_template.qm
141-
qpmx_ts_target.files += translations/qtdatasync_template.ts
134+
QM_FILES -= $$__qdep_lrelease_real_dir/qtdatasync_template.qm
135+
QM_FILES += translations/qtdatasync_template.ts

‎src/datasync/qpmx.json

-27
This file was deleted.

‎src/messages/messages.pro

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ load(qt_helper_lib)
6363
CONFIG += qt warning_clean
6464
QT = core
6565

66-
# dummy target, translations are all done in datasync
67-
QMAKE_EXTRA_TARGETS += lrelease
66+
QDEP_DEPENDS += Skycoder42/CryptoQQ
67+
QDEP_EXPORTS += Skycoder42/CryptoQQ
68+
CONFIG += qdep_no_link
6869

69-
!ReleaseBuild:!DebugBuild:!system(qpmx -d $$shell_quote($$_PRO_FILE_PWD_) --qmake-run init $$QPMX_EXTRA_OPTIONS $$shell_quote($$QMAKE_QMAKE) $$shell_quote($$OUT_PWD)): error(qpmx initialization failed. Check the compilation log for details.)
70-
else: include($$OUT_PWD/qpmx_generated.pri)
70+
!load(qdep):error("Failed to load qdep feature! Run 'qdep prfgen --qmake $$QMAKE_QMAKE' to create it.")

‎src/messages/qpmx.json

-21
This file was deleted.

‎src/plugins/keystores/keystores.pro

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ TEMPLATE = subdirs
22

33
SUBDIRS += plain
44
qtHaveModule(KWallet): SUBDIRS += kwallet
5-
unix:!android:!ios:system(pkg-config --exists libsecret-1): SUBDIRS += secretservice
5+
unix:!android:!ios:packagesExist(libsecret-1): SUBDIRS += secretservice
66
win32:!cross_compile: SUBDIRS += wincred
77
mac|ios: SUBDIRS += keychain
88
android:qtHaveModule(androidextras): SUBDIRS += android
9-
10-
prepareRecursiveTarget(lrelease)
11-
QMAKE_EXTRA_TARGETS += lrelease

‎src/src.pro

+1-10
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,19 @@ datasync.depends += messages 3rdparty
1212
plugins.depends += datasync
1313
imports.depends += datasync
1414

15-
imports.CONFIG += no_lrelease_target
16-
plugins.CONFIG += no_lrelease_target
17-
1815
android {
1916
SUBDIRS += datasyncandroid
2017
!android-embedded: SUBDIRS += java
2118

2219
datasyncandroid.depends += datasync java
2320
imports.depends += datasyncandroid
24-
25-
datasyncandroid.CONFIG += no_lrelease_target
26-
java.CONFIG += no_lrelease_target
2721
}
2822

2923
ios {
3024
SUBDIRS += datasyncios
3125

3226
datasyncios.depends += datasync
3327
imports.depends += datasyncios
34-
35-
datasyncios.CONFIG += no_lrelease_target
3628
}
3729

38-
prepareRecursiveTarget(lrelease)
39-
QMAKE_EXTRA_TARGETS += lrelease run-tests
30+
QMAKE_EXTRA_TARGETS += run-tests

‎tools/appserver/appserver.pro

+2-10
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ DISTFILES += $$SVC_CONFIG_FILES \
4747
dockerbuild/*
4848

4949
include(../../src/messages/messages.pri)
50+
QDEP_LINK_DEPENDS += ../../src/messages
5051

5152
win32 {
5253
QMAKE_TARGET_PRODUCT = "Qt Datasync Server"
@@ -57,13 +58,6 @@ win32 {
5758
CONFIG -= c++1z #TODO remove later
5859
}
5960

60-
#not found by linker?
61-
#unix:!mac {
62-
# LIBS += -L$$[QT_INSTALL_LIBS] -licudata
63-
# LIBS += -L$$[QT_INSTALL_LIBS] -licui18n
64-
# LIBS += -L$$[QT_INSTALL_LIBS] -licuuc
65-
#}
66-
6761
load(qt_app)
6862

6963
# svc-files install
@@ -100,6 +94,4 @@ install_system_service {
10094
INSTALLS += install_svcconf
10195
}
10296

103-
!ReleaseBuild:!DebugBuild:!system(qpmx -d $$shell_quote($$_PRO_FILE_PWD_) --qmake-run init $$QPMX_EXTRA_OPTIONS $$shell_quote($$QMAKE_QMAKE) $$shell_quote($$OUT_PWD)): error(qpmx initialization failed. Check the compilation log for details.)
104-
else: include($$OUT_PWD/qpmx_generated.pri)
105-
97+
!load(qdep):error("Failed to load qdep feature! Run 'qdep prfgen --qmake $$QMAKE_QMAKE' to create it.")

‎tools/appserver/qpmx.json

-22
This file was deleted.

‎tools/tools.pro

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ TEMPLATE = subdirs
22

33
!cross_compile: SUBDIRS += appserver
44

5-
prepareRecursiveTarget(lrelease)
6-
QMAKE_EXTRA_TARGETS += lrelease run-tests
5+
QMAKE_EXTRA_TARGETS += run-tests

0 commit comments

Comments
 (0)
This repository has been archived.