aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/zip/BUILD
Commit message (Collapse)AuthorAge
* Fix zip_manifest_creator dep in bazel_tools repo with an alias.Gravatar Adam Michael2016-10-26
| | | | | | | | | | | In commit 78c19807d2cbb308b830022dcdcc8b03f19f90a9 I accidentally broke aar_import when I moved zip_manifest_creator from tools/android to tools/zip because tools/android does not have separate BUILD and BUILD.tools files. The test did not catch this, because the dependency in tools/android/BUILD is correct in the context of the bazel tree but not in the context of the bazel_tools embedded workspace. -- MOS_MIGRATED_REVID=137209500
* Refactor AarImportRule into a base rule.Gravatar Adam Michael2016-10-14
| | | | | | | Also moves AAR-specific tools from tools/zip into tools/android and renames embedded_jar_extractor to aar_embedded_jars_extractor because in a future change it will extract classes.jar and libs/*.jar. -- MOS_MIGRATED_REVID=136099324
* Handles missing classes.jar in aar_import gracefully, by creating an empty ↵Gravatar Adam Michael2016-10-07
| | | | | | | jar file instead of crashing Bazel. -- MOS_MIGRATED_REVID=135405636
* Use ijar:zipper instead of zipinfo for zip_manifest_creator.sh.Gravatar Adam Michael2016-10-04
| | | | | | | Also, explicitly puts tools/zip:zipper and tools/zip:zip_manifest_creator.sh into BUILD.tools because they are only used from within @build_tools. -- MOS_MIGRATED_REVID=134824173
* Add test for //tools/zip/zip_manifest_creatorGravatar Adam Michael2016-09-22
| | | | | -- MOS_MIGRATED_REVID=133847278
* Adds aar_import rule to Bazel along with tools needed to implement it. ↵Gravatar Adam Michael2016-09-14
| | | | | | | | | | | | | | | Currently only uses AndroidManifest.xml, classes.jar and res/ from AARs. This is sufficient for many of the AARs of Google Play Services and Android Support Repository. The next step will be for AndroidSdkRepositoryRule to scan the SDK and generate aar_import rules for the AARs within. The rule is not yet documented because it is not intended for end users to use it yet. We should probably support more of the features of AARs before that time. See http://tools.android.com/tech-docs/new-build-system/aar-format for all of the files that can be included in AARs. Also note that R.txt from the AAR is intentionally ignored and regenerated based on the contents of res/. This is more correct, because the R.txt inside of an AAR can contain ids for dependencies of the AAR that are not included in res/. See https://github.com/bazelbuild/bazel/issues/564 for discussion of supporting AARs and https://github.com/bazelbuild/bazel/issues/1745 for motivation to get it done soon. -- MOS_MIGRATED_REVID=133127933
* Stop bundling ijar's sources in bazel_toolsGravatar Damien Martin-Guillerez2016-02-17
Instead bundle ijar's zipper binary so the skylark rules that depends on it can use it from @bazel_tools. A commit introducing windows config settings broke our appengine tutorial. -- MOS_MIGRATED_REVID=114857080