我的架构如下
ABC/
Android.mk
src/main.cpp
lib/armeabi/a.so
inc/a.h
Android.mk的写法如下
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := a
LOCAL_SRC_FILE := $(LOCAL_PATH)/armeabi/a.so
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/inc
LOCAL_SHARED_LIBRARY := a
LOCAL_SRC_FILES := src/main.cpp
LOCAL_MODULE := libtest
include $(BUILD_EXECUTE)
这时会发生undefined reference to a.so(or a.h)里面的interface
但如果我把它build成static library
如include $(BUILD_STATIC_LIBRARY)就可以build过
不知道要build成exe档该如何做
谢拉