OSDN Git Service

android: simplify makefiles nougat-x86 android-x86-7.1-r1 android-x86-7.1-r2 android-x86-7.1-r3 android-x86-7.1-r4 android-x86-7.1-r5
authorChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 23 Aug 2017 03:42:21 +0000 (11:42 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 23 Aug 2017 03:42:21 +0000 (11:42 +0800)
Use the variables that have already been defined as possible.

android/build.mk
android/config.mak

index ec7d342..d70b9ea 100644 (file)
@@ -9,7 +9,7 @@
 #
 
 ifndef FFDROID_DIR
-FFDROID_DIR := $(call my-dir)
+FFDROID_DIR := $(FFMPEG_DIR)android
 endif
 
 include $(CLEAR_VARS)
@@ -55,9 +55,7 @@ LOCAL_PROPRIETARY_MODULE := true
 
 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)
 
index eae2040..017ac74 100644 (file)
@@ -5,7 +5,7 @@ ifeq ($(FFMPEG_2ND_ARCH), true)
 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