Skip to content

Commit 9f5cefc

Browse files
author
wonder
committed
Added hack to include Qt3Support when building bindings on Mac.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6745 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4cb0b8a commit 9f5cefc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

python/configure.py.in

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
import os, os.path
3-
import copy, glob
3+
import copy, glob, sys
44
import sipconfig
55
import PyQt4.pyqtconfig
66

@@ -10,6 +10,10 @@ python_path = src_path + '/python'
1010
gdal_inc_dir = '@GDAL_INCLUDE_DIR@'
1111
geos_inc_dir = '@GEOS_INCLUDE_DIR@'
1212

13+
qt_libs = ["QtCore","QtGui","QtNetwork","QtSql","QtSvg","QtXml"]
14+
if sys.platform == 'darwin':
15+
qt_libs.append("Qt3Support")
16+
1317
# create paths for temporary files if don't exist
1418
if not os.path.isdir("./core"):
1519
os.mkdir("./core")
@@ -77,15 +81,15 @@ for sip in sips_gui:
7781
# linker flags needed by the Qt library.
7882
makefile_core = sipconfig.ModuleMakefile(
7983
configuration=config,
80-
qt=["QtCore","QtGui","QtNetwork","QtSql","QtSvg","QtXml"],
84+
qt=qt_libs,
8185
build_file=build_file_core,
8286
installs=installs_core,
8387
install_dir=mod_dir,
8488
dir="core")
8589

8690
makefile_gui = sipconfig.ModuleMakefile(
8791
configuration=config,
88-
qt=["QtCore","QtGui","QtNetwork","QtSql","QtSvg","QtXml"],
92+
qt=qt_libs,
8993
build_file=build_file_gui,
9094
installs=installs_gui,
9195
install_dir=mod_dir,

0 commit comments

Comments
 (0)