Skip to content
Permalink
Browse files
PyQGIS: support for Mac universal builds - fixes #876
git-svn-id: http://svn.osgeo.org/qgis/trunk@7807 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Dec 19, 2007
1 parent 11e2d02 commit 5054cac6abaf39d1abfda790cdf3844317696d46
Showing with 12 additions and 2 deletions.
  1. +12 −2 python/configure.py.in
@@ -16,6 +16,14 @@ qt_libs = ["QtCore","QtGui","QtNetwork","QtSvg","QtXml"]
if sys.platform == 'darwin':
qt_libs.append("Qt3Support")
qt_libs.append("QtSql")
# possibility of universal build of bindings
osx_archs = '@CMAKE_OSX_ARCHITECTURES@'
if osx_archs == 'ppc;i386' or osx_archs == 'i386;ppc':
osx_universal = '@CMAKE_OSX_SYSROOT@'
else:
osx_universal = ''
else:
osx_universal = ''

if len(sys.argv)>1:
intdir = "/" + sys.argv[1]
@@ -98,15 +106,17 @@ makefile_core = sipconfig.ModuleMakefile(
build_file=build_file_core,
installs=installs_core,
install_dir=mod_dir,
dir="core")
dir="core",
universal=osx_universal)

makefile_gui = sipconfig.ModuleMakefile(
configuration=config,
qt=qt_libs,
build_file=build_file_gui,
installs=installs_gui,
install_dir=mod_dir,
dir="gui")
dir="gui",
universal=osx_universal)

# common settings for both core and gui libs
for mk in [ makefile_core, makefile_gui ]:

0 comments on commit 5054cac

Please sign in to comment.