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(RCC_DIR): INCLUDEPATH += $$RCC_DIR
4 isEmpty(QT_ARCH):!isEmpty(ARCH):QT_ARCH=$$ARCH #another compat that will rot for change #215700
6 isEmpty(QT_MAJOR_VERSION) {
9 VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
11 mac:!contains(QMAKE_EXT_C, .mm):QMAKE_EXT_C += .mm
13 #load up the headers info
14 CONFIG += qt_install_headers
15 HEADERS_PRI = $$QT_BUILD_TREE/include/$$TARGET/headers.pri
16 include($$HEADERS_PRI, "", true)|clear(HEADERS_PRI)
20 #because libnetwork.pro could be qmake'd (qmade?) before libqcore.pro we
21 #need to override the version of libq* in all other libq*'s just to be
22 #sure the same version is used
23 VERSIONS_LIST = $$split(VERSION, ".")
24 QT_LIBS_OVERRIDE = $$member(VERSIONS_LIST, 0)
25 for(lib, $$list(qtcore qtgui qtnetwork qtxml qtopengl qtsql qt3support)) {
26 eval(QMAKE_$${upper($$lib)}_VERSION_OVERRIDE = $$QT_LIBS_OVERRIDE)
27 eval(QMAKE_$${upper($$lib)}D_VERSION_OVERRIDE = $$QT_LIBS_OVERRIDE)
32 DESTDIR = $$QMAKE_LIBDIR_QT
33 win32:!wince*:DLLDESTDIR = $$[QT_INSTALL_PREFIX]/bin
35 CONFIG += qt warn_on depend_includepath
36 CONFIG += qmake_cache target_qt
37 CONFIG -= fix_output_dirs
38 win32|mac:!macx-xcode:CONFIG += debug_and_release
39 linux-g++*:QMAKE_LFLAGS += $$QMAKE_LFLAGS_NOUNDEF
41 contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
42 unix:contains(QT_CONFIG, reduce_relocations):CONFIG += bsymbolic_functions
43 contains(QT_CONFIG, largefile):CONFIG += largefile
46 mac:!static:contains(QT_CONFIG, qt_framework) {
47 #QMAKE_FRAMEWORK_VERSION = 4.0
48 CONFIG += lib_bundle qt_no_framework_direct_includes qt_framework
49 CONFIG(debug, debug|release) {
50 !build_pass:CONFIG += build_all
52 !debug_and_release|build_pass {
53 CONFIG -= qt_install_headers #no need to install these as well
54 FRAMEWORK_HEADERS.version = Versions
55 FRAMEWORK_HEADERS.files = $$SYNCQT.HEADER_FILES $$SYNCQT.HEADER_CLASSES
56 FRAMEWORK_HEADERS.path = Headers
57 equals(TARGET, QtCore) {
58 #headers generated by configure
59 !contains(FRAMEWORK_HEADERS.files, .*/qconfig.h) {
60 FRAMEWORK_HEADERS.files *= $$QT_BUILD_TREE/src/corelib/global/qconfig.h
64 QMAKE_BUNDLE_DATA += FRAMEWORK_HEADERS
71 QMAKE_CFLAGS += -fconstant-cfstrings
72 QMAKE_CXXFLAGS += -fconstant-cfstrings
76 win32:!shared:CONFIG += static
79 mng:QMAKE_CFLAGS_WARN_ON += -w-par
80 mng:QMAKE_CXXFLAGS_WARN_ON += -w-par
81 # Keep the size of the .tds file for the Qt library smaller than
82 # 34 Mbytes to avoid linking problems
83 QMAKE_CFLAGS_DEBUG += -vi -y-
84 QMAKE_CXXFLAGS_DEBUG += -vi -y-
90 !static: DEFINES+=QT_MAKEDLL
95 TARGET.CAPABILITY = All -Tcb
98 "$${LITERAL_HASH}ifdef WINSCW" \
99 "DEFFILE ../s60installs/bwins/$${TARGET}.def" \
100 "$${LITERAL_HASH}elif defined EABI" \
101 "DEFFILE ../s60installs/eabi/$${TARGET}.def" \
102 "$${LITERAL_HASH}endif"
104 #with defBlock enabled, removed exported symbols are treated as errors
105 #and there is binary compatibility between successive builds.
106 #with defBlock disabled, binary compatibility is broken every time you build
107 #MMP_RULES += defBlock
109 #with EXPORTUNFROZEN enabled, new exports are included in the dll without
110 #needing to run abld freeze, however binary compatibility is only maintained
111 #for symbols that are frozen (and only if defBlock is also enabled)
112 #the downside of EXPORTUNFROZEN is that the linker gets run twice
113 MMP_RULES += EXPORTUNFROZEN
117 win32-borland:INCLUDEPATH += kernel
120 QMAKE_CFLAGS += -mminimal-toc
121 QMAKE_CXXFLAGS += -mminimal-toc
125 EMBEDDED_H = $$EMBEDDED_CPP
128 DEPENDPATH += ;$$NETWORK_H;$$KERNEL_H;$$WIDGETS_H;$$SQL_H;$$TABLE_H;$$DIALOGS_H;
129 DEPENDPATH += $$ICONVIEW_H;$$OPENGL_H;$$THREAD_H;$$TOOLS_H;$$CODECS_H;
130 DEPENDPATH += $$WORKSPACE_H;$$XML_H;$$STYLES_H;$$COMPAT_H
131 embedded:DEPENDPATH += ;$$EMBEDDED_H
133 !static:PRL_EXPORT_DEFINES += QT_SHARED
136 include(qt_install.pri)
139 CONFIG += create_libtool create_pc explicitlib
140 QMAKE_LIBTOOL_LIBDIR = $$[QT_INSTALL_LIBS]
141 QMAKE_PRL_LIBDIR = $$[QT_INSTALL_LIBS]
142 QMAKE_PKGCONFIG_LIBDIR = $$[QT_INSTALL_LIBS]
143 QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_HEADERS]/$$TARGET
144 QMAKE_PKGCONFIG_CFLAGS = -I$$[QT_INSTALL_HEADERS]
145 QMAKE_PKGCONFIG_DESTDIR = pkgconfig
146 include_replace.match = $$QMAKE_INCDIR_QT
147 include_replace.replace = $$[QT_INSTALL_HEADERS]
148 lib_replace.match = $$QMAKE_LIBDIR_QT
149 lib_replace.replace = $$[QT_INSTALL_LIBS]
150 prefix_replace.match = $$QT_BUILD_TREE
151 prefix_replace.replace = $$[QT_INSTALL_PREFIX]
152 QMAKE_PRL_INSTALL_REPLACE += include_replace lib_replace
153 QMAKE_LIBTOOL_INSTALL_REPLACE += include_replace lib_replace
154 QMAKE_PKGCONFIG_INSTALL_REPLACE += include_replace lib_replace prefix_replace
157 contains(QT_PRODUCT, OpenSource.*):DEFINES *= QT_OPENSOURCE
158 DEFINES *= QT_NO_CAST_TO_ASCII QT_ASCII_CAST_WARNINGS
159 contains(QT_CONFIG, qt3support):DEFINES *= QT3_SUPPORT
160 DEFINES *= QT_MOC_COMPAT #we don't need warnings from calling moc code in our generated code
162 TARGET = $$qtLibraryTarget($$TARGET$$QT_LIBINFIX) #do this towards the end
164 moc_dir.name = moc_location
165 moc_dir.variable = QMAKE_MOC
167 uic_dir.name = uic_location
168 uic_dir.variable = QMAKE_UIC
170 QMAKE_PKGCONFIG_VARIABLES += moc_dir uic_dir
172 include(qt_targets.pri)
174 win32:DEFINES+=_USE_MATH_DEFINES