Calin Juravle | 961ae12 | 2014-08-11 16:11:59 +0100 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | NATIVE_BRIDGE_COMMON_SRC_FILES := \ |
| 4 | native_bridge.cc |
| 5 | |
| 6 | # Shared library for target |
| 7 | # ======================================================== |
| 8 | include $(CLEAR_VARS) |
| 9 | |
| 10 | LOCAL_MODULE:= libnativebridge |
| 11 | |
| 12 | LOCAL_SRC_FILES:= $(NATIVE_BRIDGE_COMMON_SRC_FILES) |
Andreas Gampe | 049249c | 2014-08-19 22:31:31 -0700 | [diff] [blame] | 13 | LOCAL_SHARED_LIBRARIES := liblog |
Calin Juravle | db2127b | 2014-08-15 18:27:04 +0100 | [diff] [blame] | 14 | LOCAL_CLANG := true |
Calin Juravle | 961ae12 | 2014-08-11 16:11:59 +0100 | [diff] [blame] | 15 | LOCAL_CPP_EXTENSION := .cc |
jgu21 | ab0da5a | 2014-09-10 06:58:32 -0400 | [diff] [blame] | 16 | LOCAL_CFLAGS := -Werror -Wall |
Andreas Gampe | 049249c | 2014-08-19 22:31:31 -0700 | [diff] [blame] | 17 | LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected |
Calin Juravle | 961ae12 | 2014-08-11 16:11:59 +0100 | [diff] [blame] | 18 | LOCAL_LDFLAGS := -ldl |
| 19 | LOCAL_MULTILIB := both |
| 20 | |
| 21 | include $(BUILD_SHARED_LIBRARY) |
| 22 | |
| 23 | # Shared library for host |
| 24 | # ======================================================== |
| 25 | include $(CLEAR_VARS) |
| 26 | |
| 27 | LOCAL_MODULE:= libnativebridge |
| 28 | |
| 29 | LOCAL_SRC_FILES:= $(NATIVE_BRIDGE_COMMON_SRC_FILES) |
Andreas Gampe | 049249c | 2014-08-19 22:31:31 -0700 | [diff] [blame] | 30 | LOCAL_SHARED_LIBRARIES := liblog |
Calin Juravle | db2127b | 2014-08-15 18:27:04 +0100 | [diff] [blame] | 31 | LOCAL_CLANG := true |
Calin Juravle | 961ae12 | 2014-08-11 16:11:59 +0100 | [diff] [blame] | 32 | LOCAL_CPP_EXTENSION := .cc |
jgu21 | ab0da5a | 2014-09-10 06:58:32 -0400 | [diff] [blame] | 33 | LOCAL_CFLAGS := -Werror -Wall |
Andreas Gampe | 049249c | 2014-08-19 22:31:31 -0700 | [diff] [blame] | 34 | LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected |
Calin Juravle | 961ae12 | 2014-08-11 16:11:59 +0100 | [diff] [blame] | 35 | LOCAL_LDFLAGS := -ldl |
| 36 | LOCAL_MULTILIB := both |
| 37 | |
| 38 | include $(BUILD_HOST_SHARED_LIBRARY) |
Andreas Gampe | 035bd75 | 2014-09-02 21:17:03 -0700 | [diff] [blame] | 39 | |
| 40 | include $(LOCAL_PATH)/tests/Android.mk |