-
Notifications
You must be signed in to change notification settings - Fork 13
/
config.py
43 lines (37 loc) · 1.84 KB
/
config.py
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
31
32
33
34
35
36
37
38
39
40
41
42
43
def can_build(env, platform):
return platform == "x11" or platform == "windows" or platform == "osx" or platform == "android" or platform == "iphone"
def configure(env):
if env["platform"] == "windows":
env.Append(LIBS=["fmod_vc", "fmodstudio_vc"])
if env["bits"] == "32":
env.Append(LIBPATH=["#modules/fmod/api/core/lib/x86/",
"#modules/fmod/api/studio/lib/x86/"])
else:
env.Append(LIBPATH=["#modules/fmod/api/core/lib/x64/",
"#modules/fmod/api/studio/lib/x64/"])
elif env["platform"] == "x11":
env.Append(LIBS=["fmod", "fmodstudio"])
if env["bits"] == "32":
env.Append(
LIBPATH=["#modules/fmod/api/core/lib/x86/",
"#modules/fmod/api/studio/lib/x86/"])
else:
env.Append(
LIBPATH=["#modules/fmod/api/core/lib/x86_64/",
"#modules/fmod/api/studio/lib/x86_64/"])
elif env["platform"] == "osx":
env.Append(LIBS=["fmod", "fmodstudio"])
env.Append(
LIBPATH=["#modules/fmod/api/core/lib/", "#modules/fmod/api/studio/lib/"])
elif env["platform"] == "android":
if env["android_arch"] == "arm64v8":
env.Append(LIBPATH=["#modules/fmod/api/core/lib/arm64-v8a",
"#modules/fmod/api/studio/lib/arm64-v8a"])
else:
env.Append(LIBPATH=["#modules/fmod/api/core/lib/armeabi-v7a",
"#modules/fmod/api/studio/lib/armeabi-v7a"])
env.Append(LIBS=["fmod", "fmodstudio"])
elif env["platform"] == "iphone":
env.Append(LIBPATH=["#modules/fmod/api/core/lib/",
"#modules/fmod/api/studio/lib/"])
env.Append(LIBS=["libfmod_iphoneos.a", "libfmodstudio_iphoneos.a"])