Use the variables that have already been defined as possible.
#
ifndef FFDROID_DIR
-FFDROID_DIR := $(call my-dir)
+FFDROID_DIR := $(FFMPEG_DIR)android
endif
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(C_FILES) $(S_FILES)
-LOCAL_C_INCLUDES := \
- $(FFMPEG_DIR)android/include \
- $(FFMPEG_DIR)
+LOCAL_C_INCLUDES := $(SUBDIR) $(FFMPEG_DIR)
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_C_INCLUDES)
endif
ifneq (($filter x86 x86_64,$(FFMPEG_ARCH)),)
- include $(call my-dir)/config-$(FFMPEG_ARCH)-$(FFMPEG_ARCH_VARIANT).mak
+ include $(FFDROID_DIR)/config-$(FFMPEG_ARCH)-$(FFMPEG_ARCH_VARIANT).mak
else
- include $(call my-dir)/config-$(FFMPEG_ARCH_VARIANT).mak
+ include $(FFDROID_DIR)/config-$(FFMPEG_ARCH_VARIANT).mak
endif