Don't build libbcc/libbcinfo in unbundled branches.
Change-Id: Ifd088e9d26b10cd75b219b623d1a027623b871c4
diff --git a/bcinfo/Android.mk b/bcinfo/Android.mk
index 5a53e07..c6aafee 100644
--- a/bcinfo/Android.mk
+++ b/bcinfo/Android.mk
@@ -14,6 +14,9 @@
# limitations under the License.
#
+# Don't build for unbundled branches
+ifeq (,$(TARGET_BUILD_APPS))
+
local_cflags_for_libbcinfo := -Wall -Wno-unused-parameter -Werror
ifneq ($(TARGET_BUILD_VARIANT),eng)
local_cflags_for_libbcinfo += -D__DISABLE_ASSERTS
@@ -88,6 +91,8 @@
include $(LLVM_ROOT_PATH)/llvm-host-build.mk
include $(BUILD_HOST_SHARED_LIBRARY)
+endif # don't build for unbundled branches
+
#=====================================================================
# Include Subdirectories
#=====================================================================