1LOCAL_PATH:= $(call my-dir) 2 3native_loader_common_src_files := \ 4 native_loader.cpp 5 6native_loader_common_cflags := -Werror -Wall 7 8# Shared library for target 9# ======================================================== 10include $(CLEAR_VARS) 11 12LOCAL_MODULE:= libnativeloader 13 14LOCAL_SRC_FILES:= $(native_loader_common_src_files) 15LOCAL_SHARED_LIBRARIES := libnativehelper liblog libcutils 16LOCAL_STATIC_LIBRARIES := libbase 17LOCAL_CLANG := true 18LOCAL_CFLAGS := $(native_loader_common_cflags) 19LOCAL_CPPFLAGS := -std=gnu++14 -fvisibility=hidden 20LOCAL_LDFLAGS := -ldl 21LOCAL_MULTILIB := both 22LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 23LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 24include $(BUILD_SHARED_LIBRARY) 25 26# Shared library for host 27# ======================================================== 28include $(CLEAR_VARS) 29 30LOCAL_MODULE:= libnativeloader 31 32LOCAL_SRC_FILES:= $(native_loader_common_src_files) 33LOCAL_SHARED_LIBRARIES := libnativehelper liblog libcutils 34LOCAL_STATIC_LIBRARIES := libbase 35LOCAL_CLANG := true 36LOCAL_CFLAGS := $(native_loader_common_cflags) 37LOCAL_CPPFLAGS := -std=gnu++14 -fvisibility=hidden 38LOCAL_LDFLAGS := -ldl 39LOCAL_MULTILIB := both 40LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 41LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 42include $(BUILD_HOST_SHARED_LIBRARY) 43 44# Static library for host 45# ======================================================== 46include $(CLEAR_VARS) 47 48LOCAL_MODULE:= libnativeloader 49 50LOCAL_SRC_FILES:= $(native_loader_common_src_files) 51LOCAL_STATIC_LIBRARIES := libnativehelper libcutils liblog libbase 52LOCAL_CLANG := true 53LOCAL_CFLAGS := $(native_loader_common_cflags) 54LOCAL_CPPFLAGS := -std=gnu++14 -fvisibility=hidden 55LOCAL_LDFLAGS := -ldl 56LOCAL_MULTILIB := both 57LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 58LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 59include $(BUILD_HOST_STATIC_LIBRARY) 60