OSDN Git Service

Merge "[GLESv3][VAO] enable/pointer for vertex attribs when possible"
[android-x86/device-generic-goldfish-opengl.git] / common.mk
index 1e6ccf6..67e9284 100644 (file)
--- a/common.mk
+++ b/common.mk
@@ -41,6 +41,13 @@ emugl-begin-module = \
 ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23 && echo PreMarshmallow),PreMarshmallow)
     emugl-begin-module += $(eval include external/stlport/libstlport.mk)
 endif
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 21 && echo PreLollipop),PreLollipop)
+    emugl-begin-module += $(eval LOCAL_PRELINK_MODULE := false)
+endif
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 19 && echo PreKitkat),PreKitkat)
+    emugl-begin-module += $(eval LOCAL_MODULE_TAGS := debug)
+    emugl-begin-module += $(eval LOCAL_SHARED_LIBRARIES += libstlport)
+endif
 
 # Used to end a module definition, see function definitions above
 emugl-end-module = \
@@ -236,6 +243,16 @@ endef
 # library path (i.e. not under /system/lib
 # $1: library sub-path,relative to /system/lib
 # For example: $(call emugl-set-shared-library-subpath,egl)
-emugl-set-shared-library-subpath = \
-    $(eval LOCAL_MODULE_RELATIVE_PATH := $1)\
-    $(eval _emugl.$(LOCAL_MODULE).moved := true)
+
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 21 && echo PreLollipop),PreLollipop)
+    emugl-set-shared-library-subpath = \
+        $(eval LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/$1)\
+        $(eval LOCAL_UNSTRIPPED_PATH := $(TARGET_OUT_SHARED_LIBRARIES_UNSTRIPPED)/$1)\
+        $(eval _emugl.$(LOCAL_MODULE).moved := true)\
+        $(call emugl-export-outer,ADDITIONAL_DEPENDENCIES,$(LOCAL_MODULE_PATH)/$(LOCAL_MODULE)$(TARGET_SHLIB_SUFFIX))
+else
+    emugl-set-shared-library-subpath = \
+        $(eval LOCAL_MODULE_RELATIVE_PATH := $1)\
+        $(eval _emugl.$(LOCAL_MODULE).moved := true)
+endif
+