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 LOCAL_PATH := $(my-dir)
16 LOCAL_SRC_FILES := src/libnb.cpp
17 LOCAL_CFLAGS := -Werror -Wall
18 LOCAL_CPPFLAGS := -std=c++11
19 LOCAL_SHARED_LIBRARIES := libcutils libdl liblog
20 LOCAL_C_INCLUDES := system/core/libnativebridge/include
21 LOCAL_MULTILIB := both
22 LOCAL_POST_INSTALL_CMD := $(hide) \
23 rm -rf $(TARGET_OUT)/*/{arm*,*houdini*} {$(TARGET_OUT),$(PRODUCT_OUT)}/vendor/{*/arm*,*/*houdini*}; \
24 mkdir -p $(TARGET_OUT)/{lib/arm,$(if $(filter true,$(TARGET_IS_64_BIT)),lib64/arm64)}; \
25 touch $(TARGET_OUT)/lib/libhoudini.so $(if $(filter true,$(TARGET_IS_64_BIT)),$(TARGET_OUT)/lib64/libhoudini.so)
27 include $(BUILD_SHARED_LIBRARY)