blob: 3287b574ac9daa61335c131ad15d7944b0586a34 [file] [log] [blame]
The Android Open Source Project88b60792009-03-03 19:28:42 -08001#
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
Chris Wrend4b1d522013-10-02 13:30:27 -040021#######################################
Narayan Kamath0dd273a2013-10-28 13:20:52 +000022include $(BUILD_SYSTEM)/host_java_library_common.mk
Ying Wang50d7d7a2010-09-23 16:29:53 -070023include $(BUILD_SYSTEM)/base_rules.mk
Chris Wrend4b1d522013-10-02 13:30:27 -040024#######################################
Ying Wang50d7d7a2010-09-23 16:29:53 -070025
jeffhaodc6757a2012-04-17 16:24:33 -070026$(full_classes_compiled_jar): PRIVATE_JAVAC_DEBUG_FLAGS := -g
27
Ying Wang1d977e32013-01-30 11:22:06 -080028java_alternative_checked_module :=
29
Joe Onorato9a6a3262012-10-26 16:25:05 -070030# 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
Ying Wanga3b75932013-08-14 16:59:00 -070034$(LOCAL_BUILT_MODULE): PRIVATE_JAVA_LAYERS_FILE := $(layers_file)
Brian Carlstromf184a0f2010-02-01 11:13:32 -080035$(LOCAL_BUILT_MODULE): PRIVATE_JAVACFLAGS := $(LOCAL_JAVACFLAGS)
Ying Wang5758b8e2011-12-15 16:36:55 -080036$(LOCAL_BUILT_MODULE): PRIVATE_JAR_EXCLUDE_FILES :=
Ying Wanga3b75932013-08-14 16:59:00 -070037$(LOCAL_BUILT_MODULE): PRIVATE_JAR_PACKAGES :=
38$(LOCAL_BUILT_MODULE): PRIVATE_RMTYPEDEFS :=
Joe Onoratof9f60842012-10-09 19:39:43 -070039$(LOCAL_BUILT_MODULE): $(java_sources) $(java_resource_sources) $(full_java_lib_deps) \
Chris Wrend4b1d522013-10-02 13:30:27 -040040 $(jar_manifest_file) $(proto_java_sources_file_stamp) $(LOCAL_ADDITIONAL_DEPENDENCIES)
The Android Open Source Project88b60792009-03-03 19:28:42 -080041 $(transform-host-java-to-package)