forked from henriquelalves/Godytics
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
29 lines (28 loc) · 997 Bytes
/
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
def can_build(plat):
return plat == "iphone" or plat == "android"
def configure(env):
if env["platform"] == "iphone":
env.Append(LIBPATH=['../../modules/godytics/ios/lib','/usr/lib/'])
env.Append(LINKFLAGS=[
'-ObjC',
'-framework','Foundation',
'-framework','AdSupport',
'-framework','AVFoundation',
'-framework','EventKit',
'-framework','EventKitUI',
'-framework','StoreKit',
'-framework','SystemConfiguration',
'-framework','AssetsLibrary',
'-framework','CoreData',
'-framework','CoreLocation',
'-framework','CoreText',
'-l','GoogleAnalyticsServices',
'-l','sqlite3',
'-l','z'
])
if env["platform"] == "android":
env.android_add_dependency("compile 'com.android.support:appcompat-v7:27.+'")
env.android_add_dependency("compile 'com.google.android.gms:play-services-analytics:16.0.4'")
env.android_add_java_dir("android")
env.android_add_to_manifest("android/AndroidManifestChunk.xml")
env.disable_module()