0dd273a3f6
We currently have two types of host libraries, those meant for the host VM (Sun, OpenJDK etc.) and those meant for a host dalvik build. The former need to be compiled against the host standard libraries and the latter need to be compiled against libcore. This change introduces two new build rules to complement the existing the existing host rules. BUILD_HOST_DALVIK_JAVA_LIBRARY : Build a java library for a host build of dalvik. Bootclasspath will be set to a host build of libcore. BUILD_HOST_DALVIK_STATIC_JAVA_LIBRARY : Build a static java library for a host build of dalvik. Bootclasspath will be set to a host build of libcore. This change also removes support for the LOCAL_BUILD_HOST_DEX flag, which is now unnecessary. bug: 8992787 Change-Id: I3569fff8eaa4d26d55fcc317bd98471f55d74c14
41 lines
1.6 KiB
Makefile
41 lines
1.6 KiB
Makefile
#
|
|
# Copyright (C) 2008 The Android Open Source Project
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
#
|
|
# Standard rules for building a host java library.
|
|
#
|
|
|
|
#######################################
|
|
include $(BUILD_SYSTEM)/host_java_library_common.mk
|
|
include $(BUILD_SYSTEM)/base_rules.mk
|
|
#######################################
|
|
|
|
$(full_classes_compiled_jar): PRIVATE_JAVAC_DEBUG_FLAGS := -g
|
|
|
|
java_alternative_checked_module :=
|
|
|
|
# The layers file allows you to enforce a layering between java packages.
|
|
# Run build/tools/java-layers.py for more details.
|
|
layers_file := $(addprefix $(LOCAL_PATH)/, $(LOCAL_JAVA_LAYERS_FILE))
|
|
|
|
$(LOCAL_BUILT_MODULE): PRIVATE_JAVA_LAYERS_FILE := $(layers_file)
|
|
$(LOCAL_BUILT_MODULE): PRIVATE_JAVACFLAGS := $(LOCAL_JAVACFLAGS)
|
|
$(LOCAL_BUILT_MODULE): PRIVATE_JAR_EXCLUDE_FILES :=
|
|
$(LOCAL_BUILT_MODULE): PRIVATE_JAR_PACKAGES :=
|
|
$(LOCAL_BUILT_MODULE): PRIVATE_RMTYPEDEFS :=
|
|
$(LOCAL_BUILT_MODULE): $(java_sources) $(java_resource_sources) $(full_java_lib_deps) \
|
|
$(jar_manifest_file) $(proto_java_sources_file_stamp) $(LOCAL_ADDITIONAL_DEPENDENCIES)
|
|
$(transform-host-java-to-package)
|