Skip to content

Commit 18f724e

Browse files
author
wonder
committedDec 19, 2007

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed
 

‎python/configure.py.in

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ qt_libs = ["QtCore","QtGui","QtNetwork","QtSvg","QtXml"]
1616
if sys.platform == 'darwin':
1717
qt_libs.append("Qt3Support")
1818
qt_libs.append("QtSql")
19+
# possibility of universal build of bindings
20+
osx_archs = '@CMAKE_OSX_ARCHITECTURES@'
21+
if osx_archs == 'ppc;i386' or osx_archs == 'i386;ppc':
22+
osx_universal = '@CMAKE_OSX_SYSROOT@'
23+
else:
24+
osx_universal = ''
25+
else:
26+
osx_universal = ''
1927

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

103112
makefile_gui = sipconfig.ModuleMakefile(
104113
configuration=config,
105114
qt=qt_libs,
106115
build_file=build_file_gui,
107116
installs=installs_gui,
108117
install_dir=mod_dir,
109-
dir="gui")
118+
dir="gui",
119+
universal=osx_universal)
110120

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

0 commit comments

Comments
 (0)
Please sign in to comment.