1 LOCAL_PATH
:= $(call my-dir
)
4 waffle_top
:= $(LOCAL_PATH
)
7 # !!! The version must be updated in tandem with the CMakeLists !!!
9 waffle_major_version
:= 1
10 waffle_minor_version
:= 5
11 waffle_patch_version
:= 90
12 waffle_api_version
:= 0x0106
14 waffle_android_major_version
:= $(word 1, $(subst .
, , $(PLATFORM_VERSION
)))
15 waffle_android_minor_version
:= $(word 2, $(subst .
, , $(PLATFORM_VERSION
)))
17 $(waffle_top
)/include/waffle
/waffle_version.h
: \
18 $(waffle_top
)/Android.mk \
19 $(waffle_top
)/include/waffle
/waffle_version.h.in
20 @echo
"target Gen: libwaffle <= $(waffle_top)/include/waffle/waffle_version.h"
21 @sed
-e
's/@waffle_major_version@/$(waffle_major_version)/' \
22 -e
's/@waffle_minor_version@/$(waffle_minor_version)/' \
23 -e
's/@waffle_patch_version@/$(waffle_patch_version)/' \
24 $(waffle_top
)/include/waffle
/waffle_version.h.in \
25 > $(waffle_top
)/include/waffle
/waffle_version.h
27 LOCAL_MODULE_TAGS
:= eng
28 LOCAL_MODULE
:= libwaffle-
$(waffle_major_version
)
32 -DWAFFLE_API_VERSION
=$(waffle_api_version
) \
33 -DWAFFLE_API_EXPERIMENTAL \
34 -DWAFFLE_HAS_ANDROID \
35 -DWAFFLE_ANDROID_MAJOR_VERSION
=$(waffle_android_major_version
) \
36 -DWAFFLE_ANDROID_MINOR_VERSION
=$(waffle_android_minor_version
) \
39 LOCAL_CFLAGS
+= -std
=c99
-fvisibility
=hidden
42 $(LOCAL_PATH
)/include \
43 $(LOCAL_PATH
)/include/waffle \
45 $(LOCAL_PATH
)/src
/waffle
/api
/ \
46 $(LOCAL_PATH
)/src
/waffle
/core
/ \
47 $(LOCAL_PATH
)/src
/waffle
/egl
/ \
48 $(LOCAL_PATH
)/src
/waffle
/linux
/ \
49 $(LOCAL_PATH
)/src
/waffle
/droid
/ \
50 $(LOCAL_PATH
)/third_party
/khronos
/ \
51 $(LOCAL_PATH
)/third_party
/threads
/
54 src
/waffle
/core
/wcore_tinfo.c \
55 src
/waffle
/core
/wcore_config_attrs.c \
56 src
/waffle
/core
/wcore_error.c \
57 src
/waffle
/core
/wcore_util.c \
58 src
/waffle
/core
/wcore_display.c \
59 src
/waffle
/core
/wcore_attrib_list.c \
60 src
/waffle
/api
/api_priv.c \
61 src
/waffle
/api
/waffle_attrib_list.c \
62 src
/waffle
/api
/waffle_config.c \
63 src
/waffle
/api
/waffle_context.c \
64 src
/waffle
/api
/waffle_display.c \
65 src
/waffle
/api
/waffle_enum.c \
66 src
/waffle
/api
/waffle_error.c \
67 src
/waffle
/api
/waffle_gl_misc.c \
68 src
/waffle
/api
/waffle_init.c \
69 src
/waffle
/api
/waffle_window.c \
70 src
/waffle
/api
/waffle_dl.c \
71 src
/waffle
/linux
/linux_dl.c \
72 src
/waffle
/linux
/linux_platform.c \
73 src
/waffle
/egl
/wegl_config.c \
74 src
/waffle
/egl
/wegl_context.c \
75 src
/waffle
/egl
/wegl_display.c \
76 src
/waffle
/egl
/wegl_platform.c \
77 src
/waffle
/egl
/wegl_util.c \
78 src
/waffle
/egl
/wegl_window.c \
79 src
/waffle
/android
/droid_platform.c \
80 src
/waffle
/android
/droid_display.c \
81 src
/waffle
/android
/droid_window.c \
82 src
/waffle
/android
/droid_surfaceflingerlink.
cpp \
83 third_party
/threads
/threads_posix.c
85 LOCAL_SHARED_LIBRARIES
:= \
90 LOCAL_GENERATED_SOURCES
:= \
91 $(LOCAL_PATH
)/include/waffle
/waffle_version.h
93 LOCAL_COPY_HEADERS
:= \
94 include/waffle
/waffle.h \
95 include/waffle
/waffle_gbm.h \
96 include/waffle
/waffle_glx.h \
97 include/waffle
/waffle_version.h \
98 include/waffle
/waffle_wayland.h \
99 include/waffle
/waffle_x11_egl.h
101 LOCAL_COPY_HEADERS_TO
:= waffle-
$(waffle_major_version
)
103 include $(BUILD_SHARED_LIBRARY
)
109 mkfiles
:= $(patsubst %,$(waffle_top
)/%/Android.mk
,$(SUBDIRS
))