2015-12-01 21:56:44 +00:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
2016-05-06 00:30:24 +00:00
|
|
|
native_loader_common_src_files := \
|
2015-12-01 21:56:44 +00:00
|
|
|
native_loader.cpp
|
|
|
|
|
2016-05-06 00:30:24 +00:00
|
|
|
native_loader_common_cflags := -Werror -Wall
|
|
|
|
|
2015-12-01 21:56:44 +00:00
|
|
|
# Shared library for target
|
|
|
|
# ========================================================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libnativeloader
|
|
|
|
|
2016-05-06 00:30:24 +00:00
|
|
|
LOCAL_SRC_FILES:= $(native_loader_common_src_files)
|
2016-05-25 20:19:49 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := libnativehelper liblog libcutils libdl
|
2015-12-01 21:56:44 +00:00
|
|
|
LOCAL_STATIC_LIBRARIES := libbase
|
|
|
|
LOCAL_CLANG := true
|
2016-05-06 00:30:24 +00:00
|
|
|
LOCAL_CFLAGS := $(native_loader_common_cflags)
|
2015-12-01 21:56:44 +00:00
|
|
|
LOCAL_CPPFLAGS := -std=gnu++14 -fvisibility=hidden
|
|
|
|
LOCAL_MULTILIB := both
|
2016-02-13 02:07:29 +00:00
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
2015-12-01 21:56:44 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
# Shared library for host
|
|
|
|
# ========================================================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libnativeloader
|
|
|
|
|
2016-05-06 00:30:24 +00:00
|
|
|
LOCAL_SRC_FILES:= $(native_loader_common_src_files)
|
2015-12-01 21:56:44 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := libnativehelper liblog libcutils
|
|
|
|
LOCAL_STATIC_LIBRARIES := libbase
|
|
|
|
LOCAL_CLANG := true
|
2016-05-06 00:30:24 +00:00
|
|
|
LOCAL_CFLAGS := $(native_loader_common_cflags)
|
2015-12-01 21:56:44 +00:00
|
|
|
LOCAL_CPPFLAGS := -std=gnu++14 -fvisibility=hidden
|
|
|
|
LOCAL_LDFLAGS := -ldl
|
|
|
|
LOCAL_MULTILIB := both
|
2016-02-13 02:07:29 +00:00
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
2015-12-01 21:56:44 +00:00
|
|
|
include $(BUILD_HOST_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
# Static library for host
|
|
|
|
# ========================================================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libnativeloader
|
|
|
|
|
2016-05-06 00:30:24 +00:00
|
|
|
LOCAL_SRC_FILES:= $(native_loader_common_src_files)
|
2015-12-01 21:56:44 +00:00
|
|
|
LOCAL_STATIC_LIBRARIES := libnativehelper libcutils liblog libbase
|
|
|
|
LOCAL_CLANG := true
|
2016-05-06 00:30:24 +00:00
|
|
|
LOCAL_CFLAGS := $(native_loader_common_cflags)
|
2015-12-01 21:56:44 +00:00
|
|
|
LOCAL_CPPFLAGS := -std=gnu++14 -fvisibility=hidden
|
|
|
|
LOCAL_LDFLAGS := -ldl
|
|
|
|
LOCAL_MULTILIB := both
|
2016-02-13 02:07:29 +00:00
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
2015-12-01 21:56:44 +00:00
|
|
|
include $(BUILD_HOST_STATIC_LIBRARY)
|