2 # Copyright (C) 2015 The Android-x86 Open Source Project
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
8 # http://www.gnu.org/licenses/gpl.html
11 # Enable native bridge
12 WITH_NATIVE_BRIDGE := true
14 # Native Bridge ABI List
15 NATIVE_BRIDGE_ABI_LIST_32_BIT := armeabi-v7a armeabi
16 NATIVE_BRIDGE_ABI_LIST_64_BIT := arm64-v8a
18 LOCAL_SRC_FILES := bin/enable_nativebridge
20 ifneq ($(filter %x86_64/,$(PRODUCT_DIR)),)
22 LOCAL_SRC_FILES += $(subst $(LOCAL_PATH)/,,$(shell find $(LOCAL_PATH)/lib64/arm64 -type f))
26 LOCAL_SRC_FILES += $(subst $(LOCAL_PATH)/,,$(shell find $(LOCAL_PATH)/lib/arm -type f))
28 PRODUCT_COPY_FILES := $(foreach f,$(LOCAL_SRC_FILES),$(LOCAL_PATH)/$(f):system/$(f))
30 PRODUCT_PROPERTY_OVERRIDES := \
31 ro.dalvik.vm.isa.arm=x86 \
32 ro.enable.native.bridge.exec=1 \
34 PRODUCT_DEFAULT_PROPERTY_OVERRIDES := ro.dalvik.vm.native.bridge=libnb.so
36 PRODUCT_PACKAGES := libnb
38 $(call inherit-product-if-exists,vendor/intel/houdini/houdini.mk)