-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathegl.yml
66 lines (62 loc) · 2.07 KB
/
egl.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
---
GENERATOR:
PackageName: egl
PackageDescription: "Package egl provides Go bindings for EGL API."
PackageLicense: "THE AUTOGENERATED LICENSE. ALL THE RIGHTS ARE RESERVED BY ROBOTS."
FlagGroups:
- {name: LDFLAGS, flags: [-lEGL]}
SysIncludes:
- EGL/egl.h
PARSER:
Arch: arm
SourcesPaths:
- EGL/egl.h
IncludePaths:
# NOTE: Replace these paths if you want to re-generate.
- /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
Defines:
__ANDROID__: 1
EGLAPIENTRYP: {}
TRANSLATOR:
ConstRules:
defines: expand
enum: expand
PtrTips:
function:
- {target: ^eglGetConfigs$, tips: [0,arr,size,ref]}
- {target: ^eglChooseConfig$, tips: [0,arr,arr,size,ref]}
- {target: ^eglCreateWindowSurface$, tips: [0,0,0,arr]}
- {target: ^eglCreatePbufferSurface$, tips: [0,0,arr]}
- {target: ^eglCreatePixmapSurface$, tips: [0,0,0,arr]}
- {target: ^eglCreatePbufferFromClientBuffer$, tips: [0,0,0,0,arr]}
- {target: ^eglCreateContext$, tips: [0,0,0,arr]}
- {target: ^egl, tips: [ref,ref,ref,ref]} # covers the rest
TypeTips:
type:
- {target: EGLint$, self: plain}
function:
- {target: ^eglGetError$, self: plain}
Rules:
global:
- {action: accept, from: "^EGL"}
- {action: replace, from: "^EGL"}
function:
- {action: accept, from: ^egl}
- {action: replace, from: ^egl}
- {action: ignore, from: ^eglGetProcAddress}
type:
- {action: replace, from: "_t$"}
const:
- {action: ignore, from: EGL_NO_DISPLAY}
- {action: ignore, from: EGL_NO_SURFACE}
- {action: ignore, from: EGL_NO_CONTEXT}
- {action: ignore, from: EGL_DEFAULT_DISPLAY}
- {transform: lower}
private:
- {transform: unexport}
post-global:
- {action: doc, from: "^egl",
to: "https://www.khronos.org/registry/egl/sdk/docs/man/html/$name.xhtml"}
- {transform: export}
- {load: snakecase}