-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_macosx.py
More file actions
31 lines (21 loc) · 837 Bytes
/
config_macosx.py
File metadata and controls
31 lines (21 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
print "Importing macosx Config"
def _config(config, settings):
commonCFLAGS = ['-arch', 'i386', '-DMACOSX', '-fPIC', '-g']
settings.CXXFLAGS += commonCFLAGS
settings.CFLAGS += commonCFLAGS
settings.LINKFLAGS += ['-arch', 'i386', '-g']
settings.DLLFLAGS += ['-shared']
settings.srcexts += ['mm']
def make_appfile_macosx(config, settings, name):
f = settings.APPPATH+"/"
#f += name+".app/Contents/MacOS/"
f += name+".bin"
return f
settings.make_appfile = make_appfile_macosx
# Set the name of the build config in XCode
if config.buildconfig == "debug":
settings._xcodeconfig="Debug"
elif config.buildconfig == "release":
settings._xcodeconfig="Release"
else:
throw ("Don't understand build config '%s'" % config.buildconfig)