• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

device/generic/common


Commit MetaInfo

Revisiónec90c21231a1b62b27f08998d39d86f37ee4e68b (tree)
Tiempo2017-06-14 15:23:57
AutorIsaac Chen <ycchen@goog...>
Commiterandroid-build-merger

Log Message

New target to add vndk-sp libs to system image
am: c680679f56

Change-Id: Ie7704ec14138e52e4c247c0153854f9aceb7d66f

Cambiar Resumen

Diferencia incremental

--- /dev/null
+++ b/vndk/Android.mk
@@ -0,0 +1,47 @@
1+ifneq ($(filter generic_%,$(TARGET_DEVICE)),)
2+
3+LOCAL_PATH := $(call my-dir)
4+
5+include $(LOCAL_PATH)/vndk-sp-libs.mk
6+
7+define define-vndk-sp-lib
8+include $$(CLEAR_VARS)
9+LOCAL_MODULE := $1.vndk-sp-gen
10+LOCAL_MODULE_CLASS := SHARED_LIBRARIES
11+LOCAL_PREBUILT_MODULE_FILE := $$(call intermediates-dir-for,SHARED_LIBRARIES,$1,,,,)/$1.so
12+LOCAL_STRIP_MODULE := false
13+LOCAL_MULTILIB := first
14+LOCAL_MODULE_TAGS := optional
15+LOCAL_INSTALLED_MODULE_STEM := $1.so
16+LOCAL_MODULE_SUFFIX := .so
17+LOCAL_MODULE_RELATIVE_PATH := vndk-sp
18+include $$(BUILD_PREBUILT)
19+
20+ifneq ($$(TARGET_2ND_ARCH),)
21+ifneq ($$(TARGET_TRANSLATE_2ND_ARCH),true)
22+include $$(CLEAR_VARS)
23+LOCAL_MODULE := $1.vndk-sp-gen
24+LOCAL_MODULE_CLASS := SHARED_LIBRARIES
25+LOCAL_PREBUILT_MODULE_FILE := $$(call intermediates-dir-for,SHARED_LIBRARIES,$1,,,$$(TARGET_2ND_ARCH_VAR_PREFIX),)/$1.so
26+LOCAL_STRIP_MODULE := false
27+LOCAL_MULTILIB := 32
28+LOCAL_MODULE_TAGS := optional
29+LOCAL_INSTALLED_MODULE_STEM := $1.so
30+LOCAL_MODULE_SUFFIX := .so
31+LOCAL_MODULE_RELATIVE_PATH := vndk-sp
32+include $$(BUILD_PREBUILT)
33+endif # TARGET_TRANSLATE_2ND_ARCH is not true
34+endif # TARGET_2ND_ARCH is not empty
35+endef
36+
37+$(foreach lib,$(VNDK_SP_LIBRARIES),\
38+ $(eval $(call define-vndk-sp-lib,$(lib))))
39+
40+include $(CLEAR_VARS)
41+LOCAL_MODULE := vndk-sp
42+LOCAL_MODULE_OWNER := google
43+LOCAL_MODULE_TAGS := optional
44+LOCAL_REQUIRED_MODULES := $(addsuffix .vndk-sp-gen,$(VNDK_SP_LIBRARIES))
45+include $(BUILD_PHONY_PACKAGE)
46+
47+endif # TARGET_DEVICE is generic_*
--- /dev/null
+++ b/vndk/vndk-sp-libs.mk
@@ -0,0 +1,25 @@
1+VNDK_SP_LIBRARIES := \
2+ android.hardware.graphics.allocator@2.0 \
3+ android.hardware.graphics.mapper@2.0 \
4+ android.hardware.graphics.common@1.0 \
5+ android.hardware.renderscript@1.0 \
6+ libRSCpuRef \
7+ libRSDriver \
8+ libRS_internal \
9+ libbacktrace \
10+ libbase \
11+ libbcinfo \
12+ libblas \
13+ libc++ \
14+ libcompiler_rt \
15+ libcutils \
16+ libft2 \
17+ libhardware \
18+ libhidlbase \
19+ libhidltransport \
20+ libhwbinder \
21+ libion \
22+ liblzma \
23+ libpng \
24+ libunwind \
25+ libutils \