blob: ff158147efd8e0fb3e39e306de3b57d2b9a0642f [file] [log] [blame]
Jack Palevich91958352009-09-23 14:48:07 -07001#########################################################################
2# OpenGL ES JNI sample
3# This makefile builds both an activity and a shared library.
4#########################################################################
5ifneq ($(TARGET_SIMULATOR),true) # not 64 bit clean
6
7TOP_LOCAL_PATH:= $(call my-dir)
8
9# Build activity
10
11LOCAL_PATH:= $(call my-dir)
12include $(CLEAR_VARS)
13
14LOCAL_MODULE_TAGS := user
15
16LOCAL_SRC_FILES := $(call all-subdir-java-files)
17
18LOCAL_PACKAGE_NAME := GL2JNI
19
20LOCAL_JNI_SHARED_LIBRARIES := libgl2jni
21
22include $(BUILD_PACKAGE)
23
24#########################################################################
25# Build JNI Shared Library
26#########################################################################
27
28LOCAL_PATH:= $(LOCAL_PATH)/jni
29
30include $(CLEAR_VARS)
31
32# Optional tag would mean it doesn't get installed by default
33LOCAL_MODULE_TAGS := optional
34
35LOCAL_CFLAGS := -Werror
36
37LOCAL_SRC_FILES:= \
38 gl_code.cpp
39
40LOCAL_SHARED_LIBRARIES := \
41 libutils \
42 libEGL \
43 libGLESv2
44
45LOCAL_MODULE := libgl2jni
46
47LOCAL_ARM_MODE := arm
48
49LOCAL_PRELINK_MODULE := false
50
51include $(BUILD_SHARED_LIBRARY)
52
53endif # TARGET_SIMULATOR