2013-05-12 01:39:25 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE := retro-test-gl
|
|
|
|
|
|
|
|
ifeq ($(TARGET_ARCH),arm)
|
|
|
|
LOCAL_CFLAGS += -DANDROID_ARM
|
|
|
|
LOCAL_ARM_MODE := arm
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(TARGET_ARCH),x86)
|
|
|
|
LOCAL_CFLAGS += -DANDROID_X86
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(TARGET_ARCH),mips)
|
|
|
|
LOCAL_CFLAGS += -DANDROID_MIPS
|
|
|
|
endif
|
|
|
|
|
2014-04-14 11:17:05 +00:00
|
|
|
ifeq ($(GLES), 3)
|
|
|
|
LOCAL_CFLAGS += -DHAVE_OPENGLES3 -DGLES3
|
|
|
|
GLES_LIB := -lGLESv3
|
|
|
|
else
|
|
|
|
GLES_LIB := -lGLESv2
|
|
|
|
endif
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES += $(addprefix ../,$(wildcard *.c) ../gfx/glsym/rglgen.c ../gfx/glsym/glsym_es2.c)
|
2013-07-05 17:29:48 +00:00
|
|
|
LOCAL_CFLAGS += -O2 -Wall -std=gnu99 -ffast-math -DGLES -DHAVE_OPENGLES2
|
2014-04-14 11:17:05 +00:00
|
|
|
LOCAL_LDLIBS += $(GLES_LIB)
|
2013-05-12 01:39:25 +00:00
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|