Ensure that the gradient is not given an invalid stop point
[qt-netbsd.git] / projects.pro
blob2a6a956a471902d49463fc3ce16b432e427e4bd0
1 #####################################################################
2 # Main projectfile
3 #####################################################################
5 CONFIG += ordered
6 TEMPLATE = subdirs
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
31 symbian {
32 QT_BUILD_PARTS = libs tools examples demos
35 #process the projects
36 for(PROJECT, $$list($$lower($$unique(QT_BUILD_PARTS)))) {
37 isEqual(PROJECT, tools) {
38 SUBDIRS += tools
39 } else:isEqual(PROJECT, examples) {
40 SUBDIRS += examples
41 } else:isEqual(PROJECT, demos) {
42 SUBDIRS += demos
43 } else:isEqual(PROJECT, libs) {
44 include(src/src.pro)
45 } else:isEqual(PROJECT, docs) {
46 contains(QT_BUILD_PARTS, tools):include(doc/doc.pri)
47 } else:isEqual(PROJECT, translations) {
48 contains(QT_BUILD_PARTS, tools):include(translations/translations.pri)
49 } else:isEqual(PROJECT, qmake) {
50 # SUBDIRS += qmake
51 } else {
52 message(Unknown PROJECT: $$PROJECT)
56 !symbian: confclean.depends += clean
57 confclean.commands =
58 unix:!symbian {
59 confclean.commands += (cd config.tests/unix/stl && $(MAKE) distclean); \
60 (cd config.tests/unix/endian && $(MAKE) distclean); \
61 (cd config.tests/unix/ipv6 && $(MAKE) distclean); \
62 (cd config.tests/unix/largefile && $(MAKE) distclean); \
63 (cd config.tests/unix/ptrsize && $(MAKE) distclean); \
64 (cd config.tests/x11/notype && $(MAKE) distclean); \
65 (cd config.tests/unix/getaddrinfo && $(MAKE) distclean); \
66 (cd config.tests/unix/cups && $(MAKE) distclean); \
67 (cd config.tests/unix/psql && $(MAKE) distclean); \
68 (cd config.tests/unix/mysql && $(MAKE) distclean); \
69 (cd config.tests/unix/mysql_r && $(MAKE) distclean); \
70 (cd config.tests/unix/nis && $(MAKE) distclean); \
71 (cd config.tests/unix/nix && $(MAKE) distclean); \
72 (cd config.tests/unix/iodbc && $(MAKE) distclean); \
73 (cd config.tests/unix/odbc && $(MAKE) distclean); \
74 (cd config.tests/unix/oci && $(MAKE) distclean); \
75 (cd config.tests/unix/tds && $(MAKE) distclean); \
76 (cd config.tests/unix/db2 && $(MAKE) distclean); \
77 (cd config.tests/unix/ibase && $(MAKE) distclean); \
78 (cd config.tests/unix/ipv6ifname && $(MAKE) distclean); \
79 (cd config.tests/unix/zlib && $(MAKE) distclean); \
80 (cd config.tests/unix/libmng && $(MAKE) distclean); \
81 (cd config.tests/unix/sqlite2 && $(MAKE) distclean); \
82 (cd config.tests/unix/libjpeg && $(MAKE) distclean); \
83 (cd config.tests/unix/libpng && $(MAKE) distclean); \
84 (cd config.tests/x11/xcursor && $(MAKE) distclean); \
85 (cd config.tests/x11/xrender && $(MAKE) distclean); \
86 (cd config.tests/x11/xrandr && $(MAKE) distclean); \
87 (cd config.tests/x11/xkb && $(MAKE) distclean); \
88 (cd config.tests/x11/xinput && $(MAKE) distclean); \
89 (cd config.tests/x11/fontconfig && $(MAKE) distclean); \
90 (cd config.tests/x11/xinerama && $(MAKE) distclean); \
91 (cd config.tests/x11/sm && $(MAKE) distclean); \
92 (cd config.tests/x11/xshape && $(MAKE) distclean); \
93 (cd config.tests/x11/opengl && $(MAKE) distclean); \
94 $(DEL_FILE) config.tests/.qmake.cache; \
95 $(DEL_FILE) src/core/global/qconfig.h; \
96 $(DEL_FILE) src/core/global/qconfig.cpp; \
97 $(DEL_FILE) mkspecs/qconfig.pri; \
98 $(DEL_FILE) .qmake.cache; \
99 (cd qmake && $(MAKE) distclean);
101 win32 {
102 confclean.commands += -$(DEL_FILE) src\core\global\qconfig.h $$escape_expand(\n\t) \
103 -$(DEL_FILE) src\core\global\qconfig.cpp $$escape_expand(\n\t) \
104 -$(DEL_FILE) mkspecs\qconfig.pri $$escape_expand(\n\t) \
105 -$(DEL_FILE) .qmake.cache $$escape_expand(\n\t) \
106 (cd qmake && $(MAKE) distclean)
108 symbian {
109 confclean.depends += distclean
110 confclean.commands += \
111 (cd src\tools\moc && $(MAKE) distclean) $$escape_expand(\n\t) \
112 (cd src\tools\rcc && $(MAKE) distclean) $$escape_expand(\n\t) \
113 (cd src\tools\uic && $(MAKE) distclean) $$escape_expand(\n\t) \
114 -$(DEL_FILE) src\corelib\global\qconfig.h $$escape_expand(\n\t) \
115 -$(DEL_FILE) src\corelib\global\qconfig.cpp $$escape_expand(\n\t) \
116 -$(DEL_FILE) mkspecs\qconfig.pri $$escape_expand(\n\t) \
117 -$(DEL_FILE) .qmake.cache $$escape_expand(\n\t) \
118 (cd qmake && $(MAKE) distclean)
121 QMAKE_EXTRA_TARGETS += confclean
122 qmakeclean.commands += (cd qmake && $(MAKE) clean)
123 QMAKE_EXTRA_TARGETS += qmakeclean
124 CLEAN_DEPS += qmakeclean
126 CONFIG -= qt
128 ### installations ####
130 #translations
131 translations.path=$$[QT_INSTALL_TRANSLATIONS]
132 translations.files = $$QT_SOURCE_TREE/translations/*.qm
133 INSTALLS += translations
135 #qmake
136 qmake.path=$$[QT_INSTALL_BINS]
137 win32 {
138 qmake.files=$$QT_BUILD_TREE/bin/qmake.exe
139 } else {
140 qmake.files=$$QT_BUILD_TREE/bin/qmake
142 INSTALLS += qmake
144 #mkspecs
145 mkspecs.path=$$[QT_INSTALL_DATA]/mkspecs
146 mkspecs.files=$$QT_BUILD_TREE/mkspecs/qconfig.pri $$QT_SOURCE_TREE/mkspecs/*
147 unix {
148 DEFAULT_QMAKESPEC = $$QMAKESPEC
149 DEFAULT_QMAKESPEC ~= s,^.*mkspecs/,,g
150 mkspecs.commands += $(DEL_FILE) $(INSTALL_ROOT)$$mkspecs.path/default; $(SYMLINK) $$DEFAULT_QMAKESPEC $(INSTALL_ROOT)$$mkspecs.path/default
152 INSTALLS += mkspecs
154 false:macx { #mac install location
155 macdocs.files = $$htmldocs.files
156 macdocs.path = /Developer/Documentation/Qt
157 INSTALLS += macdocs