1402fbb135
Also:
- add kPreInitiliazed state to native bridge with check transition:
kOpened->kPreInitialized->kInitialized
- made sure we free the memory for the code_cache_path
- tidy up some error messages
- tidy up tests
- add a dummy native bridge to test with
Bug: 18027433
Bug: 18097480
(cherry picked from commit f9d9e2a2d9
)
Change-Id: I9ce578949dbe522d5033465df7ca49fdd3aa3cbf
40 lines
1,001 B
Makefile
40 lines
1,001 B
Makefile
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)
|
|
LOCAL_SHARED_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_SHARED_LIBRARY)
|
|
|
|
# Shared library for host
|
|
# ========================================================
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE:= libnativebridge
|
|
|
|
LOCAL_SRC_FILES:= $(NATIVE_BRIDGE_COMMON_SRC_FILES)
|
|
LOCAL_SHARED_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_SHARED_LIBRARY)
|
|
|
|
include $(LOCAL_PATH)/tests/Android.mk
|