blob: e73c249fef9bb35eb7698699dddcc713a82d24c4 [file] [log] [blame]
Jack Palevich69e21f52009-10-13 14:56:00 -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 := GLDual
19
20LOCAL_JNI_SHARED_LIBRARIES := libgldualjni
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 := libgldualjni
46
47LOCAL_PRELINK_MODULE := false
48
49include $(BUILD_SHARED_LIBRARY)
50
51endif # TARGET_SIMULATOR