This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathqtifw-advanced-setup.pri
55 lines (45 loc) · 1.94 KB
/
qtifw-advanced-setup.pri
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
!qpmx_static {
qtifw_target: CONFIG *= qtifw_install_targets
include($$PWD/deploy/deploy.pri)
include($$PWD/installer/installer.pri)
qtifw_install_compress.target = qtifw-compress
QMAKE_EXTRA_TARGETS += qtifw_install_compress
equals(QTIFW_MODE, repository)|equals(QTIFW_MODE, online_all) { #deploy repository
target_c_rep.target = target_c_rep
QMAKE_EXTRA_TARGETS += target_c_rep
qtifw_install_compress.depends += target_c_rep
win32: QTIFW_REPO_NAME = ../repository_win.zip
else:mac: QTIFW_REPO_NAME = ../repository_mac.tar.xz
else: QTIFW_REPO_NAME = ../repository_linux.tar.xz
target_c_rep.commands = cd $$shell_path($(INSTALL_ROOT)/repository) &&
win32: target_c_rep.commands += 7z a $$shell_path($$QTIFW_REPO_NAME) .\*
else: target_c_rep.commands += tar cJf $$QTIFW_REPO_NAME ./*
}
!equals(QTIFW_MODE, repository):mac { #deploy installer binary
target_c_mac.target = target_c_mac
QMAKE_EXTRA_TARGETS += target_c_mac
qtifw_install_compress.depends += target_c_mac
target_c_mac.commands = cd $(INSTALL_ROOT) && \
zip -r -9 $$shell_quote($${QTIFW_TARGET}$${QTIFW_TARGET_EXT}.zip) $$shell_quote($${QTIFW_TARGET}$${QTIFW_TARGET_EXT})
}
qtifw_target {
qtifw_auto_ts {
install.depends += lrelease
QMAKE_EXTRA_TARGETS += install
}
!qtifw_deploy_no_install: qtifw_deploy.depends += install
qtifw_inst.depends += deploy
qtifw_install_compress.depends += installer
target_c_rep.depends = installer
target_c_mac.depends = installer
qtifwtarget.target = qtifw
qtifwtarget.depends += installer
!qtifw_no_compress: qtifwtarget.depends += qtifw-compress
QMAKE_EXTRA_TARGETS += qtifwtarget
qtifw_build_target.target = qtifw-build
qtifw_build_target.depends += FORCE
qtifw_build_target.commands += $$QMAKE_MKDIR $$shell_quote($$shell_path($$OUT_PWD\qtifw-build)) \
$$escape_expand(\n\t)@$(MAKE) $$shell_quote(INSTALL_ROOT=$$shell_path($$OUT_PWD/qtifw-build)) qtifw
QMAKE_EXTRA_TARGETS += qtifw_build_target
}
}