host_dalvik_static_java_library.mk revision 22c3fa6d73adcf14b38c7cf03446d4e2a892f682
1# 2# Copyright (C) 2013 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17# 18# Rules for building a host dalvik static java library. 19# These libraries will be compiled against libcore and not the host 20# JRE. 21# 22 23USE_CORE_LIB_BOOTCLASSPATH := true 24LOCAL_JAVA_LIBRARIES += core-libart-hostdex 25 26intermediates.COMMON := $(call intermediates-dir-for,JAVA_LIBRARIES,$(LOCAL_MODULE),true,COMMON,) 27full_classes_jack := $(intermediates.COMMON)/classes.jack 28LOCAL_INTERMEDIATE_TARGETS += \ 29 $(full_classes_jack) 30 31include $(BUILD_SYSTEM)/host_java_library.mk 32# proguard is not supported 33# *.proto files are not supported 34$(full_classes_jack): PRIVATE_JACK_FLAGS := $(LOCAL_JACK_FLAGS) 35$(full_classes_jack): PRIVATE_JARJAR_RULES := $(LOCAL_JARJAR_RULES) 36$(full_classes_jack): \ 37 PRIVATE_JACK_INTERMEDIATES_DIR := $(intermediates.COMMON)/jack 38$(full_classes_jack): $(java_sources) $(java_resource_sources) $(full_jack_lib_deps) \ 39 $(jar_manifest_file) $(layers_file) $(LOCAL_MODULE_MAKEFILE) \ 40 $(LOCAL_ADDITIONAL_DEPENDENCIES) $(LOCAL_JARJAR_RULES) \ 41 $(JACK_JAR) 42 @echo Building with Jack: $@ 43 $(java-to-jack) 44 45USE_CORE_LIB_BOOTCLASSPATH := 46