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