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

Last change on this file since 834 was 767, checked in by Dmitry A. Kuminov, 15 years ago

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

File size: 5.8 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.3
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
112 # workaround for the fact that some of our required includes in Symbian^3
113 # now depend upon files in epoc32/include/platform
114 INCLUDEPATH += $$OS_LAYER_SYSTEMINCLUDE
115}
116win32-borland:INCLUDEPATH += kernel
117
118aix-g++* {
119 QMAKE_CFLAGS += -mminimal-toc
120 QMAKE_CXXFLAGS += -mminimal-toc
121}
122
123embedded {
124 EMBEDDED_H = $$EMBEDDED_CPP
125}
126
127DEPENDPATH += ;$$NETWORK_H;$$KERNEL_H;$$WIDGETS_H;$$SQL_H;$$TABLE_H;$$DIALOGS_H;
128DEPENDPATH += $$ICONVIEW_H;$$OPENGL_H;$$THREAD_H;$$TOOLS_H;$$CODECS_H;
129DEPENDPATH += $$WORKSPACE_H;$$XML_H;$$STYLES_H;$$COMPAT_H
130embedded:DEPENDPATH += ;$$EMBEDDED_H
131
132!static:PRL_EXPORT_DEFINES += QT_SHARED
133
134#install directives
135include(qt_install.pri)
136
137unix:!symbian {
138 CONFIG += create_libtool create_pc explicitlib
139 QMAKE_LIBTOOL_LIBDIR = $$[QT_INSTALL_LIBS]
140 QMAKE_PRL_LIBDIR = $$[QT_INSTALL_LIBS]
141 QMAKE_PKGCONFIG_LIBDIR = $$[QT_INSTALL_LIBS]
142 QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_HEADERS]/$$TARGET
143 QMAKE_PKGCONFIG_CFLAGS = -I$$[QT_INSTALL_HEADERS]
144 QMAKE_PKGCONFIG_DESTDIR = pkgconfig
145 include_replace.match = $$QMAKE_INCDIR_QT
146 include_replace.replace = $$[QT_INSTALL_HEADERS]
147 lib_replace.match = $$QMAKE_LIBDIR_QT
148 lib_replace.replace = $$[QT_INSTALL_LIBS]
149 prefix_replace.match = $$QT_BUILD_TREE
150 prefix_replace.replace = $$[QT_INSTALL_PREFIX]
151 QMAKE_PRL_INSTALL_REPLACE += include_replace lib_replace
152 QMAKE_LIBTOOL_INSTALL_REPLACE += include_replace lib_replace
153 QMAKE_PKGCONFIG_INSTALL_REPLACE += include_replace lib_replace prefix_replace
154}
155
156contains(QT_PRODUCT, OpenSource.*):DEFINES *= QT_OPENSOURCE
157DEFINES *= QT_NO_CAST_TO_ASCII QT_ASCII_CAST_WARNINGS
158contains(QT_CONFIG, qt3support):DEFINES *= QT3_SUPPORT
159DEFINES *= QT_MOC_COMPAT #we don't need warnings from calling moc code in our generated code
160
161TARGET = $$qtLibraryTarget($$TARGET$$QT_LIBINFIX) #do this towards the end
162
163moc_dir.name = moc_location
164moc_dir.variable = QMAKE_MOC
165
166uic_dir.name = uic_location
167uic_dir.variable = QMAKE_UIC
168
169QMAKE_PKGCONFIG_VARIABLES += moc_dir uic_dir
170
171include(qt_targets.pri)
172
173win32:DEFINES+=_USE_MATH_DEFINES
Note: See TracBrowser for help on using the repository browser.