aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google
Commit message (Collapse)AuthorAge
* Create a base implementation of GenRule that can be used by both Bazel andGravatar John Cater2017-01-30
| | | | | | | | internal Google code. -- PiperOrigin-RevId: 145795255 MOS_MIGRATED_REVID=145795255
* Framework resource deduping (framework resources are kept in the framework ↵Gravatar Chris Parsons2017-01-30
| | | | | | | | bundle, not the top level) -- PiperOrigin-RevId: 145795138 MOS_MIGRATED_REVID=145795138
* Update print() doc to admonish use in production codeGravatar Jon Brandvein2017-01-30
| | | | | | -- PiperOrigin-RevId: 145792618 MOS_MIGRATED_REVID=145792618
* Unify CppCompileActionContext#{getScannedIncludeFiles,findAdditionalInputs}.Gravatar Lukacs Berki2017-01-27
| | | | | | | | They differed only in reporting action state and the way they reported "no include scanning happened" so there was no reason to have both of them around. -- PiperOrigin-RevId: 145773972 MOS_MIGRATED_REVID=145773972
* Create aliases for tools for upcoming android_device rule.Gravatar Adam Michael2017-01-27
| | | | | | | | Note that these aliases are intentionally not yet functional. Nothing should be trying to build them. -- PiperOrigin-RevId: 145746166 MOS_MIGRATED_REVID=145746166
* Incremental dexing for java_lite_proto_librariesGravatar Googler2017-01-27
| | | | | | -- PiperOrigin-RevId: 145744124 MOS_MIGRATED_REVID=145744124
* Add a flag that alters the behavior of the parse_headers feature. With theGravatar Googler2017-01-27
| | | | | | | | | | | | | flag, the headers of a target are compiled into a C++ module instead of being parsed as their own translation unit. The module otherwise remains unused. This way, parse_headers can be used to get a codebase ready for C++ modules. parse_headers currently already gets close, but there are still ways in which a header can be modules-incompatible although it parses fine. -- PiperOrigin-RevId: 145729231 MOS_MIGRATED_REVID=145729231
* Add Bitcode symbol maps and AppleDebugOutputsProviderGravatar Dmitry Shevchenko2017-01-26
| | | | | | | | | | * Bitcode symbol maps allow Apple to provide a new dSYM output when they recompile bitcode on the App Store. This makes it possible to debug apps build with embedded bitcode. * The new debug outputs provider makes it easy (and correct) for other rules to post-process (package, analyze, upload) dSYM and Bitcode artifacts. -- PiperOrigin-RevId: 145720293 MOS_MIGRATED_REVID=145720293
* Deletes dead code. AndroidNativeLibraryProvider is collected and propagated,Gravatar Alex Humesky2017-01-26
| | | | | | | | but is no longer used anywhere. -- PiperOrigin-RevId: 145716681 MOS_MIGRATED_REVID=145716681
* Module maps arising from an experimental_objc_library are not automaticallyGravatar Cal Peyser2017-01-26
| | | | | | | | | | added as inputs to dependant compile actions. This puts experimental_objc_library in line with the behavior of objc_library, and allows targets that specific "-fmodules" to continue to build. -- PiperOrigin-RevId: 145714898 MOS_MIGRATED_REVID=145714898
* Root j2objc linker artifacts underneath the appropriate child configurationGravatar Chris Parsons2017-01-26
| | | | | | -- PiperOrigin-RevId: 145701736 MOS_MIGRATED_REVID=145701736
* Expose rpath entries as a build variableGravatar Marcel Hlopko2017-01-26
| | | | | | -- PiperOrigin-RevId: 145688972 MOS_MIGRATED_REVID=145688972
* Add parameter files to the android resource processing.Gravatar Googler2017-01-26
| | | | | | -- PiperOrigin-RevId: 145686107 MOS_MIGRATED_REVID=145686107
* Tweak output string phrasing.Gravatar Googler2017-01-26
| | | | | | | | This change modifies the warning text that's printed when passing --test_output=streamed. -- PiperOrigin-RevId: 145675853 MOS_MIGRATED_REVID=145675853
* android_sdk_repository exports system-images files.Gravatar Adam Michael2017-01-26
| | | | | | | | | | | | | | | | | | | | | | | | This will enable the upcoming android test rules to write integration tests that depend on the system image files from the Android SDK referenced by the android_sdk_repository rule. E.g., ``` $ cat WORKSPACE android_sdk_repository( name = "androidsdk", ) $ cat BUILD sh_test( name = "integration_test_that_needs_a_system_image", srcs = ["my_test.sh"], deps = ["@androidsdk//:system-images/android-24/default/x86/system.img"], ) ``` -- PiperOrigin-RevId: 145675526 MOS_MIGRATED_REVID=145675526
* Add dependency for external files to the corresponding RepositoryDirectoryValue Gravatar Damien Martin-Guillerez2017-01-26
| | | | | | | | | | | | | | | | Previously we were adding a dependency to the rule itself, however the repository itself can depends on further dependencies (environment, template files, ...) with Skylark repositories. Not invalidating when those change was causing weird invalidation issues that were shown with the invalidation on environment (basically a refetch of the repository on environment invalidation would not cause an invalidation of the corresponding package, the next call would not have invalidation of the repository but would see the change in the build files...). -- Change-Id: I8945d9885e6390734ba02ccc6c3c6ca639fcec35 Reviewed-on: https://cr.bazel.build/8137 PiperOrigin-RevId: 145675258 MOS_MIGRATED_REVID=145675258
* Move Android resource shrinking from experimental to stable.Gravatar Andrew Pellegrini2017-01-26
| | | | | | | | RELNOTES: Android resource shrinking is now available for android_binary rules. To enable, set the attribute 'shrink_resources = 1'. See https://bazel.build/versions/master/docs/be/android.html#android_binary.shrink_resources. -- PiperOrigin-RevId: 145674372 MOS_MIGRATED_REVID=145674372
* Adds Bazel support for Android NDK R13.Gravatar Adam Michael2017-01-26
| | | | | | | | | | | | | | NDK13 changelog: https://github.com/android-ndk/ndk/wiki/Changelog-r13. The most notable change is that the default compiler is now clang and GCC is not supported. Also introduces an interface to encapsulate the creation and usage of ApiLevel and AndroidNdkCrosstoolsR* so that we can get rid of the repeated if-statements checking NDK major version. RELNOTES: android_ndk_repository now supports Android NDK R13. -- PiperOrigin-RevId: 145672022 MOS_MIGRATED_REVID=145672022
* Rename thinlto_param_file to thinlto_indexing_param_file for indexing actionsGravatar Marcel Hlopko2017-01-26
| | | | | | | | | | | | | | My assumption in commit 4cb32a994308e1b4921471e32a02c49d8ceffb84 was that lto-indexing action doesn't expand linking features. This was wrong, and lto-indexing was broken since then as -Wl,@thinlto_param_file was added to the command line. This cl changes the situation by actually exposing 2 different build variables, thinlto_indexing_param_file for lto-indexing actions, and thinlto_param_file for normal linking actions. -- PiperOrigin-RevId: 145669124 MOS_MIGRATED_REVID=145669124
* Rollback of commit bbfa9fa5ad1dd66ecedcb136a4ff3d0f8d397b9b.Gravatar Yun Peng2017-01-26
| | | | | | | | | | | | | | | | | | *** Reason for rollback *** Wrong submit with unresolved issues *** Original change description *** Java template windows performance Address issue #2426 Closes #2427. -- PiperOrigin-RevId: 145668385 MOS_MIGRATED_REVID=145668385
* Java template windows performance Gravatar Renaud Paquay2017-01-26
| | | | | | | | | | | Address issue #2426 Closes #2427. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2427 PiperOrigin-RevId: 145664779 MOS_MIGRATED_REVID=145664779
* Switch Bazel to use the common test env variables.Gravatar Ulf Adams2017-01-26
| | | | | | | | | | | | | | | | | | The effect of this change on Bazel is that we now set the entire list of env variables needed for the various protocols: sharding protocol, undeclared outputs protocol, test warnings, unused runfiles, premature exit signalling, and coverage. We also now set TEST_SIZE, TEST_TIMEOUT, and TEST_RANDOM_SEED. I'm not sure if all of the Bazel-side infrastructure for those protocols is ready yet. With further progress on code sharing, they should fall into place soon, though. Also set GUNIT_OUTPUT for now. Ideally, we'd change upstream to accept our more generic names, but this should do for now. -- PiperOrigin-RevId: 145660945 MOS_MIGRATED_REVID=145660945
* Set defaults for xcode_version and *_sdk_version flags based on the ↵Gravatar Chris Parsons2017-01-26
| | | | | | | | information available in the xcode config -- PiperOrigin-RevId: 145597372 MOS_MIGRATED_REVID=145597372
* Fix the OptionsParser to deal with CRLF line endings.Gravatar Googler2017-01-25
| | | | | | | | Fixes https://github.com/bazelbuild/bazel/issues/2416 -- PiperOrigin-RevId: 145595491 MOS_MIGRATED_REVID=145595491
* Cleanup android rules and android tools so that my IDE stops complaining to me.Gravatar Adam Michael2017-01-25
| | | | | | -- PiperOrigin-RevId: 145569440 MOS_MIGRATED_REVID=145569440
* Add desired type of Profiler action to error message on crash. Also use ↵Gravatar Janak Ramakrishnan2017-01-25
| | | | | | | | Preconditions check because stringification is lazy. -- PiperOrigin-RevId: 145560352 MOS_MIGRATED_REVID=145560352
* (Re)-Add tests for GenRule.Gravatar John Cater2017-01-25
| | | | | | | | | Reverts commit 4bf8cc30a572018ac27101396d18686b75ad1ab5. With fix for https://github.com/bazelbuild/bazel/issues/2408. -- PiperOrigin-RevId: 145544771 MOS_MIGRATED_REVID=145544771
* java_stub_template: Create classpath jar when classpath is too long Gravatar Yun Peng2017-01-25
| | | | | | | | | | Fixed https://github.com/bazelbuild/bazel/issues/2242 -- Change-Id: I3a011c2575f47233091e8f5b87df6372a3438bdd Reviewed-on: https://cr.bazel.build/8470 PiperOrigin-RevId: 145543780 MOS_MIGRATED_REVID=145543780
* Make include pruning work in Bazel.Gravatar Lukacs Berki2017-01-25
| | | | | | | | Fixes #2372. -- PiperOrigin-RevId: 145539067 MOS_MIGRATED_REVID=145539067
* Enable Java sandwich for all Java rules.Gravatar Irina Iancu2017-01-25
| | | | | | | | Added tests for Java sandwich using java_binary, java_test and java_import. -- PiperOrigin-RevId: 145538765 MOS_MIGRATED_REVID=145538765
* Rollback of commit d9a7d3a789be559bd6972208af21adae871d7a44.Gravatar Yun Peng2017-01-25
| | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Change is abandoned because it's a wrong solution See https://github.com/bazelbuild/bazel/issues/2242 *** Original change description *** java_binary now supports long classpath that exceeds command line argment length limit When classpath length exceeds the command line length limit, we create an empty classpath jar whose manifest contaning the whole classpath value. See: https://github.com/bazelbuild/bazel/issues/2242 Fixed: https://github.com/bazelbuild/bazel/issues/1780 -- PiperOrigin-RevId: 145534282 MOS_MIGRATED_REVID=145534282
* java_binary now supports long classpath that exceeds command line argment ↵Gravatar Yun Peng2017-01-25
| | | | | | | | | | | | | | | | | length limit When classpath length exceeds the command line length limit, we create an empty classpath jar whose manifest contaning the whole classpath value. See: https://github.com/bazelbuild/bazel/issues/2242 Fixed: https://github.com/bazelbuild/bazel/issues/1780 -- Change-Id: Id6dd503c17f7f17e4a4c37fa01da24e2a1ea2155 Reviewed-on: https://cr.bazel.build/8353 PiperOrigin-RevId: 145521892 MOS_MIGRATED_REVID=145521892
* Add a java_toolchain entry for the resource jar builderGravatar Liam Miller-Cushon2017-01-25
| | | | | | | | The tool will be used to construct resources jars separately from JavaBuilder. -- PiperOrigin-RevId: 145511455 MOS_MIGRATED_REVID=145511455
* Move rexed proguard map to top level blaze-bin directory when rex enabledGravatar Googler2017-01-25
| | | | | | -- PiperOrigin-RevId: 145495392 MOS_MIGRATED_REVID=145495392
* Global cleanup change.Gravatar Googler2017-01-25
| | | | | | -- PiperOrigin-RevId: 145473478 MOS_MIGRATED_REVID=145473478
* Enable parameter file support for excessively long commandlines.Gravatar Googler2017-01-25
| | | | | | -- PiperOrigin-RevId: 145473123 MOS_MIGRATED_REVID=145473123
* Add the Android resource shrinker log as a file to build when shrinking is ↵Gravatar Andrew Pellegrini2017-01-25
| | | | | | | | performed in order to expose it in build summary output. -- PiperOrigin-RevId: 145457357 MOS_MIGRATED_REVID=145457357
* Rollback of commit 283b60a0c93b8ed9659fe6d97592202170946dd7.Gravatar Adam Michael2017-01-25
| | | | | | | | | | | | | | *** Reason for rollback *** After discussing with thomaswk@, we've decided not to put these in the android_sdk. *** Original change description *** Add attributes to android_sdk rule so that they will be available for open sourcing android_device. -- PiperOrigin-RevId: 145444443 MOS_MIGRATED_REVID=145444443
* Add attributes to android_sdk rule so that they will be available for open ↵Gravatar Googler2017-01-25
| | | | | | | | sourcing android_device. -- PiperOrigin-RevId: 145429610 MOS_MIGRATED_REVID=145429610
* Testers using --experimental_objc_library will use apple crosstoolGravatar Cal Peyser2017-01-25
| | | | | | | | transition at the top level for the expanded set of apple rule classes -- PiperOrigin-RevId: 145421255 MOS_MIGRATED_REVID=145421255
* Cleanup CppLinkActionBuilderGravatar Marcel Hlopko2017-01-24
| | | | | | | | | Remove (output != null) check which is always true and cleanup dependent conditionals. -- PiperOrigin-RevId: 145409269 MOS_MIGRATED_REVID=145409269
* Move the test environment setup to the TestRunnerAction.Gravatar Ulf Adams2017-01-24
| | | | | | | | | | | | | | | | | | | This is part of unifying the test strategies; here, I'm working towards sharing the test environment setup. This change moves code from previously closed source code into the open source parts. The internal change is not visible, making this look like an addition rather than a move.. The next change hooks this up to Bazel. I did this in order to reduce the size of the change to make it easier to debug, review, and so that it's smaller in case we have to roll it back. Unfortunately, that requires duplicating some of the code in StandaloneTestStrategy until the next change lands. -- PiperOrigin-RevId: 145387109 MOS_MIGRATED_REVID=145387109
* experimental_objc_library excludes private headers from module maps. ThisGravatar Cal Peyser2017-01-24
| | | | | | | | brings it in line with the behavior in objc_library. -- PiperOrigin-RevId: 145330154 MOS_MIGRATED_REVID=145330154
* Add java_runtime contents to runfilesGravatar Liam Miller-Cushon2017-01-24
| | | | | | | | | This is required for compatibility with existing runtimes specified as filegroups. -- PiperOrigin-RevId: 145314598 MOS_MIGRATED_REVID=145314598
* Add getImplicitOutputArtifact to BuildViewTestCase. This vastly simplifiesGravatar Googler2017-01-23
| | | | | | | | finding actions based on intermediate artifacts. -- PiperOrigin-RevId: 145303065 MOS_MIGRATED_REVID=145303065
* Minimize SpawnAction constructor exposureGravatar Michajlo Matijkiw2017-01-23
| | | | | | | | One's unused, the other is ok as protected. -- PiperOrigin-RevId: 145291062 MOS_MIGRATED_REVID=145291062
* Renames the BundleLoaderProvider to AppleExecutableBinaryProvider, and uses ↵Gravatar Sergio Campama2017-01-23
| | | | | | | | | | that provider to retrieve the executable binary to act as the bundle_loader. Also passes the bundle loader's ObjcProvider and ObjcProtoProviders to the dylib deduping mechanism to avoid dual linking of symbols into the tests. -- PiperOrigin-RevId: 145284598 MOS_MIGRATED_REVID=145284598
* Fixes bug where using portable_proto_filters along with proto files in deps ↵Gravatar Sergio Campama2017-01-23
| | | | | | | | (as oposed to proto_library targets) would result in a crash. -- PiperOrigin-RevId: 145283582 MOS_MIGRATED_REVID=145283582
* Stop GenQuery evaluation when an error is found in the transitive closure of ↵Gravatar Chloe Calvarin2017-01-23
| | | | | | | | | | the scope. This seems to only have been a problem when the error was in an unselect path, as the query would have failed earlier otherwise. -- PiperOrigin-RevId: 145282112 MOS_MIGRATED_REVID=145282112
* Adding JavaSourceJarsProvider to Java Provider.Gravatar Irina Iancu2017-01-23
| | | | | | | | Also refactoring JavaProvider to use the Builder pattern, given that it is going to encapsulate a fair number of other providers. -- PiperOrigin-RevId: 145280532 MOS_MIGRATED_REVID=145280532