1#########################################################################
2# OpenGL ES JNI sample
3# This makefile builds both an activity and a shared library.
4#########################################################################
5TOP_LOCAL_PATH:= $(call my-dir)
6
7# Build activity
8
9LOCAL_PATH:= $(call my-dir)
10include $(CLEAR_VARS)
11
12LOCAL_MODULE_TAGS := optional
13
14LOCAL_SRC_FILES := $(call all-subdir-java-files)
15
16LOCAL_PACKAGE_NAME := GLJNI
17
18LOCAL_JNI_SHARED_LIBRARIES := libgljni
19
20include $(BUILD_PACKAGE)
21
22#########################################################################
23# Build JNI Shared Library
24#########################################################################
25
26LOCAL_PATH:= $(LOCAL_PATH)/jni
27
28include $(CLEAR_VARS)
29
30# Optional tag would mean it doesn't get installed by default
31LOCAL_MODULE_TAGS := optional
32
33LOCAL_CFLAGS := -Werror -Wno-error=unused-parameter
34
35LOCAL_SRC_FILES:= \
36  gl_code.cpp
37
38LOCAL_SHARED_LIBRARIES := \
39	libutils \
40	liblog \
41	libEGL \
42	libGLESv1_CM
43
44LOCAL_MODULE := libgljni
45
46LOCAL_ARM_MODE := arm
47
48
49
50include $(BUILD_SHARED_LIBRARY)
51