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