brillo: Remove dependency on java for Brillo

Brillo does not require Java. Add a JAVA_NOT_REQUIRED
flag to the build system to make the jdk requirment optional

Also don't build signapk for Brillo

BUG: 25281898
Change-Id: I31e68cc7d076bf6c234699c77c0ea1ea428be4f5
This commit is contained in:
Lee Campbell
2016-01-28 16:12:01 -08:00
parent 4a97cde443
commit 3d8bf2994c
2 changed files with 7 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ LOCAL_REQUIRED_MODULES := libconscrypt_openjdk_jni
include $(BUILD_HOST_JAVA_LIBRARY)
ifeq ($(TARGET_BUILD_APPS),)
ifeq ($(BRILLO),)
# The post-build signing tools need signapk.jar and its shared libraries,
# but we don't need this if we're just doing unbundled apps.
my_dist_files := $(LOCAL_INSTALLED_MODULE) \
@@ -34,3 +35,4 @@ my_dist_files := $(LOCAL_INSTALLED_MODULE) \
$(call dist-for-goals,droidcore,$(my_dist_files))
my_dist_files :=
endif
endif