blob: 6c064c7060f6a8b632e059cb7c2dcf833d289478 [file] [log] [blame]
Dimitry Ivanovac1b1912015-12-01 13:56:44 -08001LOCAL_PATH:= $(call my-dir)
2
3NATIVE_LOADER_COMMON_SRC_FILES := \
4 native_loader.cpp
5
6# Shared library for target
7# ========================================================
8include $(CLEAR_VARS)
9
10LOCAL_MODULE:= libnativeloader
11
12LOCAL_SRC_FILES:= $(NATIVE_LOADER_COMMON_SRC_FILES)
13LOCAL_SHARED_LIBRARIES := libnativehelper liblog libcutils
14LOCAL_STATIC_LIBRARIES := libbase
15LOCAL_CLANG := true
16LOCAL_CFLAGS += -Werror -Wall
17LOCAL_CPPFLAGS := -std=gnu++14 -fvisibility=hidden
18LOCAL_LDFLAGS := -ldl
19LOCAL_MULTILIB := both
Elliott Hughes2a7f7e02016-02-12 18:07:29 -080020LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
21LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
Dimitry Ivanovac1b1912015-12-01 13:56:44 -080022include $(BUILD_SHARED_LIBRARY)
23
24# Shared library for host
25# ========================================================
26include $(CLEAR_VARS)
27
28LOCAL_MODULE:= libnativeloader
29
30LOCAL_SRC_FILES:= $(NATIVE_LOADER_COMMON_SRC_FILES)
31LOCAL_SHARED_LIBRARIES := libnativehelper liblog libcutils
32LOCAL_STATIC_LIBRARIES := libbase
33LOCAL_CLANG := true
34LOCAL_CFLAGS += -Werror -Wall
35LOCAL_CPPFLAGS := -std=gnu++14 -fvisibility=hidden
36LOCAL_LDFLAGS := -ldl
37LOCAL_MULTILIB := both
Elliott Hughes2a7f7e02016-02-12 18:07:29 -080038LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
39LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
Dimitry Ivanovac1b1912015-12-01 13:56:44 -080040include $(BUILD_HOST_SHARED_LIBRARY)
41
42# Static library for host
43# ========================================================
44include $(CLEAR_VARS)
45
46LOCAL_MODULE:= libnativeloader
47
48LOCAL_SRC_FILES:= $(NATIVE_LOADER_COMMON_SRC_FILES)
49LOCAL_STATIC_LIBRARIES := libnativehelper libcutils liblog libbase
50LOCAL_CLANG := true
51LOCAL_CFLAGS += -Werror -Wall
52LOCAL_CPPFLAGS := -std=gnu++14 -fvisibility=hidden
53LOCAL_LDFLAGS := -ldl
54LOCAL_MULTILIB := both
Elliott Hughes2a7f7e02016-02-12 18:07:29 -080055LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
56LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
Dimitry Ivanovac1b1912015-12-01 13:56:44 -080057include $(BUILD_HOST_STATIC_LIBRARY)