-
Notifications
You must be signed in to change notification settings - Fork 80
/
android.yml
123 lines (118 loc) · 3.74 KB
/
android.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
---
GENERATOR:
PackageName: android
PackageDescription: "Package android provides Go bindings for the Android NDK API."
PackageLicense: "THE AUTOGENERATED LICENSE. ALL THE RIGHTS ARE RESERVED BY ROBOTS."
FlagGroups:
- {name: LDFLAGS, flags: [-landroid -llog]}
Includes:
- jni_call.h
SysIncludes:
- android/api-level.h
- android/asset_manager.h
- android/asset_manager_jni.h
- android/configuration.h
- android/input.h
- android/keycodes.h
- android/log.h
- android/looper.h
- android/native_activity.h
- android/native_window.h
- android/native_window_jni.h
- android/obb.h
- android/rect.h
- android/sensor.h
- android/storage_manager.h
- android/tts.h
- android/window.h
- jni.h
PARSER:
Arch: arm
Defines:
__STDC_HOSTED__: null
IncludePaths:
- android
# NOTE: Replace these paths if you want to re-generate.
# NOTE: Can be processed only with -ccdefs cgogen option enabled.
- /Users/xlab/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/include
- /Users/xlab/Library/Android/sdk/ndk-bundle/platforms/android-23/arch-arm/usr/include
- /Users/xlab/Library/Android/sdk/ndk-bundle/platforms/android-23/arch-arm/usr/include/linux
- /Users/xlab/Library/Android/sdk/ndk-bundle/platforms/android-23/arch-arm/usr/include/android
SourcesPaths:
- api-level.h
- asset_manager.h
- asset_manager_jni.h
- configuration.h
- input.h
- keycodes.h
- log.h
- looper.h
- native_activity.h
- native_window.h
- native_window_jni.h
- obb.h
- rect.h
- sensor.h
- storage_manager.h
- tts.h
- window.h
- jni.h
- android/jni_call.h
TRANSLATOR:
ConstRules:
defines: expand
enum: expand
MemTips:
- {target: JavaVMAttachArgs$, self: bind}
- {target: ^J, self: raw}
- {target: AAssetManager$, self: raw}
- {target: ANativeActivityCallbacks$, self: raw}
TypeTips:
type:
- {target: ^jboolean$, self: plain}
- {target: ^jbyte$, self: plain}
- {target: ^jchar$, self: plain}
- {target: ^jshort$, self: plain}
- {target: ^jint$, self: plain}
- {target: ^jlong$, self: plain}
- {target: ^jfloat$, self: plain}
- {target: ^jdouble$, self: plain}
- {target: ^jsize$, self: plain}
PtrTips:
function:
- {target: ^__android}
- {target: _DefineClass$, tips: [ref,arr,0,arr,size]}
- {target: ^JNIEnv_CallNonvirtual, tips: [ref,0,0,0,arr]}
- {target: ^JNIEnv_Call, tips: [ref,0,0,arr]}
- {target: ^JNIEnv_NewObject, tips: [ref,ref,0,arr]}
- {target: ".", tips: [sref,sref,sref,sref,sref]} # ref by default for all
Rules:
global:
- {action: accept, from: ^A}
- {action: ignore, from: ^ABS}
- {action: accept, from: ^android_Log}
- {action: replace, from: ^android_Log, to: Log}
- {action: replace, from: "(?i)^Android"}
- {action: replace, from: ^A}
function:
- {action: accept, from: ^__android_log_write}
- {action: replace, from: ^__android}
- {action: accept, from: ^JNI}
- {action: ignore, from: JNI_OnLoad}
- {action: ignore, from: JNI_OnUnload}
- {action: ignore, from: ANativeActivity_onCreate}
- {action: ignore, from: ASensorManager_getSensorList}
type:
- {action: accept, from: ^J}
- {action: accept, from: ^j}
- {action: replace, from: "_t$"}
const:
- {action: accept, from: ^JNI}
- {action: ignore, from: TTS_H$}
- {transform: lower}
- {transform: upper, from: "(?i)^JNI"}
private:
- {transform: unexport}
post-global:
- {transform: export}
- {load: snakecase}