-
Notifications
You must be signed in to change notification settings - Fork 80
/
Makefile
69 lines (50 loc) · 1.45 KB
/
Makefile
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
CPP = $(shell ndk-which cpp)
all: gen-android gen-egl gen-gles gen-gles2 gen-gles3 gen-gles31
gen-android:
CPP="$(CPP)" c-for-go -ccdefs=true android.yml
gen-egl:
c-for-go egl.yml
gen-gles:
c-for-go gles.yml
gen-gles2:
c-for-go gles2.yml
gen-gles3:
c-for-go gles3.yml
gen-gles31:
c-for-go gles31.yml
clean: clean-egl clean-gles clean-gles2 clean-gles3 clean-gles31
rm -f android/cgo_helpers.go android/cgo_helpers.h android/cgo_helpers.c
rm -f android/doc.go android/types.go android/const.go
rm -f android/android.go
clean-egl:
rm -f egl/cgo_helpers.go egl/cgo_helpers.h egl/cgo_helpers.c
rm -f egl/doc.go egl/types.go egl/const.go
rm -f egl/egl.go
clean-gles:
rm -f gles/cgo_helpers.go gles/cgo_helpers.h gles/cgo_helpers.c
rm -f gles/doc.go gles/types.go gles/const.go
rm -f gles/gles.go
clean-gles2:
rm -f gles2/cgo_helpers.go gles2/cgo_helpers.h gles2/cgo_helpers.c
rm -f gles2/doc.go gles2/types.go gles2/const.go
rm -f gles2/gles2.go
clean-gles3:
rm -f gles3/cgo_helpers.go gles3/cgo_helpers.h gles3/cgo_helpers.c
rm -f gles3/doc.go gles3/types.go gles3/const.go
rm -f gles3/gles3.go
clean-gles31:
rm -f gles31/cgo_helpers.go gles31/cgo_helpers.h gles31/cgo_helpers.c
rm -f gles31/doc.go gles31/types.go gles31/const.go
rm -f gles31/gles31.go
test:
cd android && go build
test-egl:
cd egl && go build
test-gles:
cd gles && go build
test-gles2:
cd gles2 && go build
test-gles3:
cd gles3 && go build
test-gles31:
cd gles31 && go build