Android NDK:如何使用NDK_APP_OUT

时间:2013-07-03 14:27:12

标签: android-ndk

我有一个具有多个依赖项的项目,我想隔离每个项目以获得可重用性。但是,我无法弄清楚如何控制libs和obj文件夹的位置。这是我试过的......

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE    := box2D
LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. $(LOCAL_PATH)/include
NDK_APP_OUT :=../../
LOCAL_SRC_FILES := \
    $(subst $(LOCAL_PATH)/,, \
    $(wildcard $(LOCAL_PATH)/*.cpp) \
    $(wildcard $(LOCAL_PATH)/Collision/*.cpp) \
    $(wildcard $(LOCAL_PATH)/Collision/Shapes/*.cpp) \
    $(wildcard $(LOCAL_PATH)/Rope/*.cpp) \
    $(wildcard $(LOCAL_PATH)/Dynamics/*.cpp) \
    $(wildcard $(LOCAL_PATH)/Dynamics/Contacts/*.cpp) \
    $(wildcard $(LOCAL_PATH)/Dynamics/Joints/*.cpp) \
    $(wildcard $(LOCAL_PATH)/Common/*.cpp))
LOCAL_LDLIBS := -lm -llog -ldl
include $(BUILD_SHARED_LIBRARY)

但是这仍然将libs和obj放在./文件夹中。如何让make文件将它们移回两个目录?

更新

还尝试了NDK_OUT:= .. / .. /

0 个答案:

没有答案