1 | isEmpty(TARGET):error(You must set TARGET before include()'ing $${_FILE_})
|
---|
2 | INCLUDEPATH *= $$QMAKE_INCDIR_QT/$$TARGET #just for today to have some compat
|
---|
3 | isEmpty(QT_ARCH):!isEmpty(ARCH):QT_ARCH=$$ARCH #another compat that will rot for change #215700
|
---|
4 | TEMPLATE = lib
|
---|
5 |
|
---|
6 | include(qt_targets.pri)
|
---|
7 |
|
---|
8 | mac:!contains(QMAKE_EXT_C, .mm):QMAKE_EXT_C += .mm
|
---|
9 |
|
---|
10 | #load up the headers info
|
---|
11 | CONFIG += qt_install_headers
|
---|
12 | HEADERS_PRI = $$QT_BUILD_TREE/include/$$TARGET/headers.pri
|
---|
13 | include($$HEADERS_PRI, "", true)|clear(HEADERS_PRI)
|
---|
14 |
|
---|
15 | #version overriding
|
---|
16 | win32|os2 {
|
---|
17 | #because libnetwork.pro could be qmake'd (qmade?) before libqcore.pro we
|
---|
18 | #need to override the version of libq* in all other libq*'s just to be
|
---|
19 | #sure the same version is used
|
---|
20 | VERSIONS_LIST = $$split(VERSION, ".")
|
---|
21 | QT_LIBS_OVERRIDE = $$member(VERSIONS_LIST, 0)
|
---|
22 | for(lib, $$list(qtcore qtgui qtnetwork qtxml qtopengl qtsql qt3support)) {
|
---|
23 | eval(QMAKE_$${upper($$lib)}_VERSION_OVERRIDE = $$QT_LIBS_OVERRIDE)
|
---|
24 | eval(QMAKE_$${upper($$lib)}D_VERSION_OVERRIDE = $$QT_LIBS_OVERRIDE)
|
---|
25 | }
|
---|
26 | }
|
---|
27 |
|
---|
28 | #other
|
---|
29 | DESTDIR = $$QMAKE_LIBDIR_QT
|
---|
30 | os2|win32:!wince*:DLLDESTDIR = $$[QT_INSTALL_PREFIX]/bin
|
---|
31 |
|
---|
32 | CONFIG += qt warn_on depend_includepath
|
---|
33 | CONFIG += qmake_cache target_qt
|
---|
34 | CONFIG -= fix_output_dirs
|
---|
35 | win32|mac:!macx-xcode:CONFIG += debug_and_release
|
---|
36 | linux*-g++*:QMAKE_LFLAGS += $$QMAKE_LFLAGS_NOUNDEF
|
---|
37 |
|
---|
38 | contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
|
---|
39 | unix:contains(QT_CONFIG, reduce_relocations):CONFIG += bsymbolic_functions
|
---|
40 | contains(QT_CONFIG, largefile):CONFIG += largefile
|
---|
41 |
|
---|
42 | #mac frameworks
|
---|
43 | mac:!static:contains(QT_CONFIG, qt_framework) {
|
---|
44 | #QMAKE_FRAMEWORK_VERSION = 4.0
|
---|
45 | CONFIG += lib_bundle qt_no_framework_direct_includes qt_framework
|
---|
46 | CONFIG(debug, debug|release) {
|
---|
47 | !build_pass:CONFIG += build_all
|
---|
48 | } else { #release
|
---|
49 | !debug_and_release|build_pass {
|
---|
50 | CONFIG -= qt_install_headers #no need to install these as well
|
---|
51 | FRAMEWORK_HEADERS.version = Versions
|
---|
52 | FRAMEWORK_HEADERS.files = $$SYNCQT.HEADER_FILES $$SYNCQT.HEADER_CLASSES
|
---|
53 | FRAMEWORK_HEADERS.path = Headers
|
---|
54 | equals(TARGET, QtCore) {
|
---|
55 | #headers generated by configure
|
---|
56 | !contains(FRAMEWORK_HEADERS.files, .*/qconfig.h) {
|
---|
57 | FRAMEWORK_HEADERS.files *= $$QT_BUILD_TREE/src/corelib/global/qconfig.h
|
---|
58 | }
|
---|
59 | }
|
---|
60 | }
|
---|
61 | QMAKE_BUNDLE_DATA += FRAMEWORK_HEADERS
|
---|
62 | }
|
---|
63 | }
|
---|
64 |
|
---|
65 | mac {
|
---|
66 | CONFIG += explicitlib
|
---|
67 | macx-g++ {
|
---|
68 | QMAKE_CFLAGS += -fconstant-cfstrings
|
---|
69 | QMAKE_CXXFLAGS += -fconstant-cfstrings
|
---|
70 | }
|
---|
71 | }
|
---|
72 |
|
---|
73 | win32:!shared|os2:!shared:CONFIG += static
|
---|
74 |
|
---|
75 | win32-borland {
|
---|
76 | mng:QMAKE_CFLAGS_WARN_ON += -w-par
|
---|
77 | mng:QMAKE_CXXFLAGS_WARN_ON += -w-par
|
---|
78 | # Keep the size of the .tds file for the Qt library smaller than
|
---|
79 | # 34 Mbytes to avoid linking problems
|
---|
80 | QMAKE_CFLAGS_DEBUG += -vi -y-
|
---|
81 | QMAKE_CXXFLAGS_DEBUG += -vi -y-
|
---|
82 | }
|
---|
83 |
|
---|
84 | win32|os2 {
|
---|
85 | CONFIG += zlib
|
---|
86 | INCLUDEPATH += tmp
|
---|
87 | !static: DEFINES+=QT_MAKEDLL
|
---|
88 | }
|
---|
89 | symbian {
|
---|
90 | shared {
|
---|
91 | DEFINES+=QT_MAKEDLL
|
---|
92 | TARGET.CAPABILITY = All -Tcb
|
---|
93 |
|
---|
94 | # When building without autotests, DEF files are used by default.
|
---|
95 | # This is to maintain binary compatibility with previous releases.
|
---|
96 | # To explicitly disable DEF files usage, eg. when lots of code churn is
|
---|
97 | # going on, and functions may be added and removed before shipping,
|
---|
98 | # configure with -no-usedeffiles
|
---|
99 | # WARNING - disabling DEF files *will* break BC with previous released versions
|
---|
100 | # of Qt, and the only compatibility will be between this build of Qt and anything
|
---|
101 | # built in this exact environment. *Never* use this when building a version
|
---|
102 | # for release.
|
---|
103 | contains(CONFIG, def_files) {
|
---|
104 | defFilePath=../s60installs
|
---|
105 | }
|
---|
106 | }
|
---|
107 | load(armcc_warnings)
|
---|
108 | }
|
---|
109 | win32-borland:INCLUDEPATH += kernel
|
---|
110 |
|
---|
111 | aix-g++* {
|
---|
112 | QMAKE_CFLAGS += -mminimal-toc
|
---|
113 | QMAKE_CXXFLAGS += -mminimal-toc
|
---|
114 | }
|
---|
115 |
|
---|
116 | embedded {
|
---|
117 | EMBEDDED_H = $$EMBEDDED_CPP
|
---|
118 | }
|
---|
119 |
|
---|
120 | DEPENDPATH += ;$$NETWORK_H;$$KERNEL_H;$$WIDGETS_H;$$SQL_H;$$TABLE_H;$$DIALOGS_H;
|
---|
121 | DEPENDPATH += $$ICONVIEW_H;$$OPENGL_H;$$THREAD_H;$$TOOLS_H;$$CODECS_H;
|
---|
122 | DEPENDPATH += $$WORKSPACE_H;$$XML_H;$$STYLES_H;$$COMPAT_H
|
---|
123 | embedded:DEPENDPATH += ;$$EMBEDDED_H
|
---|
124 |
|
---|
125 | !static:PRL_EXPORT_DEFINES += QT_SHARED
|
---|
126 |
|
---|
127 | #install directives
|
---|
128 | include(qt_install.pri)
|
---|
129 |
|
---|
130 | unix:!symbian {
|
---|
131 | CONFIG += create_libtool create_pc explicitlib
|
---|
132 | QMAKE_LIBTOOL_LIBDIR = $$[QT_INSTALL_LIBS]
|
---|
133 | QMAKE_PRL_LIBDIR = $$[QT_INSTALL_LIBS]
|
---|
134 | QMAKE_PKGCONFIG_LIBDIR = $$[QT_INSTALL_LIBS]
|
---|
135 | QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_HEADERS]/$$TARGET
|
---|
136 | QMAKE_PKGCONFIG_CFLAGS = -I$$[QT_INSTALL_HEADERS]
|
---|
137 | QMAKE_PKGCONFIG_DESTDIR = pkgconfig
|
---|
138 | include_replace.match = $$QMAKE_INCDIR_QT
|
---|
139 | include_replace.replace = $$[QT_INSTALL_HEADERS]
|
---|
140 | lib_replace.match = $$QMAKE_LIBDIR_QT
|
---|
141 | lib_replace.replace = $$[QT_INSTALL_LIBS]
|
---|
142 | prefix_replace.match = $$QT_BUILD_TREE
|
---|
143 | prefix_replace.replace = $$[QT_INSTALL_PREFIX]
|
---|
144 | QMAKE_PRL_INSTALL_REPLACE += include_replace lib_replace
|
---|
145 | QMAKE_LIBTOOL_INSTALL_REPLACE += include_replace lib_replace
|
---|
146 | QMAKE_PKGCONFIG_INSTALL_REPLACE += include_replace lib_replace prefix_replace
|
---|
147 | }
|
---|
148 |
|
---|
149 | contains(QT_PRODUCT, OpenSource.*):DEFINES *= QT_OPENSOURCE
|
---|
150 | DEFINES *= QT_NO_CAST_TO_ASCII QT_ASCII_CAST_WARNINGS
|
---|
151 | contains(QT_CONFIG, qt3support):DEFINES *= QT3_SUPPORT
|
---|
152 | DEFINES *= QT_MOC_COMPAT #we don't need warnings from calling moc code in our generated code
|
---|
153 |
|
---|
154 | TARGET = $$qtLibraryTarget($$TARGET$$QT_LIBINFIX) #do this towards the end
|
---|
155 | !isEmpty(TARGET_SHORT):TARGET_SHORT = $$qtLibraryTarget($$TARGET_SHORT$$QT_LIBINFIX) #do this towards the end
|
---|
156 |
|
---|
157 | moc_dir.name = moc_location
|
---|
158 | moc_dir.variable = QMAKE_MOC
|
---|
159 |
|
---|
160 | uic_dir.name = uic_location
|
---|
161 | uic_dir.variable = QMAKE_UIC
|
---|
162 |
|
---|
163 | QMAKE_PKGCONFIG_VARIABLES += moc_dir uic_dir
|
---|
164 |
|
---|
165 | win32:DEFINES+=_USE_MATH_DEFINES
|
---|