blob: d20d44cc2a5d824715079ef3189152142eb360ad [file] [log] [blame]
Calin Juravle961ae122014-08-11 16:11:59 +01001LOCAL_PATH:= $(call my-dir)
2
3NATIVE_BRIDGE_COMMON_SRC_FILES := \
4 native_bridge.cc
5
6# Shared library for target
7# ========================================================
8include $(CLEAR_VARS)
9
10LOCAL_MODULE:= libnativebridge
11
12LOCAL_SRC_FILES:= $(NATIVE_BRIDGE_COMMON_SRC_FILES)
Andreas Gampe049249c2014-08-19 22:31:31 -070013LOCAL_SHARED_LIBRARIES := liblog
Calin Juravledb2127b2014-08-15 18:27:04 +010014LOCAL_CLANG := true
Calin Juravle961ae122014-08-11 16:11:59 +010015LOCAL_CPP_EXTENSION := .cc
Calin Juravlef9d9e2a2014-10-17 13:45:39 +010016LOCAL_CFLAGS += -Werror -Wall
Andreas Gampe049249c2014-08-19 22:31:31 -070017LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected
Calin Juravle961ae122014-08-11 16:11:59 +010018LOCAL_LDFLAGS := -ldl
19LOCAL_MULTILIB := both
20
21include $(BUILD_SHARED_LIBRARY)
22
23# Shared library for host
24# ========================================================
25include $(CLEAR_VARS)
26
27LOCAL_MODULE:= libnativebridge
28
29LOCAL_SRC_FILES:= $(NATIVE_BRIDGE_COMMON_SRC_FILES)
Andreas Gampe049249c2014-08-19 22:31:31 -070030LOCAL_SHARED_LIBRARIES := liblog
Calin Juravledb2127b2014-08-15 18:27:04 +010031LOCAL_CLANG := true
Calin Juravle961ae122014-08-11 16:11:59 +010032LOCAL_CPP_EXTENSION := .cc
Calin Juravlef9d9e2a2014-10-17 13:45:39 +010033LOCAL_CFLAGS += -Werror -Wall
Andreas Gampe049249c2014-08-19 22:31:31 -070034LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected
Calin Juravle961ae122014-08-11 16:11:59 +010035LOCAL_LDFLAGS := -ldl
36LOCAL_MULTILIB := both
37
38include $(BUILD_HOST_SHARED_LIBRARY)
Andreas Gampe035bd752014-09-02 21:17:03 -070039
Calin Juravle28042b52015-06-08 14:30:52 +010040# Static library for host
41# ========================================================
42include $(CLEAR_VARS)
43
44LOCAL_MODULE:= libnativebridge
45
46LOCAL_SRC_FILES:= $(NATIVE_BRIDGE_COMMON_SRC_FILES)
47LOCAL_STATIC_LIBRARIES := liblog
48LOCAL_CLANG := true
49LOCAL_CPP_EXTENSION := .cc
50LOCAL_CFLAGS += -Werror -Wall
51LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected
52LOCAL_LDFLAGS := -ldl
53LOCAL_MULTILIB := both
54
55include $(BUILD_HOST_STATIC_LIBRARY)
56
57
Calin Juravlef9d9e2a2014-10-17 13:45:39 +010058include $(LOCAL_PATH)/tests/Android.mk