Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android.mk include execute order

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

i have a android make file like this, the problem is , when start to build , the GSLB will be build first , but it depend on libpjnath.a ,witch is build by include $(TOP_LOCAL_PATH)/pjnath/build/Android.mk , so cause problem , i don't know why the GSLB is build when start , why ? how could i solve this problem ?

like image 873
mike Avatar asked Feb 13 '26 08:02

mike


1 Answers

This might be too late, but I faced very similar problem with NDK and came to conclusion that order of compilation is alphabetical.

like image 131
BorisV Avatar answered Feb 15 '26 00:02

BorisV



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!