-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
42 lines (34 loc) · 1.53 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
def can_build(env, platform):
return platform == "iphone" or platform == "android" #or platform == "windows" or platform == "osx" # or platform == "x11"
def configure(env):
if (env["platform"] == "android"):
env.android_add_maven_repository("url 'https://maven.gameanalytics.com/release'")
env.android_add_dependency("implementation 'com.gameanalytics.sdk:gameanalytics-android:5.2.5'")
env.android_add_java_dir("android/src/")
env.disable_module()
if (env["platform"] == "iphone"):
env.Append(FRAMEWORKPATH=[
'#modules/gameanalytics/ios/lib'
])
env.Append(CPPPATH=['#core'])
env.Append(LINKFLAGS=[
'-ObjC',
'-framework', 'AdSupport',
'-framework', 'SystemConfiguration',
'-framework', 'GameAnalytics',
'-l', 'sqlite3',
'-l', 'z'
])
if env["platform"] == "windows":
if env["bits"] == "32":
env.Append(LIBPATH=["#modules/gameanalytics/cpp/lib/win32"])
env.Append(LINKFLAGS=["GameAnalytics.lib"])
else:
env.Append(LIBPATH=["#modules/gameanalytics/cpp/lib/win64"])
env.Append(LINKFLAGS=["GameAnalytics.lib"])
elif env["platform"] == "osx":
env.Append(LIBPATH=["#modules/gameanalytics/cpp/lib/osx"])
env.Append(LIBS=["libGameAnalytics.dylib"])
elif env["platform"] == "x11":
env.Append(LIBPATH=["#modules/gameanalytics/cpp/lib/linux"])
env.Append(LINKFLAGS=["libGameAnalytics.so"])