aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java
Commit message (Collapse)AuthorAge
* Make C++ archiving use action_configs instead of hardcoded flagsGravatar hlopko2017-04-13
| | | | | RELNOTES: Use action_config in crosstool for static library archiving, remove ar_flag. PiperOrigin-RevId: 153046587
* BEP: for local transports optionally drop path conversionGravatar Klaus Aehlig2017-04-13
| | | | | | | | | For transports that are purely local (like the ones writing to a local file), it sometimes can be useful to skip path conversion and use the local paths directly. Support this for the text and binary format file transports. Change-Id: I2ac2e187ebb11ff82c4e1ddf4881ea54f9d4205d PiperOrigin-RevId: 153044267
* Make FakeCppCompileAction fail if its source file doesn't compile without ↵Gravatar lberki2017-04-13
| | | | | | any extra defines. PiperOrigin-RevId: 153039146
* Lifting restriction that java home cannot be absolute path when jvm label is ↵Gravatar Googler2017-04-13
| | | | | | used. PiperOrigin-RevId: 153020672
* Add qemu2_x86 filegroup to @androidsdk.Gravatar ajmichael2017-04-13
| | | | | | | | | | | | This filegroup is used by the Android testing infrastructure to launch QEMU2 emulators. This filegroup will only build correctly on Linux. Tracking issue: https://github.com/bazelbuild/bazel/issues/903 RELNOTES: None PiperOrigin-RevId: 153003267
* Remove special cases for "name" in implicit outputs codeGravatar Benjamin Peterson2017-04-13
| | | | | | | | | | | | | fa97703c1edf ("allow skylark implicit output callbacks to use the rule name") fixed a limitation of the skylark implicit outputs by adding a special case for "name" to the implicit outputs code. Later, 015e5954157a ("Remove special handling of name attribute") fixed the general problem of "name" being a special case in the attribute map. Therefore, we can remove my original fix. We may also excise an older special case in the implicit outputs templating code. Change-Id: I606c9decd98a8df492d2359abe540d3263f99fe1 PiperOrigin-RevId: 152974774
* Remove Preprocessor.ResultGravatar laurentlb2017-04-13
| | | | | RELNOTES: None. PiperOrigin-RevId: 152965874
* Fix memory regression introduced by default providersGravatar vladmos2017-04-13
| | | | | | | The memory regression was introduced in https://github.com/bazelbuild/bazel/commit/360fb4d9a1e2c44154b17aeb866e07bac2dd1b5b , now default providers are optimized and are built only on demand for all types of targets. PiperOrigin-RevId: 152957220
* Add select() support for "query --output=build".Gravatar gregce2017-04-13
| | | | | | | | | | | | | | | | | | | | | | | | | Before this change, attributes with select() were completely skipped. This doesn't attempt to merge "trivial" selects, e.g. even though: attr = [":foo"] + select({"//conditions:default": [":bar"]}) always resolves to: attr = [":foo", ":bar"] this change still produces: attr = [":foo"] + [":bar"] We could merge these in a future change, if desired. But it's not even clear that's desired. There's conceptual value in keeping the lists separate since that's how they were originally written. That gives users a cue to maybe refactor their rules. RELNOTES[NEW]: "query --output=build" now includes select()s PiperOrigin-RevId: 152956939
* Make Android data binding rules explicitly depend on the runtime library.Gravatar gregce2017-04-13
| | | | | | | | | Before this change Bazel was adding this implicitly. But that wasn't working properly with --incremental_dexing. And that implementation is a lot messier and bug-prone vs. just including it as a standard dependency. Issue: #2694 PiperOrigin-RevId: 152956638
* Add a custom single-line formatter for java.log.Gravatar schmitt2017-04-13
| | | | | | | | This logger makes it easier to parse log statements and is now enabled for Bazel's java.log. RELNOTES[INC]: Bazel now prints logs in single lines to java.log PiperOrigin-RevId: 152954337
* "minimum_os" attribute on multi-arch linking rules.Gravatar cparsons2017-04-13
| | | | | | | This issues a configuration transition on the dependencies of the rule, causing deps to be compiled with the appropriate minimum os version. RELNOTES: None. PiperOrigin-RevId: 152952168
* Add feature_flags attribute to Android binary rules.Gravatar mstaib2017-04-13
| | | | | | | | | | | This is the first actual user of the config_feature_flag rule, able to actually set its value (and thus give a point to using it!) This feature is not fully launched yet, but it is usable in any build containing this change. RELNOTES: None. PiperOrigin-RevId: 152948153
* Update outdated commentGravatar brandjon2017-04-13
| | | | | RELNOTES: None PiperOrigin-RevId: 152947523
* Fix ProtobufSupport.java to use the build configuration when being called ↵Gravatar kaipi2017-04-13
| | | | | | from an apple_binary split transition context. Refactors ProtobufSupport to not rely on ruleContext for dependencies. PiperOrigin-RevId: 152939984
* BuildEvent: reflect generic converter property also in interface variablesGravatar Klaus Aehlig2017-04-13
| | | | | Change-Id: I55fd5b2f38cad9d2b18d369ae51dbd93c2c92288 PiperOrigin-RevId: 152925304
* Delete Preprocessor.FactoryGravatar laurentlb2017-04-12
| | | | PiperOrigin-RevId: 152916191
* Make android_sdk_repository generate filegroups containing system image ↵Gravatar ajmichael2017-04-12
| | | | | | | | | | | | | | | | | | files for all android system images installed in the SDK. For system images that are not installed, create genrule "poison pills" that print a helpful error message if you attempt to build them. These filegroups are intended to be used as the system_image attribute of the android_device rule. Example: $ bazel build @android_test_support//tools/android/emulated_devices/pixel:android_25_x86 Extracting Bazel installation... . INFO: Found 1 target... ERROR: /usr/local/google/home/ajmichael/.cache/bazel/_bazel_ajmichael/efa32264346ef1fc4fec492202b88b31/external/androidsdk/BUILD.bazel:56:1: Executing genrule @androidsdk//:emulator_images_android_25_x86 failed: Process exited with status 1 [sandboxed]. This rule requires that the Android SDK used by Bazel has the following system image installed: emulator_images_android_25_x86. Please install this system image through the Android SDK Manager and try again. RELNOTES: None PiperOrigin-RevId: 152889824
* Delete Preprocessor.Factory.SupplierGravatar laurentlb2017-04-12
| | | | | RELNOTES: None. PiperOrigin-RevId: 152882585
* Introduce hidden configuration flag to list dexopts used by DexFileMerger ↵Gravatar kmb2017-04-12
| | | | | | | | tool during incremental dexing RELNOTES: none PiperOrigin-RevId: 152838197
* Used 'DefaultInfo' instead of `ctx.default_provider`.Gravatar dslomov2017-04-12
| | | | | | | This follows our CamelCaseInfo naming conventions for providers. RELNOTES: None. PiperOrigin-RevId: 152832215
* Fix typo, mobile_install should be mobile-installGravatar Googler2017-04-12
| | | | PiperOrigin-RevId: 152810023
* Re-enabling the remote caching without remote execution code path, which wasGravatar olaola2017-04-12
| | | | | | | | accidentally regressed. TESTED=local RemoteWorker without work_path RELNOTES: n/a PiperOrigin-RevId: 152806430
* Remove Preprocessing support from PackageFactoryGravatar laurentlb2017-04-12
| | | | | RELNOTES: None. PiperOrigin-RevId: 152804937
* Extract --sysroot flag from bazel and move it into crosstoolGravatar hlopko2017-04-12
| | | | | | | This is an encore of https://github.com/bazelbuild/bazel/commit/6127358c1799d8d83cebbd499edac89f869df41b . RELNOTES: None. PiperOrigin-RevId: 152803621
* Make immutability explicit for things exposed to Skylark.Gravatar dslomov2017-04-12
| | | | | RELNOTES: None. PiperOrigin-RevId: 152800780
* Fix #2769: Worker processes should be killed on 'bazel clean'.Gravatar philwo2017-04-12
| | | | PiperOrigin-RevId: 152799488
* BEP: clean up no longer needed field in OutputGroupGravatar Klaus Aehlig2017-04-12
| | | | | | | | | Output artifacts are now always reported as named sets. So the field for reporting artifacts directly in no longer needed. Clean it up. Change-Id: I41efc66116d4a733088d4ee685ccd3fcf0a62d05 PiperOrigin-RevId: 152799435
* Implement default providerGravatar vladmos2017-04-11
| | | | | | | Default providers can now be used not only to return standard providers values from a rule implementation function, but also to access these values provided by other rules. PiperOrigin-RevId: 152797193
* Better error messages for non-exported values.Gravatar dslomov2017-04-11
| | | | | RELNOTES: None. PiperOrigin-RevId: 152793682
* Aspect propagation should not lose transitively-visible aspects.Gravatar dslomov2017-04-11
| | | | | | | | If aspect a3 sees aspect a2, and aspect a2 sees aspect a1, propagation of the aspect list [a1,a2,a3] should not lose any aspects. RELNOTES: None. PiperOrigin-RevId: 152786900
* CommandDispatcher: s/blaze/bazel/ in error messageGravatar laszlocsomor2017-04-11
| | | | | RELNOTES: none PiperOrigin-RevId: 152783295
* reformat "output" param so that it's visibleGravatar Googler2017-04-11
| | | | | RELNOTES: None PiperOrigin-RevId: 152782181
* Explicitly ignore returned FutureGravatar cushon2017-04-11
| | | | PiperOrigin-RevId: 152760365
* Use split transition consistently among Apple multi-arch linking rules.Gravatar cparsons2017-04-11
| | | | | | | | | | Previously, there was no configuration transition in the default case. While this was "convenient" for testing, it makes these tests somewhat inconsistent, and furthermore invalid once these rules switch to always using a configuration transition with the inclusion of minimum OS as an attribute. RELNOTES: None. PiperOrigin-RevId: 152734307
* Avoid copying existing immutable collectionsGravatar cushon2017-04-11
| | | | PiperOrigin-RevId: 152714468
* Added an optional option --j2objc_dead_code_reportGravatar Googler2017-04-11
| | | | | | | --j2objc_dead_cdoe_report accepts a label that can generate a dead code report as argument. If specified, Blaze should pass "--dead-code-report path/to/dead/code/report" to J2ObjC. RELNOTES: None. PiperOrigin-RevId: 152712841
* Support multidex in Bazel.Gravatar ajmichael2017-04-11
| | | | | | | | | | | | | Previously multidex did not work in Bazel because it required a dependency on zip, which we do not ship with Bazel. Then the --experimental_android_use_singlejar_for_multidex flag was added to use a different tool that is included with Bazel for multidex. This change sets that flag to be the default. Fixes https://github.com/bazelbuild/bazel/issues/1936 RELNOTES: android_binary multidex should now work without additional flags. PiperOrigin-RevId: 152712301
* Add toolchain_rule to enable rule authors to define toolchains.Gravatar John Cater2017-04-11
| | | | | Change-Id: I407240708f4aacc89ec5c00bf3e8ff46a1d6d6d6 PiperOrigin-RevId: 152692981
* Make AspectCompleteEvent declare its artifact groupsGravatar Klaus Aehlig2017-04-11
| | | | | | | | In this way, shared subsets of artifacts are only reported once, even if occurring for many aspect-target pairs. Change-Id: Ia300126f427af4a9cc630fbfca649760d8b72262 PiperOrigin-RevId: 152692099
* Avoid using jGit when we know how to download an archiveGravatar kchodorow2017-04-11
| | | | | | | Only checking for GitHub right now, this could probably be expanded. Fixes #2147 PiperOrigin-RevId: 152689610
* Make TargetCompleteEvent declare its artifact groupsGravatar Klaus Aehlig2017-04-11
| | | | | | | | To avoid artifacts rolled up from other targets to be reported several times. Change-Id: I8a329f1c53ad3fcb37cc6602b906472dfce1a12f PiperOrigin-RevId: 152688681
* Allow constructing a dependency group with an initial capacity in ↵Gravatar Googler2017-04-11
| | | | | | | GroupedListHelper RELNOTES: None PiperOrigin-RevId: 152687516
* Fix/clarify doc examples for string *strip() methodsGravatar brandjon2017-04-11
| | | | | RELNOTES: None PiperOrigin-RevId: 152686923
* fix: Allow parentheses in glob patternsGravatar Harmandeep Kaur2017-04-11
| | | | | | | More info here #2583 Closes #2679. PiperOrigin-RevId: 152685327
* Update stale Windows path comment.Gravatar ccalvarin2017-04-11
| | | | PiperOrigin-RevId: 152684266
* Do not wrap dynamic libraries with --whole-archive blockGravatar hlopko2017-04-10
| | | | | | | It doesn't make sense, and is ignored anyway. RELNOTES: None. PiperOrigin-RevId: 152667088
* Fix the SpawnInputExpander to compute the manifest path correctlyGravatar ulfjack2017-04-10
| | | | PiperOrigin-RevId: 152663008
* Avoid calls to NestedSetBuilder#addAll(NestedSet)Gravatar cushon2017-04-10
| | | | PiperOrigin-RevId: 152654844
* Make Bazel use existing NDK13 crosstool for NDK14.Gravatar ajmichael2017-04-10
| | | | | | | | | | | The only difference in the crosstool is the clang version. See the full NDK14 changelog here: https://github.com/android-ndk/ndk/wiki/Changelog-r14 Fixes https://github.com/bazelbuild/bazel/issues/2655. RELNOTES: Bazel now supports Android NDK14. PiperOrigin-RevId: 152552865