android.mk包含执行顺序

时间:2012-08-27 08:56:45

标签: android android-ndk makefile

LOCAL_PATH := $(call my-dir)
TOP_LOCAL_PATH := $(call my-dir)/../

#Add target arm version
ifeq ($(TARGET_ARCH_ABI),armeabi)
MY_PJSIP_FLAGS := $(BASE_PJSIP_FLAGS) -DPJ_HAS_FLOATING_POINT=0
else
MY_PJSIP_FLAGS := $(BASE_PJSIP_FLAGS) -DPJ_HAS_FLOATING_POINT=1
endif

# Pjsip
include $(TOP_LOCAL_PATH)/pjlib/build/Android.mk
include $(TOP_LOCAL_PATH)/pjlib-util/build/Android.mk

include $(TOP_LOCAL_PATH)/pjnath/build/Android.mk
include $(TOP_LOCAL_PATH)/pjmedia/build/Android.mk
include $(TOP_LOCAL_PATH)/pjsip/build/Android.mk


#pjsip JNI
include $(TOP_LOCAL_PATH)/jni/build/Android.mk

#JSON
include $(TOP_LOCAL_PATH)/third_party/build/json/Android.mk

#GSLB
include $(TOP_LOCAL_PATH)/pgslb/build/Android.mk

我有一个像这样的android make文件,问题是,当开始构建时,GSLB将首先构建,但它依赖于libpjnath.a,女巫是由include $(TOP_LOCAL_PATH)/pjnath/build/Android.mk构建的,因此导致问题,我不知道为什么GSLB会在开始时构建,为什么?我怎么能解决这个问题?

1 个答案:

答案 0 :(得分:0)

这可能为时已晚,但我遇到了与NDK非常相似的问题,并得出结论编译顺序是按字母顺序排列的。