b3facbfdec
Add a method to set up /proc/cpuinfo with enough privileges. Set up the environment for an app in InitializeNativeBridge(). Turn on -Wall for libnativebridge. (cherry picked from commit962eb40abb
) (cherry picked from commitab0da5a9a6
) (cherry picked from commit2f71cb24fa
) (cherry picked from commit04054e28e2
) (cherry picked from commit4390a63236
) Bug: 17671501 Change-Id: Id4f4127d82737b5e56a77175e1068ff5cea60f9d
40 lines
No EOL
1,000 B
Makefile
40 lines
No EOL
1,000 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 |