OSDN Git Service

main.mk: Allow overriding subdirs via make variable TARGET_SUBDIRS
authorMike Lockwood <lockwood@android.com>
Thu, 1 Sep 2011 20:02:54 +0000 (16:02 -0400)
committerMike Lockwood <lockwood@android.com>
Thu, 27 Oct 2011 21:34:10 +0000 (17:34 -0400)
Change-Id: I9e1523833e1567a59b19482c7834fe30479a009f
Signed-off-by: Mike Lockwood <lockwood@android.com>
core/main.mk

index 569d4dc..9b05f76 100644 (file)
@@ -480,11 +480,16 @@ subdirs := \
        external/zlib
 else   # !BUILD_TINY_ANDROID
 
+ifneq ($(TARGET_SUBDIRS),)
+subdirs := $(TARGET_SUBDIRS)
+else
 #
 # Typical build; include any Android.mk files we can find.
 #
 subdirs := $(TOP)
 
+endif  # !TARGET_SUBDIRS
+
 FULL_BUILD := true
 
 endif  # !BUILD_TINY_ANDROID