Initial commit

This commit is contained in:
Greg 2019-09-17 10:27:17 -04:00
commit 7edd18c8dc
3 changed files with 1363 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.ast

1332
android27/main.go Normal file

File diff suppressed because it is too large Load Diff

30
nswrap.yaml Normal file
View File

@ -0,0 +1,30 @@
package: android27
libraries: [android, log, nativewindow, m]
inputfiles:
- $ANDROID_HOME/ndk-bundle/sysroot/usr/include/android/native_window.h
- $ANDROID_HOME//ndk-bundle/sysroot/usr/include/android/log.h
- $ANDROID_HOME//ndk-bundle/sysroot/usr/include/android/sensor.h
- $ANDROID_HOME//ndk-bundle/sysroot/usr/include/jni.h
- $ANDROID_HOME//ndk-bundle/sysroot/usr/include/sys/stat.h
sysimports:
- android/native_window.h
- android/log.h
- android/sensor.h
- jni.h
- stdlib.h
- sys/stat.h
functions:
- .*
functionignore:
- JNI_CreateJavaVM
- JNI_GetCreatedJavaVMs
- JNI_GetDefaultJavaVMInitArgs
- JNI_OnLoad
- JNI_OnUnload
- AHardwareBuffer_lockPlanes
enums:
- .*
typesubs:
Stat: Stat_t
Stat64: Stat64_t
clang: $ANDROID_HOME/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/aarch64-linux-android27-clang