cd2ef4c1af
Do not allow arbitrary paths for the native bridge - only allow simple names. Do not allow re-setup of the native bridge. Bug: 16404669 Change-Id: Ie22de356d2307fe2758f9094a85d44e61a4098a1
38 lines
949 B
Makefile
38 lines
949 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
|
|
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
|
|
LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected
|
|
LOCAL_LDFLAGS := -ldl
|
|
LOCAL_MULTILIB := both
|
|
|
|
include $(BUILD_HOST_SHARED_LIBRARY)
|