diff options
author | Greg Estren <gregce@google.com> | 2016-08-22 20:10:47 +0000 |
---|---|---|
committer | Philipp Wollermann <philwo@google.com> | 2016-08-23 09:29:27 +0000 |
commit | dbdd4326e19bf085faa6f89db27bf13c3bc8bfc7 (patch) | |
tree | 2b1de38bff2cf7a7c2bc38d5926fa594646cea6a /third_party/java | |
parent | 63ee240af85d1822f05b537153af643563b48cb3 (diff) |
Adds data binding support to the Android resource processor.
This is invoked via the new --dataBindingInfoOut flag.
If specified and the rule has resources, data binding declarations
in layout .xmls are stripped and fed into an aggregated .zip file
under that name. The original (stripped) .xml is then fed into
aapt for normal processing.
If specified and the rule has no resources, an empty file is created.
If not specified, everything works as before.
--
MOS_MIGRATED_REVID=130973265
Diffstat (limited to 'third_party/java')
-rw-r--r-- | third_party/java/android_databinding/BUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/third_party/java/android_databinding/BUILD b/third_party/java/android_databinding/BUILD new file mode 100644 index 0000000000..9d66f2123d --- /dev/null +++ b/third_party/java/android_databinding/BUILD @@ -0,0 +1,32 @@ +# Copyright 2016 The Bazel Authors. All rights reserved. +# +# 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. + +licenses(["notice"]) # Apache License 2.0 + +exports_files(["LICENSE"]) + +package( + default_visibility = ["//visibility:public"], +) + +filegroup( + name = "srcs", + srcs = glob(["**"]), +) + +# Executable for the databinding resource compiler. +java_import( + name = "exec", + jars = ["exec.jar"], +) |