2014-08-11 23:11:59 +08:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
NATIVE_BRIDGE_COMMON_SRC_FILES := \
|
|
|
|
native_bridge.cc
|
|
|
|
|
|
|
|
# Shared library for target
|
|
|
|
# ========================================================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libnativebridge
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= $(NATIVE_BRIDGE_COMMON_SRC_FILES)
|
2014-08-20 13:31:31 +08:00
|
|
|
LOCAL_SHARED_LIBRARIES := liblog
|
2014-08-16 01:27:04 +08:00
|
|
|
LOCAL_CLANG := true
|
2014-08-11 23:11:59 +08:00
|
|
|
LOCAL_CPP_EXTENSION := .cc
|
2014-10-17 20:45:39 +08:00
|
|
|
LOCAL_CFLAGS += -Werror -Wall
|
2014-08-20 13:31:31 +08:00
|
|
|
LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected
|
2014-08-11 23:11:59 +08:00
|
|
|
LOCAL_LDFLAGS := -ldl
|
|
|
|
LOCAL_MULTILIB := both
|
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
# Shared library for host
|
|
|
|
# ========================================================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libnativebridge
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= $(NATIVE_BRIDGE_COMMON_SRC_FILES)
|
2014-08-20 13:31:31 +08:00
|
|
|
LOCAL_SHARED_LIBRARIES := liblog
|
2014-08-16 01:27:04 +08:00
|
|
|
LOCAL_CLANG := true
|
2014-08-11 23:11:59 +08:00
|
|
|
LOCAL_CPP_EXTENSION := .cc
|
2014-10-17 20:45:39 +08:00
|
|
|
LOCAL_CFLAGS += -Werror -Wall
|
2014-08-20 13:31:31 +08:00
|
|
|
LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected
|
2014-08-11 23:11:59 +08:00
|
|
|
LOCAL_LDFLAGS := -ldl
|
|
|
|
LOCAL_MULTILIB := both
|
|
|
|
|
|
|
|
include $(BUILD_HOST_SHARED_LIBRARY)
|
2014-09-03 12:17:03 +08:00
|
|
|
|
2015-06-08 21:30:52 +08:00
|
|
|
# Static library for host
|
|
|
|
# ========================================================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libnativebridge
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= $(NATIVE_BRIDGE_COMMON_SRC_FILES)
|
|
|
|
LOCAL_STATIC_LIBRARIES := liblog
|
|
|
|
LOCAL_CLANG := true
|
|
|
|
LOCAL_CPP_EXTENSION := .cc
|
|
|
|
LOCAL_CFLAGS += -Werror -Wall
|
|
|
|
LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected
|
|
|
|
LOCAL_LDFLAGS := -ldl
|
|
|
|
LOCAL_MULTILIB := both
|
|
|
|
|
|
|
|
include $(BUILD_HOST_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
2014-10-17 20:45:39 +08:00
|
|
|
include $(LOCAL_PATH)/tests/Android.mk
|