diff options
author | Chih-Wei Huang <[email protected]> | 2015-04-04 05:01:22 +0800 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-04-22 15:53:35 +0100 |
commit | b0e33c2256a68d87c4f67b6e25a86e594649ab93 (patch) | |
tree | 7274eafbeb50b25ca9c7a4780e45519b730f0158 /src/egl/main | |
parent | 671a55084649f9e33018b1e5e1af4e28c639bf3b (diff) |
android: fix the building rules for Android 5.0
Android 5.0 allows modules to generate source into $OUT/gen, which will
then be copied into $OUT/obj and $OUT/obj_$(TARGET_2ND_ARCH) as necessary.
Modules will need to change calls to local-intermediates-dir into
local-generated-sources-dir.
The patch changes local-intermediates-dir into local-generated-sources-dir.
If the Android version is less than 5.0, fallback to local-intermediates-dir.
The patch also fixes the 64-bit building issue of Android 5.0.
v2 [Emil Velikov]
- Keep the LOCAL_UNSTRIPPED_PATH variable.
Signed-off-by: Chih-Wei Huang <[email protected]>
Diffstat (limited to 'src/egl/main')
-rw-r--r-- | src/egl/main/Android.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/egl/main/Android.mk b/src/egl/main/Android.mk index 4d0cc575f02..12b66d053fc 100644 --- a/src/egl/main/Android.mk +++ b/src/egl/main/Android.mk @@ -154,7 +154,11 @@ LOCAL_STATIC_LIBRARIES := \ libmesa_loader LOCAL_MODULE := libGLES_mesa +ifeq ($(MESA_LOLLIPOP_BUILD),true) +LOCAL_MODULE_RELATIVE_PATH := egl +else LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/egl +endif include $(MESA_COMMON_MK) include $(BUILD_SHARED_LIBRARY) |