------------------------------------------------------------------------------
1.Android.mk
LOCAL_PATH := $(call my-dir)
prebuilt_stdcxx_path := prebuilts/ndk/current/sources/cxx-stl/gnu-libstdc++
include $(CLEAR_VARS)
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/test \
LOCAL_SRC_FILES := \
computer.c
LOCAL_MODULE := libcomputer_j
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/test \
LOCAL_SRC_FILES := \
hello.cpp
LOCAL_SHARED_LIBRARIES := libcomputer_j \
LOCAL_CPPFLAGS += -fexceptions
LOCAL_LDFLAGS := -L$(prebuilt_stdcxx_path)/libs/$(TARGET_CPU_ABI) -lc++ -ldl