You've already forked android-go
mirror of
https://github.com/xlab/android-go.git
synced 2025-12-23 22:11:00 +02:00
124 lines
3.7 KiB
YAML
124 lines
3.7 KiB
YAML
---
|
|
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}
|