host_java_library.mk revision 40dae1fefa25ac4f901f975b7cdfdc57b4b7052c
1#
2# Copyright (C) 2008 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# Standard rules for building a host java library.
19#
20
21#######################################
22include $(BUILD_SYSTEM)/host_java_library_common.mk
23include $(BUILD_SYSTEM)/base_rules.mk
24#######################################
25
26$(full_classes_compiled_jar): PRIVATE_JAVAC_DEBUG_FLAGS := -g
27
28java_alternative_checked_module :=
29
30# The layers file allows you to enforce a layering between java packages.
31# Run build/tools/java-layers.py for more details.
32layers_file := $(addprefix $(LOCAL_PATH)/, $(LOCAL_JAVA_LAYERS_FILE))
33
34$(LOCAL_BUILT_MODULE): PRIVATE_JAVA_LAYERS_FILE := $(layers_file)
35$(LOCAL_BUILT_MODULE): PRIVATE_JAVACFLAGS := $(LOCAL_JAVACFLAGS)
36$(LOCAL_BUILT_MODULE): PRIVATE_JAR_EXCLUDE_FILES :=
37$(LOCAL_BUILT_MODULE): PRIVATE_JAVA_LAYERS_FILE := $(layers_file)
38$(LOCAL_BUILT_MODULE): $(java_sources) $(java_resource_sources) $(full_java_lib_deps) \
39		$(jar_manifest_file) $(proto_java_sources_file_stamp) $(LOCAL_ADDITIONAL_DEPENDENCIES)
40	$(transform-host-java-to-package)
41