Skip to content

Commit 93fa3e1

Browse files
author
kyngchaos
committed
conditionalize some Qt settings on version
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13173 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 3a1febe commit 93fa3e1

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

mac/xcode/Qgis.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -19578,7 +19578,7 @@
1957819578
COPY_PHASE_STRIP = NO;
1957919579
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
1958019580
GCC_OPTIMIZATION_LEVEL = 0;
19581-
QGIS_VERSION_BUILD = 13169;
19581+
QGIS_VERSION_BUILD = 13172;
1958219582
STRIP_INSTALLED_PRODUCT = NO;
1958319583
};
1958419584
name = Debug;
@@ -19589,7 +19589,7 @@
1958919589
buildSettings = {
1959019590
COPY_PHASE_STRIP = YES;
1959119591
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
19592-
QGIS_VERSION_BUILD = 13169;
19592+
QGIS_VERSION_BUILD = 13172;
1959319593
STRIP_INSTALLED_PRODUCT = YES;
1959419594
};
1959519595
name = Release;

mac/xcode/qgis_settings.xcconfig

+11-4
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ QGIS_VERSION_INT = 10500
2929
// ***TODO*** - detect current version, only used in bundle script
3030
QT_MVER = $(QT_VER_MAJOR) // keep for now so I don't have to change all scripts and deps
3131
QT_VER_MAJOR = 4 // the install_name/major version
32-
QT_VER_MINOR = 5 // minor version
32+
QT_VER_MINOR = 6 // minor version
3333
QT_FWVER = $(QT_VER_MAJOR) // the Versions/ folder name, normally same as Qt ver
3434

3535
QT_DIR = /usr
@@ -51,7 +51,7 @@ PYRCC4 = $(PYTHON_USRBIN)/pyrcc4
5151
SIP_INC = /usr/local/include
5252
// from pyqtconfig.py
5353
PYQT_SIP_DIR = /usr/local/share/sip/PyQt4
54-
PYQT_SIP_FLAGS = -x VendorID -t WS_MACX -x PyQt_NoPrintRangeBug -t Qt_4_5_0 -x Py_v3 -g
54+
PYQT_SIP_FLAGS = -x VendorID -t WS_MACX -x PyQt_NoPrintRangeBug -t Qt_$(QT_VER_MAJOR)_$(QT_VER_MINOR)_0 -x Py_v3 -g
5555

5656
BISON = /usr/bin/bison
5757
GPSBABEL = /usr/local/bin/gpsbabel
@@ -232,13 +232,20 @@ QT_LIB_XML = -framework QtXml
232232
QT_LIB_SVG = -framework QtSvg
233233
QT_LIB_SQL = -framework QtSql
234234
QT_LIB_WEBKIT = -framework QtWebKit
235-
QT_LIB_DBUS = -framework QtDBus
236235
QT_LIB_PHONON = -framework phonon
237236
QT_LIB_UITOOLS = -L$(QT_DIR_SDK)/lib -lQtUiTools
237+
// needed by webkit starting in Qt 4.5
238+
QT_LIB_DBUS_4_4 =
239+
QT_LIB_DBUS_4_5 = -framework QtDBus
240+
QT_LIB_DBUS_4_6 = -framework QtDBus
241+
QT_LIB_DBUS = $(QT_LIB_DBUS_$(QT_VER_MAJOR)_$(QT_VER_MINOR))
238242
// convenience for all Qt:
239243
QT_LIB = $(QT_LIB_CORE) $(QT_LIB_GUI) $(QT_LIB_NET) $(QT_LIB_XML) $(QT_LIB_SVG) $(QT_LIB_SQL)
240244
// list of Qt frameworks used
241-
QTLISTQG = QtCore QtGui QtNetwork QtSql QtSvg QtXml QtWebKit QtDBus phonon
245+
QT_USE_4_4 =
246+
QT_USE_4_5 = QtDBus
247+
QT_USE_4_6 = QtDBus
248+
QTLISTQG = QtCore QtGui QtNetwork QtSql QtSvg QtXml QtWebKit $(QT_USE_$(QT_VER_MAJOR)_$(QT_VER_MINOR)) phonon
242249
// list of PyQt modules used
243250
PYQTLIST = Qt QtCore QtGui QtNetwork QtSql QtSvg QtXml QtWebKit phonon
244251

mac/xcode/qgis_user-template.xcconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
//QT_MVER = $(QT_VER_MAJOR)
2424
//QT_VER_MAJOR = 4 // the install_name/major version
25-
//QT_VER_MINOR = 5 // minor version, currently unused
25+
//QT_VER_MINOR = 6 // minor version, currently unused
2626
//QT_FWVER = $(QT_VER_MAJOR) // the Versions/ folder name, normally same as Qt ver
2727

2828
//QT_DIR = /usr
@@ -34,7 +34,7 @@
3434
//QTBIN = /Developer/Tools/Qt // bin dir
3535
//SIP_INC = /usr/local/include
3636
//PYQT_SIP_DIR = /usr/local/share/sip/PyQt4
37-
//PYQT_SIP_FLAGS = -x VendorID -t WS_MACX -x PyQt_NoPrintRangeBug -t Qt_4_5_0 -x Py_v3 -g
37+
//PYQT_SIP_FLAGS = -x VendorID -t WS_MACX -x PyQt_NoPrintRangeBug -t Qt_$(QT_VER_MAJOR)_$(QT_VER_MINOR)_0 -x Py_v3 -g
3838
//BISON = /usr/bin/bison // Tiger requires user-installed bison 2.3
3939
//GPSBABEL = /usr/local/bin/gpsbabel
4040

0 commit comments

Comments
 (0)