2013-04-11 99 views
1

我想在一個.mk文件中創建兩個.so文件。但是下面的代碼失敗了,因爲LOCAL_MODULE中不應該有空格。那麼有沒有出路?如何在一個android.mk文件中生成兩個.so文件

LOCAL_PATH := $(call my-dir) 

include $(CLEAR_VARS) 

LOCAL_MODULE := gpio hello-jni 
LOCAL_CFLAGS := -Werror  
LOCAL_SRC_FILES := gpio.c hello-jni.c 
LOCAL_LDLIBS := -llog 

include $(BUILD_SHARED_LIBRARY) 

回答

2

我剛剛得到它使用下面的代碼。

LOCAL_PATH := $(call my-dir) 

include $(CLEAR_VARS) 

LOCAL_MODULE := gpio 
LOCAL_CFLAGS := -Werror  
LOCAL_SRC_FILES := gpio.c 
LOCAL_LDLIBS := -llog 

include $(BUILD_SHARED_LIBRARY) 

include $(CLEAR_VARS) 

LOCAL_MODULE := h ello-jni 
LOCAL_CFLAGS := -Werror 
LOCAL_SRC_FILES := hello-jni.c 
LOCAL_LDLIBS := -llog 

include $(BUILD_SHARED_LIBRARY) 
相關問題