android: work around android's linux/input.h being retarded.
[profile/ivi/qtbase.git] / qtbase.pro
1 #####################################################################
2 # Main projectfile
3 #####################################################################
4
5 load(qt_parts)
6
7 cross_compile: CONFIG += nostrip
8
9 confclean.depends += clean
10 confclean.commands =
11 unix {
12   confclean.commands += (cd config.tests/unix/stl && $(MAKE) distclean); \
13                         (cd config.tests/unix/ptrsize && $(MAKE) distclean); \
14                         (cd config.tests/x11/notype && $(MAKE) distclean); \
15                         (cd config.tests/unix/getaddrinfo && $(MAKE) distclean); \
16                         (cd config.tests/unix/cups && $(MAKE) distclean); \
17                         (cd config.tests/unix/psql && $(MAKE) distclean); \
18                         (cd config.tests/unix/mysql && $(MAKE) distclean); \
19                         (cd config.tests/unix/mysql_r && $(MAKE) distclean); \
20                         (cd config.tests/unix/nis && $(MAKE) distclean); \
21                         (cd config.tests/unix/iodbc && $(MAKE) distclean); \
22                         (cd config.tests/unix/odbc && $(MAKE) distclean); \
23                         (cd config.tests/unix/oci && $(MAKE) distclean); \
24                         (cd config.tests/unix/tds && $(MAKE) distclean); \
25                         (cd config.tests/unix/db2 && $(MAKE) distclean); \
26                         (cd config.tests/unix/ibase && $(MAKE) distclean); \
27                         (cd config.tests/unix/ipv6ifname && $(MAKE) distclean); \
28                         (cd config.tests/unix/zlib && $(MAKE) distclean); \
29                         (cd config.tests/unix/sqlite2 && $(MAKE) distclean); \
30                         (cd config.tests/unix/libjpeg && $(MAKE) distclean); \
31                         (cd config.tests/unix/libpng && $(MAKE) distclean); \
32                         (cd config.tests/x11/xcursor && $(MAKE) distclean); \
33                         (cd config.tests/x11/xrender && $(MAKE) distclean); \
34                         (cd config.tests/x11/xrandr && $(MAKE) distclean); \
35                         (cd config.tests/x11/xkb && $(MAKE) distclean); \
36                         (cd config.tests/x11/xinput && $(MAKE) distclean); \
37                         (cd config.tests/x11/fontconfig && $(MAKE) distclean); \
38                         (cd config.tests/x11/xinerama && $(MAKE) distclean); \
39                         (cd config.tests/x11/xshape && $(MAKE) distclean); \
40                         (cd config.tests/x11/opengl && $(MAKE) distclean); \
41                         $(DEL_FILE) config.tests/.qmake.cache; \
42                         $(DEL_FILE) src/corelib/global/qconfig.h; \
43                         $(DEL_FILE) src/corelib/global/qconfig.cpp; \
44                         $(DEL_FILE) mkspecs/qconfig.pri; \
45                         $(DEL_FILE) mkspecs/qdevice.pri; \
46                         $(DEL_FILE) mkspecs/qmodule.pri; \
47                         $(DEL_FILE) .qmake.cache; \
48                         (cd qmake && $(MAKE) distclean);
49 }
50 win32 {
51   confclean.commands += -$(DEL_FILE) src\\corelib\\global\\qconfig.h $$escape_expand(\\n\\t) \
52                         -$(DEL_FILE) src\\corelib\\global\\qconfig.cpp $$escape_expand(\\n\\t) \
53                         -$(DEL_FILE) mkspecs\\qconfig.pri $$escape_expand(\\n\\t) \
54                         -$(DEL_FILE) mkspecs\\qdevice.pri $$escape_expand(\\n\\t) \
55                         -$(DEL_FILE) mkspecs\\qmodule.pri $$escape_expand(\\n\\t) \
56                         -$(DEL_FILE) .qmake.cache $$escape_expand(\\n\\t) \
57                         (cd qmake && $(MAKE) distclean)
58 }
59 QMAKE_EXTRA_TARGETS += confclean
60 qmakeclean.commands += (cd qmake && $(MAKE) clean)
61 QMAKE_EXTRA_TARGETS += qmakeclean
62 CLEAN_DEPS += qmakeclean
63
64 CONFIG -= qt
65
66 ### installations ####
67
68 #qmake
69 qmake.path = $$[QT_HOST_BINS]
70 win32 {
71    qmake.files = $$OUT_PWD/bin/qmake.exe
72 } else {
73    qmake.files = $$OUT_PWD/bin/qmake
74 }
75 INSTALLS += qmake
76
77 #syncqt
78 syncqt.path = $$[QT_HOST_BINS]
79 syncqt.files = $$OUT_PWD/bin/syncqt
80 win32:syncqt.files = $$OUT_PWD/bin/syncqt.bat
81 INSTALLS += syncqt
82
83 #qtmodule-configtests
84 configtests.path = $$[QT_HOST_BINS]
85 configtests.files = $$PWD/bin/qtmodule-configtests
86 INSTALLS += configtests
87
88 #mkspecs
89 mkspecs.path = $$[QT_HOST_DATA]/mkspecs
90 mkspecs.files = \
91     $$OUT_PWD/mkspecs/qconfig.pri $$OUT_PWD/mkspecs/qmodule.pri $$OUT_PWD/mkspecs/qdevice.pri \
92     $$files($$PWD/mkspecs/*)   # $$OUT_PWD contains only symlinks under Unix
93 mkspecs.files -= $$PWD/mkspecs/modules
94 !equals(OUT_PWD, $$PWD) {
95     # When shadow building, the default mkspecs only exist in the build tree.
96     mkspecs.files += $$OUT_PWD/mkspecs/default-host $$OUT_PWD/mkspecs/default
97 }
98 !equals(QMAKE_HOST.os, Linux) {
99     # MacOS' (and maybe others') cp command is too daft to honor -f when copying symlinks.
100     mkspecs_pre.commands = rm -f $$[QT_HOST_DATA]/mkspecs/default-host $$[QT_HOST_DATA]/mkspecs/default
101     QMAKE_EXTRA_TARGETS += mkspecs_pre
102     mkspecs.depends += mkspecs_pre
103 }
104 INSTALLS += mkspecs
105
106 OTHER_FILES += \
107     configure \
108     header.BSD \
109     header.FDL \
110     header.LGPL \
111     header.LGPL-ONLY \
112     sync.profile