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