blob: 6c2e43e320c85962b0d01918c31c2b16fe5ef815 [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
jgu21ab0da5a2014-09-10 06:58:32 -040016LOCAL_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
jgu21ab0da5a2014-09-10 06:58:32 -040033LOCAL_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
40include $(LOCAL_PATH)/tests/Android.mk