Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wonder committed Mar 2, 2007
1 parent 4cb0b8a commit 9f5cefc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions python/configure.py.in
@@ -1,6 +1,6 @@

import os, os.path
import copy, glob
import copy, glob, sys
import sipconfig
import PyQt4.pyqtconfig

Expand All @@ -10,6 +10,10 @@ python_path = src_path + '/python'
gdal_inc_dir = '@GDAL_INCLUDE_DIR@'
geos_inc_dir = '@GEOS_INCLUDE_DIR@'

qt_libs = ["QtCore","QtGui","QtNetwork","QtSql","QtSvg","QtXml"]
if sys.platform == 'darwin':
qt_libs.append("Qt3Support")

# create paths for temporary files if don't exist
if not os.path.isdir("./core"):
os.mkdir("./core")
Expand Down Expand Up @@ -77,15 +81,15 @@ for sip in sips_gui:
# linker flags needed by the Qt library.
makefile_core = sipconfig.ModuleMakefile(
configuration=config,
qt=["QtCore","QtGui","QtNetwork","QtSql","QtSvg","QtXml"],
qt=qt_libs,
build_file=build_file_core,
installs=installs_core,
install_dir=mod_dir,
dir="core")

makefile_gui = sipconfig.ModuleMakefile(
configuration=config,
qt=["QtCore","QtGui","QtNetwork","QtSql","QtSvg","QtXml"],
qt=qt_libs,
build_file=build_file_gui,
installs=installs_gui,
install_dir=mod_dir,
Expand Down

0 comments on commit 9f5cefc

Please sign in to comment.