OSDN Git Service

nativebridge: support different installations
[android-x86/device-generic-common.git] / nativebridge / nativebridge.mk
1 #
2 # Copyright (C) 2015 The Android-x86 Open Source Project
3 #
4 # Licensed under the GNU General Public License Version 2 or later.
5 # You may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #      http://www.gnu.org/licenses/gpl.html
9 #
10
11 # Enable native bridge
12 WITH_NATIVE_BRIDGE := true
13
14 # Native Bridge ABI List
15 NATIVE_BRIDGE_ABI_LIST_32_BIT := armeabi-v7a armeabi
16 NATIVE_BRIDGE_ABI_LIST_64_BIT := arm64-v8a
17
18 LOCAL_SRC_FILES := bin/enable_nativebridge
19
20 PRODUCT_COPY_FILES := $(foreach f,$(LOCAL_SRC_FILES),$(LOCAL_PATH)/$(f):system/$(f))
21
22 PRODUCT_PROPERTY_OVERRIDES := \
23     ro.dalvik.vm.isa.arm=x86 \
24     ro.enable.native.bridge.exec=1 \
25
26 ifeq ($(TARGET_SUPPORTS_64_BIT_APPS),true)
27 PRODUCT_PROPERTY_OVERRIDES += \
28     ro.dalvik.vm.isa.arm64=x86_64 \
29     ro.enable.native.bridge.exec64=1
30 endif
31
32 PRODUCT_DEFAULT_PROPERTY_OVERRIDES := ro.dalvik.vm.native.bridge=libnb.so
33
34 PRODUCT_PACKAGES := libnb
35
36 $(call inherit-product-if-exists,vendor/intel/houdini/houdini.mk)