install a sane top-level examples.pro file
[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/unix/slog2 && $(MAKE) distclean); \
33                         (cd config.tests/x11/xcursor && $(MAKE) distclean); \
34                         (cd config.tests/x11/xrender && $(MAKE) distclean); \
35                         (cd config.tests/x11/xrandr && $(MAKE) distclean); \
36                         (cd config.tests/x11/xkb && $(MAKE) distclean); \
37                         (cd config.tests/x11/xinput && $(MAKE) distclean); \
38                         (cd config.tests/x11/fontconfig && $(MAKE) distclean); \
39                         (cd config.tests/x11/xinerama && $(MAKE) distclean); \
40                         (cd config.tests/x11/xshape && $(MAKE) distclean); \
41                         (cd config.tests/x11/opengl && $(MAKE) distclean); \
42                         $(DEL_FILE) config.tests/.qmake.cache; \
43                         $(DEL_FILE) src/corelib/global/qconfig.h; \
44                         $(DEL_FILE) src/corelib/global/qconfig.cpp; \
45                         $(DEL_FILE) mkspecs/qconfig.pri; \
46                         $(DEL_FILE) mkspecs/qdevice.pri; \
47                         $(DEL_FILE) mkspecs/qmodule.pri; \
48                         $(DEL_FILE) .qmake.cache; \
49                         (cd qmake && $(MAKE) distclean);
50 }
51 win32 {
52   confclean.commands += -$(DEL_FILE) src\\corelib\\global\\qconfig.h $$escape_expand(\\n\\t) \
53                         -$(DEL_FILE) src\\corelib\\global\\qconfig.cpp $$escape_expand(\\n\\t) \
54                         -$(DEL_FILE) mkspecs\\qconfig.pri $$escape_expand(\\n\\t) \
55                         -$(DEL_FILE) mkspecs\\qdevice.pri $$escape_expand(\\n\\t) \
56                         -$(DEL_FILE) mkspecs\\qmodule.pri $$escape_expand(\\n\\t) \
57                         -$(DEL_FILE) .qmake.cache $$escape_expand(\\n\\t) \
58                         (cd qmake && $(MAKE) distclean)
59 }
60 QMAKE_EXTRA_TARGETS += confclean
61 qmakeclean.commands += (cd qmake && $(MAKE) clean)
62 QMAKE_EXTRA_TARGETS += qmakeclean
63 CLEAN_DEPS += qmakeclean
64
65 CONFIG -= qt
66
67 ### installations ####
68
69 #qmake
70 qmake.path = $$[QT_HOST_BINS]
71 equals(QMAKE_HOST.os, Windows) {
72    qmake.files = $$OUT_PWD/bin/qmake.exe
73 } else {
74    qmake.files = $$OUT_PWD/bin/qmake
75 }
76 INSTALLS += qmake
77
78 #syncqt
79 syncqt.path = $$[QT_HOST_BINS]
80 syncqt.files = $$PWD/bin/syncqt
81 equals(QMAKE_HOST.os, Windows):syncqt.files += $$PWD/bin/syncqt.bat
82 INSTALLS += syncqt
83
84 #mkspecs
85 mkspecs.path = $$[QT_HOST_DATA]/mkspecs
86 mkspecs.files = \
87     $$OUT_PWD/mkspecs/qconfig.pri $$OUT_PWD/mkspecs/qmodule.pri $$OUT_PWD/mkspecs/qdevice.pri \
88     $$files($$PWD/mkspecs/*)   # $$OUT_PWD contains only symlinks under Unix
89 mkspecs.files -= $$PWD/mkspecs/modules
90 INSTALLS += mkspecs
91
92 global_docs.files = $$PWD/doc/global
93 global_docs.path = $$[QT_INSTALL_DOCS]
94 INSTALLS += global_docs
95
96 OTHER_FILES += \
97     configure \
98     header.BSD \
99     header.FDL \
100     header.LGPL \
101     header.LGPL-ONLY \
102     sync.profile