Remove obsolete URL's.
[qt:qt.git] / projects.pro
1 #####################################################################
2 # Main projectfile
3 #####################################################################
4
5 CONFIG += ordered
6 TEMPLATE = subdirs
7
8 cross_compile: CONFIG += nostrip
9
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
16    }
17    contains(QT_BUILD_PARTS, tools) {
18        QT_BUILD_PARTS -= tools
19        QT_BUILD_PARTS = tools $$QT_BUILD_PARTS
20    }
21    contains(QT_BUILD_PARTS, libs) {
22        QT_BUILD_PARTS -= libs
23        QT_BUILD_PARTS = libs $$QT_BUILD_PARTS
24    }
25    contains(QT_BUILD_PARTS, qmake) {
26        QT_BUILD_PARTS -= qmake
27        QT_BUILD_PARTS = qmake $$QT_BUILD_PARTS
28    }
29 }
30
31 #process the projects
32 for(PROJECT, $$list($$lower($$unique(QT_BUILD_PARTS)))) {
33     isEqual(PROJECT, tools) {
34        SUBDIRS += tools
35     } else:isEqual(PROJECT, examples) {
36        SUBDIRS += examples
37     } else:isEqual(PROJECT, demos) {
38        SUBDIRS += demos
39     } else:isEqual(PROJECT, libs) {
40        include(src/src.pro)
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):include(translations/translations.pri)
45     } else:isEqual(PROJECT, qmake) {
46 #      SUBDIRS += qmake
47     } else {
48        message(Unknown PROJECT: $$PROJECT)
49     }
50 }
51
52 confclean.depends += clean
53 confclean.commands =
54 unix {
55   confclean.commands += (cd config.tests/unix/stl && $(MAKE) distclean); \
56                         (cd config.tests/unix/endian && $(MAKE) distclean); \
57                         (cd config.tests/unix/ipv6 && $(MAKE) distclean); \
58                         (cd config.tests/unix/largefile && $(MAKE) distclean); \
59                         (cd config.tests/unix/ptrsize && $(MAKE) distclean); \
60                         (cd config.tests/x11/notype && $(MAKE) distclean); \
61                         (cd config.tests/unix/getaddrinfo && $(MAKE) distclean); \
62                         (cd config.tests/unix/cups && $(MAKE) distclean); \
63                         (cd config.tests/unix/psql && $(MAKE) distclean); \
64                         (cd config.tests/unix/mysql && $(MAKE) distclean); \
65                         (cd config.tests/unix/mysql_r && $(MAKE) distclean); \
66                         (cd config.tests/unix/nis && $(MAKE) distclean); \
67                         (cd config.tests/unix/nix && $(MAKE) distclean); \
68                         (cd config.tests/unix/odbc && $(MAKE) distclean); \
69                         (cd config.tests/unix/oci && $(MAKE) distclean); \
70                         (cd config.tests/unix/tds && $(MAKE) distclean); \
71                         (cd config.tests/unix/db2 && $(MAKE) distclean); \
72                         (cd config.tests/unix/ibase && $(MAKE) distclean); \
73                         (cd config.tests/unix/ipv6ifname && $(MAKE) distclean); \
74                         (cd config.tests/unix/zlib && $(MAKE) distclean); \
75                         (cd config.tests/unix/libmng && $(MAKE) distclean); \
76                         (cd config.tests/unix/sqlite2 && $(MAKE) distclean); \
77                         (cd config.tests/unix/libjpeg && $(MAKE) distclean); \
78                         (cd config.tests/unix/libpng && $(MAKE) distclean); \
79                         (cd config.tests/x11/xcursor && $(MAKE) distclean); \
80                         (cd config.tests/x11/xrender && $(MAKE) distclean); \
81                         (cd config.tests/x11/xrandr && $(MAKE) distclean); \
82                         (cd config.tests/x11/xkb && $(MAKE) distclean); \
83                         (cd config.tests/x11/xinput && $(MAKE) distclean); \
84                         (cd config.tests/x11/fontconfig && $(MAKE) distclean); \
85                         (cd config.tests/x11/xinerama && $(MAKE) distclean); \
86                         (cd config.tests/x11/sm && $(MAKE) distclean); \
87                         (cd config.tests/x11/xshape && $(MAKE) distclean); \
88                         (cd config.tests/x11/opengl && $(MAKE) distclean); \
89                         $(DEL_FILE) config.tests/.qmake.cache; \
90                         $(DEL_FILE) src/core/global/qconfig.h; \
91                         $(DEL_FILE) src/core/global/qconfig.cpp; \
92                         $(DEL_FILE) mkspecs/qconfig.pri; \
93                         $(DEL_FILE) .qmake.cache; \
94                         (cd qmake && $(MAKE) distclean);
95 }
96 win32 {
97   confclean.commands += -$(DEL_FILE) src\core\global\qconfig.h $$escape_expand(\n\t) \
98                         -$(DEL_FILE) src\core\global\qconfig.cpp $$escape_expand(\n\t) \
99                         -$(DEL_FILE) mkspecs\qconfig.pri $$escape_expand(\n\t) \
100                         -$(DEL_FILE) .qmake.cache $$escape_expand(\n\t) \
101                         (cd qmake && $(MAKE) distclean)
102 }
103 QMAKE_EXTRA_TARGETS += confclean
104 qmakeclean.commands += (cd qmake && $(MAKE) clean)
105 QMAKE_EXTRA_TARGETS += qmakeclean
106 CLEAN_DEPS += qmakeclean
107
108 CONFIG -= qt
109
110 ### installations ####
111
112 #translations
113 translations.path=$$[QT_INSTALL_TRANSLATIONS]
114 translations.files = $$QT_SOURCE_TREE/translations/*.qm
115 INSTALLS += translations
116
117 #qmake
118 qmake.path=$$[QT_INSTALL_BINS]
119 win32 {
120    qmake.files=$$QT_BUILD_TREE/bin/qmake.exe
121 } else {
122    qmake.files=$$QT_BUILD_TREE/bin/qmake
123 }
124 INSTALLS += qmake
125
126 #mkspecs
127 mkspecs.path=$$[QT_INSTALL_DATA]/mkspecs
128 mkspecs.files=$$QT_BUILD_TREE/mkspecs/qconfig.pri $$QT_SOURCE_TREE/mkspecs/*
129 unix { 
130    DEFAULT_QMAKESPEC = $$QMAKESPEC
131    DEFAULT_QMAKESPEC ~= s,^.*mkspecs/,,g
132    mkspecs.commands += $(DEL_FILE) $(INSTALL_ROOT)$$mkspecs.path/default; $(SYMLINK) $$DEFAULT_QMAKESPEC $(INSTALL_ROOT)$$mkspecs.path/default
133 }
134 INSTALLS += mkspecs
135
136 false:macx { #mac install location
137     macdocs.files = $$htmldocs.files
138     macdocs.path = /Developer/Documentation/Qt
139     INSTALLS += macdocs
140 }
141
142 !win32:contains(QT_CONFIG, qtusagereporter) {
143     usagereporter.path=$$[QT_INSTALL_BINS]
144     usagereporter.files=$$QT_BUILD_TREE/bin/qtusagereporter
145     INSTALLS += usagereporter
146 }