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 |
Calin Juravle | f9d9e2a | 2014-10-17 13:45:39 +0100 | [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 |
Calin Juravle | f9d9e2a | 2014-10-17 13:45:39 +0100 | [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 | |
Calin Juravle | 28042b5 | 2015-06-08 14:30:52 +0100 | [diff] [blame] | 40 | # Static library for host |
| 41 | # ======================================================== |
| 42 | include $(CLEAR_VARS) |
| 43 | |
| 44 | LOCAL_MODULE:= libnativebridge |
| 45 | |
| 46 | LOCAL_SRC_FILES:= $(NATIVE_BRIDGE_COMMON_SRC_FILES) |
| 47 | LOCAL_STATIC_LIBRARIES := liblog |
| 48 | LOCAL_CLANG := true |
| 49 | LOCAL_CPP_EXTENSION := .cc |
| 50 | LOCAL_CFLAGS += -Werror -Wall |
| 51 | LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected |
| 52 | LOCAL_LDFLAGS := -ldl |
| 53 | LOCAL_MULTILIB := both |
| 54 | |
| 55 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 56 | |
| 57 | |
Calin Juravle | f9d9e2a | 2014-10-17 13:45:39 +0100 | [diff] [blame] | 58 | include $(LOCAL_PATH)/tests/Android.mk |