Use Android.soong.mk to handle mixed Android.mk and Android.bp dirs

When building with soong Android.mk files are ignored in directories
that have Android.bp files.  Only parts of bionic have been converted to
Android.bp files, including some directories that have subdirectories
with Android.mk files.

Add Android.soong.mk files to include subdirectories to any directory
that has an Android.bp file but also has subdirectories with only
Android.mk files.

Change-Id: Ibd3c27d51c44f7a4b42dad0bc747e357b4ae34ca
This commit is contained in:
Colin Cross 2016-05-16 16:55:08 -07:00
parent e79b630daa
commit acf2c26bf6
5 changed files with 13 additions and 2 deletions

2
Android.bp Normal file
View File

@ -0,0 +1,2 @@
subdirs = ["*"]

View File

@ -16,5 +16,4 @@
LOCAL_PATH := $(call my-dir) LOCAL_PATH := $(call my-dir)
include $(call all-makefiles-under,$(LOCAL_PATH)) \ include $(call all-makefiles-under,$(LOCAL_PATH))
$(call all-makefiles-under,$(LOCAL_PATH)/libc)

4
Android.soong.mk Normal file
View File

@ -0,0 +1,4 @@
LOCAL_PATH := $(call my-dir)
include $(call all-makefiles-under,$(LOCAL_PATH))

View File

@ -1477,3 +1477,5 @@ LOCAL_SYSTEM_SHARED_LIBRARIES := libc
LOCAL_SANITIZE := never LOCAL_SANITIZE := never
LOCAL_NATIVE_COVERAGE := $(bionic_coverage) LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
include $(BUILD_STATIC_LIBRARY) include $(BUILD_STATIC_LIBRARY)
include $(call all-makefiles-under,$(LOCAL_PATH))

4
libc/Android.soong.mk Normal file
View File

@ -0,0 +1,4 @@
LOCAL_PATH := $(call my-dir)
include $(call all-makefiles-under,$(LOCAL_PATH))