diff options
author | Colin Cross <ccross@android.com> | 2017-12-12 23:16:47 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-12-12 23:16:47 +0000 |
commit | 2406cb9ca833407185f03f9778c83f40baa627ee (patch) | |
tree | 45b6579a73b378332ffc4e3d92493e70d70daa20 /AndroidCallMunge.mk | |
parent | 2f4c6dfce39d38e64a6e4993a808270e16d7dc1b (diff) | |
parent | 61ebe08ef0132f4df784be476c18dbcf76e16a2c (diff) | |
download | guice-2406cb9ca833407185f03f9778c83f40baa627ee.tar.gz |
Convert external/guice to Android.bp
am: 61ebe08ef0
Change-Id: I8502d6fca2c29ea1a7bf86196dbf1d5e4d8071db
Diffstat (limited to 'AndroidCallMunge.mk')
-rw-r--r-- | AndroidCallMunge.mk | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/AndroidCallMunge.mk b/AndroidCallMunge.mk deleted file mode 100644 index 404abf86..00000000 --- a/AndroidCallMunge.mk +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright (C) 2016 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. -# - -# -# Build support for guice within the Android Open Source Project -# See https://source.android.com/source/building.html for more information -# - -# Factored-out implementation of calling munge to post-process guice java files. -# -# Arguments: -# (Constant) -# munge_host_jar = Path to munge-host.jar (built by munge-host rule) -# munge_zip_location = Path to lib/build/munge.jar source archive -# (Varying) -# munge_src_arguments = List of files that need to be munged -# guice_munge_flags = List of flags to pass to munge (e.g. guice_munge_flags := -DNO_AOP) -# - -LOCAL_MODULE_CLASS := JAVA_LIBRARIES -# Run munge over every single java file. -intermediates:= $(local-generated-sources-dir) -GEN := $(addprefix $(intermediates)/, $(munge_src_arguments)) # List of all files that need to be munged. -$(GEN) : PRIVATE_ZIP_LOCATION := $(munge_zip_location) -$(GEN) : PRIVATE_HOST_JAR := $(munge_host_jar) -$(GEN) : PRIVATE_MUNGE_FLAGS := $(guice_munge_flags) -$(GEN) : PRIVATE_CUSTOM_TOOL = java -cp $(PRIVATE_HOST_JAR) Munge $(PRIVATE_MUNGE_FLAGS) $< > $@ -$(GEN): $(intermediates)/%.java : $(LOCAL_PATH)/%.java $(LOCAL_PATH)/$(munge_zip_location) $(munge_host_jar) - $(transform-generated-source) -LOCAL_GENERATED_SOURCES += $(GEN) |