2009-03-04 04:28:42 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
2013-10-02 19:30:27 +02:00
|
|
|
#######################################
|
2013-10-28 14:20:52 +01:00
|
|
|
include $(BUILD_SYSTEM)/host_java_library_common.mk
|
2010-09-24 01:29:53 +02:00
|
|
|
include $(BUILD_SYSTEM)/base_rules.mk
|
2013-10-02 19:30:27 +02:00
|
|
|
#######################################
|
2010-09-24 01:29:53 +02:00
|
|
|
|
2012-04-18 01:24:33 +02:00
|
|
|
$(full_classes_compiled_jar): PRIVATE_JAVAC_DEBUG_FLAGS := -g
|
|
|
|
|
2013-01-30 20:22:06 +01:00
|
|
|
java_alternative_checked_module :=
|
|
|
|
|
2012-10-27 01:25:05 +02:00
|
|
|
# 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))
|
|
|
|
|
2013-10-28 14:20:52 +01:00
|
|
|
$(LOCAL_BUILT_MODULE): PRIVATE_JAVA_LAYERS_FILE := $(layers_file)
|
2010-02-01 20:13:32 +01:00
|
|
|
$(LOCAL_BUILT_MODULE): PRIVATE_JAVACFLAGS := $(LOCAL_JAVACFLAGS)
|
2011-12-16 01:36:55 +01:00
|
|
|
$(LOCAL_BUILT_MODULE): PRIVATE_JAR_EXCLUDE_FILES :=
|
2012-10-27 01:25:05 +02:00
|
|
|
$(LOCAL_BUILT_MODULE): PRIVATE_JAVA_LAYERS_FILE := $(layers_file)
|
2012-10-10 04:39:43 +02:00
|
|
|
$(LOCAL_BUILT_MODULE): $(java_sources) $(java_resource_sources) $(full_java_lib_deps) \
|
2013-10-02 19:30:27 +02:00
|
|
|
$(jar_manifest_file) $(proto_java_sources_file_stamp) $(LOCAL_ADDITIONAL_DEPENDENCIES)
|
2009-03-04 04:28:42 +01:00
|
|
|
$(transform-host-java-to-package)
|