source: branches/vendor/nokia/qt/current/src/qbase.pri@ 701

Last change on this file since 701 was 649, checked in by Dmitry A. Kuminov, 16 years ago

vendor: Merged in qt-everywhere-opensource-src-4.6.2 from Nokia.

File size: 5.7 KB
Line 
1isEmpty(TARGET):error(You must set TARGET before include()'ing $${_FILE_})
2INCLUDEPATH *= $$QMAKE_INCDIR_QT/$$TARGET #just for today to have some compat
3!isEmpty(RCC_DIR): INCLUDEPATH += $$RCC_DIR
4isEmpty(QT_ARCH):!isEmpty(ARCH):QT_ARCH=$$ARCH #another compat that will rot for change #215700
5TEMPLATE = lib
6isEmpty(QT_MAJOR_VERSION) {
7 VERSION=4.6.2
8} else {
9 VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
10}
11mac:!contains(QMAKE_EXT_C, .mm):QMAKE_EXT_C += .mm
12
13#load up the headers info
14CONFIG += qt_install_headers
15HEADERS_PRI = $$QT_BUILD_TREE/include/$$TARGET/headers.pri
16include($$HEADERS_PRI, "", true)|clear(HEADERS_PRI)
17
18#version overriding
19win32 {
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)
28 }
29}
30
31#other
32DESTDIR = $$QMAKE_LIBDIR_QT
33win32:!wince*:DLLDESTDIR = $$[QT_INSTALL_PREFIX]/bin
34
35CONFIG += qt warn_on depend_includepath
36CONFIG += qmake_cache target_qt
37CONFIG -= fix_output_dirs
38win32|mac:!macx-xcode:CONFIG += debug_and_release
39linux*-g++*:QMAKE_LFLAGS += $$QMAKE_LFLAGS_NOUNDEF
40
41contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
42unix:contains(QT_CONFIG, reduce_relocations):CONFIG += bsymbolic_functions
43contains(QT_CONFIG, largefile):CONFIG += largefile
44
45#mac frameworks
46mac:!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
51 } else { #release
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
61 }
62 }
63 }
64 QMAKE_BUNDLE_DATA += FRAMEWORK_HEADERS
65 }
66}
67
68mac {
69 CONFIG += explicitlib
70 macx-g++ {
71 QMAKE_CFLAGS += -fconstant-cfstrings
72 QMAKE_CXXFLAGS += -fconstant-cfstrings
73 }
74}
75
76win32:!shared:CONFIG += static
77
78win32-borland {
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-
85}
86
87win32 {
88 CONFIG += zlib
89 INCLUDEPATH += tmp
90 !static: DEFINES+=QT_MAKEDLL
91}
92symbian {
93 shared {
94 DEFINES+=QT_MAKEDLL
95 TARGET.CAPABILITY = All -Tcb
96
97 # When building without autotests, DEF files are used by default.
98 # This is to maintain binary compatibility with previous releases.
99 # To explicitly disable DEF files usage, eg. when lots of code churn is
100 # going on, and functions may be added and removed before shipping,
101 # configure with -no-usedeffiles
102 # WARNING - disabling DEF files *will* break BC with previous released versions
103 # of Qt, and the only compatibility will be between this build of Qt and anything
104 # built in this exact environment. *Never* use this when building a version
105 # for release.
106 contains(CONFIG, def_files) {
107 defFilePath=../s60installs
108 }
109 }
110 load(armcc_warnings)
111}
112win32-borland:INCLUDEPATH += kernel
113
114aix-g++* {
115 QMAKE_CFLAGS += -mminimal-toc
116 QMAKE_CXXFLAGS += -mminimal-toc
117}
118
119embedded {
120 EMBEDDED_H = $$EMBEDDED_CPP
121}
122
123DEPENDPATH += ;$$NETWORK_H;$$KERNEL_H;$$WIDGETS_H;$$SQL_H;$$TABLE_H;$$DIALOGS_H;
124DEPENDPATH += $$ICONVIEW_H;$$OPENGL_H;$$THREAD_H;$$TOOLS_H;$$CODECS_H;
125DEPENDPATH += $$WORKSPACE_H;$$XML_H;$$STYLES_H;$$COMPAT_H
126embedded:DEPENDPATH += ;$$EMBEDDED_H
127
128!static:PRL_EXPORT_DEFINES += QT_SHARED
129
130#install directives
131include(qt_install.pri)
132
133unix:!symbian {
134 CONFIG += create_libtool create_pc explicitlib
135 QMAKE_LIBTOOL_LIBDIR = $$[QT_INSTALL_LIBS]
136 QMAKE_PRL_LIBDIR = $$[QT_INSTALL_LIBS]
137 QMAKE_PKGCONFIG_LIBDIR = $$[QT_INSTALL_LIBS]
138 QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_HEADERS]/$$TARGET
139 QMAKE_PKGCONFIG_CFLAGS = -I$$[QT_INSTALL_HEADERS]
140 QMAKE_PKGCONFIG_DESTDIR = pkgconfig
141 include_replace.match = $$QMAKE_INCDIR_QT
142 include_replace.replace = $$[QT_INSTALL_HEADERS]
143 lib_replace.match = $$QMAKE_LIBDIR_QT
144 lib_replace.replace = $$[QT_INSTALL_LIBS]
145 prefix_replace.match = $$QT_BUILD_TREE
146 prefix_replace.replace = $$[QT_INSTALL_PREFIX]
147 QMAKE_PRL_INSTALL_REPLACE += include_replace lib_replace
148 QMAKE_LIBTOOL_INSTALL_REPLACE += include_replace lib_replace
149 QMAKE_PKGCONFIG_INSTALL_REPLACE += include_replace lib_replace prefix_replace
150}
151
152contains(QT_PRODUCT, OpenSource.*):DEFINES *= QT_OPENSOURCE
153DEFINES *= QT_NO_CAST_TO_ASCII QT_ASCII_CAST_WARNINGS
154contains(QT_CONFIG, qt3support):DEFINES *= QT3_SUPPORT
155DEFINES *= QT_MOC_COMPAT #we don't need warnings from calling moc code in our generated code
156
157TARGET = $$qtLibraryTarget($$TARGET$$QT_LIBINFIX) #do this towards the end
158
159moc_dir.name = moc_location
160moc_dir.variable = QMAKE_MOC
161
162uic_dir.name = uic_location
163uic_dir.variable = QMAKE_UIC
164
165QMAKE_PKGCONFIG_VARIABLES += moc_dir uic_dir
166
167include(qt_targets.pri)
168
169win32:DEFINES+=_USE_MATH_DEFINES
Note: See TracBrowser for help on using the repository browser.