1 #####################################################################
3 #####################################################################
8 cross_compile
: CONFIG
+= nostrip
10 isEmpty(QT_BUILD_PARTS
) { #defaults
11 QT_BUILD_PARTS
= libs tools examples demos docs translations
12 } else
{ #make sure the order makes sense
13 contains(QT_BUILD_PARTS
, translations
) {
14 QT_BUILD_PARTS
-= translations
15 QT_BUILD_PARTS
= translations $$QT_BUILD_PARTS
17 contains(QT_BUILD_PARTS
, tools
) {
18 QT_BUILD_PARTS
-= tools
19 QT_BUILD_PARTS
= tools $$QT_BUILD_PARTS
21 contains(QT_BUILD_PARTS
, libs
) {
22 QT_BUILD_PARTS
-= libs
23 QT_BUILD_PARTS
= libs $$QT_BUILD_PARTS
25 contains(QT_BUILD_PARTS
, qmake
) {
26 QT_BUILD_PARTS
-= qmake
27 QT_BUILD_PARTS
= qmake $$QT_BUILD_PARTS
32 for(PROJECT
, $$
list($$
lower($$
unique(QT_BUILD_PARTS
)))) {
33 isEqual(PROJECT
, tools
) {
35 } else
:isEqual(PROJECT
, examples
) {
37 } else
:isEqual(PROJECT
, demos
) {
39 } else
:isEqual(PROJECT
, libs
) {
41 } else
:isEqual(PROJECT
, docs
) {
42 contains(QT_BUILD_PARTS
, tools
):include(doc
/doc
.pri
)
43 } else
:isEqual(PROJECT
, translations
) {
44 contains(QT_BUILD_PARTS
, tools
) {
45 include(translations
/translations
.pri
) # ts targets
47 SUBDIRS
+= tools
/linguist
/lrelease
49 SUBDIRS
+= translations
# qm build step
50 } else
:isEqual(PROJECT
, qmake
) {
53 message(Unknown PROJECT
: $$PROJECT
)
57 confclean
.depends
+= clean
60 confclean
.commands
+= (cd config
.tests
/unix
/stl
&& $
(MAKE
) distclean
); \
61 (cd config
.tests
/unix
/endian
&& $
(MAKE
) distclean
); \
62 (cd config
.tests
/unix
/ipv6
&& $
(MAKE
) distclean
); \
63 (cd config
.tests
/unix
/largefile
&& $
(MAKE
) distclean
); \
64 (cd config
.tests
/unix
/ptrsize
&& $
(MAKE
) distclean
); \
65 (cd config
.tests
/x11
/notype
&& $
(MAKE
) distclean
); \
66 (cd config
.tests
/unix
/getaddrinfo
&& $
(MAKE
) distclean
); \
67 (cd config
.tests
/unix
/cups
&& $
(MAKE
) distclean
); \
68 (cd config
.tests
/unix
/psql
&& $
(MAKE
) distclean
); \
69 (cd config
.tests
/unix
/mysql
&& $
(MAKE
) distclean
); \
70 (cd config
.tests
/unix
/mysql_r
&& $
(MAKE
) distclean
); \
71 (cd config
.tests
/unix
/nis
&& $
(MAKE
) distclean
); \
72 (cd config
.tests
/unix
/nix
&& $
(MAKE
) distclean
); \
73 (cd config
.tests
/unix
/iodbc
&& $
(MAKE
) distclean
); \
74 (cd config
.tests
/unix
/odbc
&& $
(MAKE
) distclean
); \
75 (cd config
.tests
/unix
/oci
&& $
(MAKE
) distclean
); \
76 (cd config
.tests
/unix
/tds
&& $
(MAKE
) distclean
); \
77 (cd config
.tests
/unix
/db2
&& $
(MAKE
) distclean
); \
78 (cd config
.tests
/unix
/ibase
&& $
(MAKE
) distclean
); \
79 (cd config
.tests
/unix
/ipv6ifname
&& $
(MAKE
) distclean
); \
80 (cd config
.tests
/unix
/zlib
&& $
(MAKE
) distclean
); \
81 (cd config
.tests
/unix
/libmng
&& $
(MAKE
) distclean
); \
82 (cd config
.tests
/unix
/sqlite2
&& $
(MAKE
) distclean
); \
83 (cd config
.tests
/unix
/libjpeg
&& $
(MAKE
) distclean
); \
84 (cd config
.tests
/unix
/libpng
&& $
(MAKE
) distclean
); \
85 (cd config
.tests
/x11
/xcursor
&& $
(MAKE
) distclean
); \
86 (cd config
.tests
/x11
/xrender
&& $
(MAKE
) distclean
); \
87 (cd config
.tests
/x11
/xrandr
&& $
(MAKE
) distclean
); \
88 (cd config
.tests
/x11
/xkb
&& $
(MAKE
) distclean
); \
89 (cd config
.tests
/x11
/xinput
&& $
(MAKE
) distclean
); \
90 (cd config
.tests
/x11
/fontconfig
&& $
(MAKE
) distclean
); \
91 (cd config
.tests
/x11
/xinerama
&& $
(MAKE
) distclean
); \
92 (cd config
.tests
/x11
/sm
&& $
(MAKE
) distclean
); \
93 (cd config
.tests
/x11
/xshape
&& $
(MAKE
) distclean
); \
94 (cd config
.tests
/x11
/opengl
&& $
(MAKE
) distclean
); \
95 $
(DEL_FILE
) config
.tests
/.qmake
.cache
; \
96 $
(DEL_FILE
) src
/core
/global
/qconfig
.h
; \
97 $
(DEL_FILE
) src
/core
/global
/qconfig
.cpp
; \
98 $
(DEL_FILE
) mkspecs
/qconfig
.pri
; \
99 $
(DEL_FILE
) .qmake
.cache
; \
100 (cd qmake
&& $
(MAKE
) distclean
);
103 confclean
.commands
+= -$
(DEL_FILE
) src\core\global\qconfig
.h $$
escape_expand(\n\t) \
104 -$
(DEL_FILE
) src\core\global\qconfig
.cpp $$
escape_expand(\n\t) \
105 -$
(DEL_FILE
) mkspecs\qconfig
.pri $$
escape_expand(\n\t) \
106 -$
(DEL_FILE
) .qmake
.cache $$
escape_expand(\n\t) \
107 (cd qmake
&& $
(MAKE
) distclean
)
109 QMAKE_EXTRA_TARGETS
+= confclean
110 qmakeclean
.commands
+= (cd qmake
&& $
(MAKE
) clean
)
111 QMAKE_EXTRA_TARGETS
+= qmakeclean
112 CLEAN_DEPS
+= qmakeclean
116 ### installations ####
119 translations
.path
=$$
[QT_INSTALL_TRANSLATIONS
]
120 translations
.files
= $$QT_SOURCE_TREE
/translations
/*.qm
121 INSTALLS += translations
124 qmake.path=$$[QT_INSTALL_BINS]
126 qmake.files=$$QT_BUILD_TREE/bin/qmake.exe
128 qmake.files=$$QT_BUILD_TREE/bin/qmake
133 mkspecs.path=$$[QT_INSTALL_DATA]/mkspecs
134 mkspecs.files=$$QT_BUILD_TREE/mkspecs/qconfig.pri $$QT_SOURCE_TREE/mkspecs/*
136 DEFAULT_QMAKESPEC = $$QMAKESPEC
137 DEFAULT_QMAKESPEC ~= s,^.*mkspecs/,,g
138 mkspecs.commands += $(DEL_FILE) $(INSTALL_ROOT)$$mkspecs.path/default; $(SYMLINK) $$DEFAULT_QMAKESPEC $(INSTALL_ROOT)$$mkspecs.path/default
142 false:macx { #mac install location
143 macdocs.files = $$htmldocs.files
144 macdocs.path = /Developer/Documentation/Qt
148 !win32:contains(QT_CONFIG, qtusagereporter) {
149 usagereporter.path=$$[QT_INSTALL_BINS]
150 usagereporter.files=$$QT_BUILD_TREE/bin/qtusagereporter
151 INSTALLS += usagereporter