aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java
Commit message (Collapse)AuthorAge
* Skylark: load() allows the loading of symbols via an alias.Gravatar Florian Weikert2015-07-27
| | | | | | | E.g. load("/foo/bla", my_rule = "old_name") will introduce the symbol "my_rule" as an alias for "old_name". -- MOS_MIGRATED_REVID=98933635
* Fix OS detection for Windows.Gravatar Googler2015-07-23
| | | | | -- MOS_MIGRATED_REVID=98927867
* Change the default for CcLibraryHelper.emitLinkActionsIfEmpty to false.Gravatar Ulf Adams2015-07-23
| | | | | | | | | | | | | | | This is renamed from the previous name emitCompileActionsIfEmpty, which was a misnomer, because it didn't affect compile actions at all. Update the callers to no longer call the method if not necessary, which leaves only CcLibrary. CcBinary doesn't hit the link action code path, as it sets the link type to either DYNAMIC_LIBRARY or EXECUTABLE. This is in preparation for removing the implicit outputs from cc_library, which should allow building header-only libraries on MacOS. -- MOS_MIGRATED_REVID=98927221
* Use SafeImplicitOutputFunctions for all except the skylark ones.Gravatar Ulf Adams2015-07-23
| | | | | -- MOS_MIGRATED_REVID=98926819
* Renamed Ident to Identifier, added some helper methods and refactored two ↵Gravatar Florian Weikert2015-07-23
| | | | | | | methods. -- MOS_MIGRATED_REVID=98922811
* Rename appearstoHaveNoObjectFiles to appearsToHaveObjectFiles.Gravatar Greg Estren2015-07-23
| | | | | | | | | | | | | | | Following constantly negating logic like "if (!appearsToHaveNoObjectFiles())" and then digging into the method to see a "if (!NO_OBJECT_GENERATING_FILETYPES.matches) { return false; }" feels like a lot more logical contortion than is necessary. -- MOS_MIGRATED_REVID=98859174
* Make tar.gz decompressor overwrite old versions of decompressed filesGravatar Kristina Chodorow2015-07-23
| | | | | | | | Otherwise Files.copy will throw an IOException when it tries to overwrite an existing copy. -- MOS_MIGRATED_REVID=98840310
* Rollforward of []: Blaze changes to support LLVM profile feedbackGravatar Googler2015-07-23
| | | | | | | Rollback of commit b961bb931400044ed91e6b0b596f94fe983f9f17. -- MOS_MIGRATED_REVID=98833728
* Make generate_workspace also generate a BUILD file with transitive depsGravatar Kristina Chodorow2015-07-23
| | | | | | | Fixes #89. -- MOS_MIGRATED_REVID=98832811
* Allow C++ files to have the .c++ extensionGravatar Kamal Marhubi2015-07-23
| | | | | | | | | | | | While somewhat uncommon, some build environments and projects use the .c++ extension for C++ source files. These projects should be buildable by an unmodified Bazel with no changes to the project other than adding a BUILD file. -- Change-Id: I71575842f50725e9068e7f6608f6404b293ad45c Reviewed-on: https://bazel-review.googlesource.com/#/c/1670/ MOS_MIGRATED_REVID=98823432
* Make Android appcompat libraries available using external labels.Gravatar Lukacs Berki2015-07-23
| | | | | | | This probably doesn't work with old SDKs and I have only tested with 21.1.1, but I assume the path to these libraries is not changed willy-nilly. -- MOS_MIGRATED_REVID=98816286
* Make the creation of the external package much simpler.Gravatar Lukacs Berki2015-07-23
| | | | | | | A previous change made the loading-time external label resolution unused, thus, now we can do away with a lot of machinery. The only unfortunate side effect is that instead of a nice and clear "No Android SDK found" error message, you'll get a more cryptic "external label //external:android/sdk is unbound" one. I think it's a fair tradeoff. -- MOS_MIGRATED_REVID=98813719
* Support for .s, .S, and .asm files for objc rulesGravatar Chris Parsons2015-07-23
| | | | | -- MOS_MIGRATED_REVID=98772452
* Add ios_lab_device support in experimental_ios_test.Gravatar Googler2015-07-21
| | | | | -- MOS_MIGRATED_REVID=98750733
* Add http_file() workspace functionGravatar Damien Martin-Guillerez2015-07-21
| | | | | | | | | | | The http_file workspace function is a remote repository that make available inside a Bazel workspace a single file downloaded from the web. -- Change-Id: Ie6e9f5170d938583eda5b985c1f6377043e2b85b Reviewed-on: https://bazel-review.googlesource.com/1620 MOS_MIGRATED_REVID=98739459
* --Gravatar Michajlo Matijkiw2015-07-21
| | | | MOS_MIGRATED_REVID=98737473
* Fixed bug where blaze run with the --color=no flag was still printing out in ↵Gravatar Googler2015-07-21
| | | | | | | color when the build fails. -- MOS_MIGRATED_REVID=98736813
* Use Apache Commons for reading tar filesGravatar Kristina Chodorow2015-07-21
| | | | | | | Fixes #305. -- MOS_MIGRATED_REVID=98730375
* Remove some dead code that made Bazel croak on nontrivial Android builds.Gravatar Lukacs Berki2015-07-21
| | | | | -- MOS_MIGRATED_REVID=98730087
* Improved format of Skylark documentation:Gravatar Florian Weikert2015-07-21
| | | | | | | | - Default values of optional method parameters are displayed - Removed leading * in argument list -- MOS_MIGRATED_REVID=98730004
* Set PATH and TMPDIR in genrule / Skylark's actionGravatar Damien Martin-Guillerez2015-07-21
| | | | | | | | PATH and TMPDIR were unset inside genrule / Skylark's action even if use_default_shell_env is set. -- MOS_MIGRATED_REVID=98729334
* Get android example to build on OS XGravatar Steven Dee2015-07-21
| | | | | | -- Reviewed-on: https://github.com/google/bazel/pull/314 MOS_MIGRATED_REVID=98719433
* Rollback of commit b8d1e700841d8aa7186ccbdfb0eba53e12a672d0.Gravatar Lukacs Berki2015-07-21
| | | | | | | | | | | | | | | *** Reason for rollback *** Breaks most of the iOS targets on our continuous build. *** Original change description *** Move actoolzip, momczip and swiftstdlibtoolzip to tools/xcode and convert them to scripts instead of java apps. RELNOTES: actoolzip, momczip and swiftstdlibtoolzip have all been made into bash scripts and have been renamed to actoolwrapper, momcwrapper and swiftstdlibtoolwrapper respectively. The old versions will be deleted in a later change. -- MOS_MIGRATED_REVID=98716081
* Fix up registerEnvironmentPlistAction for bazel on Mac.Gravatar Googler2015-07-21
| | | | | | | | | When run under bazel on my local mac, the environment variables are cleared. This causes TMPDIR to be "" which causes this script to fail. Create a tempdir and use it instead of depending on TMPDIR. Remove tempdir at end to clean up. Quote all paths just to be extra safe that somebody hasn't named their Xcode something wonky. RELNOTES:NONE -- MOS_MIGRATED_REVID=98640412
* Add --output_filter optionGravatar Kristina Chodorow2015-07-21
| | | | | | | Fixes #309. -- MOS_MIGRATED_REVID=98639996
* Make --android_crosstool_top default to the android_ndk_repository specified ↵Gravatar Lukacs Berki2015-07-20
| | | | | | | | | | | | | in the WORKSPACE file. The error reporting if an android_ndk_repository rule is present is not very user-friendly (it just uses the non-Android toolchain, resulting in compile errors) but given that --android_crosstool_top is an interim solution until we get reasonable multi-platform support, I suppose it's fine. As a side effect, instead of prefixing fat APK output directories with "fat-apk-", we prefix Android output directories with "android-". This makes it possible to build Android apps with zero command line options. Rejoice! -- MOS_MIGRATED_REVID=98624120
* Fix up some faulty documentation.Gravatar Googler2015-07-20
| | | | | -- MOS_MIGRATED_REVID=98507575
* Skylark: Implemented ctx.empty_action() to create actions that neither ↵Gravatar Florian Weikert2015-07-17
| | | | | | | execute a command nor produce any output, but that are useful for inserting "extra actions". -- MOS_MIGRATED_REVID=98481888
* Move another test into open source blaze.Gravatar Ulf Adams2015-07-17
| | | | | -- MOS_MIGRATED_REVID=98478887
* Make android_ndk_repository work on case-insensitive OS X file systems by ↵Gravatar Lukacs Berki2015-07-17
| | | | | | | | | | | | | not creating a BUILD file next to the build/ directory of the NDK. Fixes #297. Note that a directory called build/ or BUILD/ is not taken as the root of a package (it must be a file). Also drive-by fix the fallout from the recent changes to how Jack/Jill is handled. -- MOS_MIGRATED_REVID=98476274
* Sets the correct properties in the Info.plist, based on the environment that theGravatar Googler2015-07-17
| | | | | | | rule was executed. -- MOS_MIGRATED_REVID=98417915
* Invalidate external repository files when the WORKSPACE changesGravatar Kristina Chodorow2015-07-17
| | | | | | | Fixes #236. -- MOS_MIGRATED_REVID=98402890
* Add git_repository and new_git_repository workspace rules.Gravatar David Chen2015-07-17
| | | | | | | TESTED=Added integration tests. -- MOS_MIGRATED_REVID=98396197
* Say explicitly that --config=X ignores non-existent .rc file config sections.Gravatar Laszlo Csomor2015-07-17
| | | | | -- MOS_MIGRATED_REVID=98394325
* Add a type attribute to {new_,}http_archiveGravatar Damien Martin-Guillerez2015-07-17
| | | | | | | | | | | Some HTTP archive do not ends with the good type. This change add a type attribute that defines an extension to be added to the filename when downloading. -- Change-Id: I7bb29da8c2f418fc5586b081abc519cb08221a0d Reviewed-on: https://bazel-review.googlesource.com/#/c/1631/ MOS_MIGRATED_REVID=98391062
* Improve debugging message in case of unexpected getBatch <-> directDeps ↵Gravatar Janak Ramakrishnan2015-07-17
| | | | | | | mismatch. -- MOS_MIGRATED_REVID=98388239
* Add repository fallback on Maven CentralGravatar Kristina Chodorow2015-07-17
| | | | | -- MOS_MIGRATED_REVID=98387436
* Decompose BuildView.getDirectPrerequisites to allow access to Dependencies.Gravatar Michael Staib2015-07-17
| | | | | | | | This change should essentially be a no-op for callers of getDirectPrerequisites, but opens the opportunity to use the Dependency iterable directly. -- MOS_MIGRATED_REVID=98383758
* Replaced other occurrences of Objects#toStringHelper with ↵Gravatar Googler2015-07-17
| | | | | | | MoreObjects#toStringHelper -- MOS_MIGRATED_REVID=98383075
* Log information about the baseline and new View passed to DiffAwarness#getDiff.Gravatar Nathan Harmata2015-07-17
| | | | | -- MOS_MIGRATED_REVID=98382658
* Rollback of commit 69d20b26b50360221849a4860265150f9c66ef25.Gravatar Lukacs Berki2015-07-17
| | | | | | | | | | | | | *** Reason for rollback *** Breaks LIPO, [] *** Original change description *** Blaze changes to support LLVM profile feedback. -- MOS_MIGRATED_REVID=98382087
* Give Dependency a valid equals/hashCode/toString set.Gravatar Michael Staib2015-07-16
| | | | | -- MOS_MIGRATED_REVID=98381886
* Description redacted.Gravatar Googler2015-07-16
| | | | | -- MOS_MIGRATED_REVID=98347349
* Remove low-value warning about alwayslink requiring srcs.Gravatar Han-Wen Nienhuys2015-07-16
| | | | | -- MOS_MIGRATED_REVID=98314264
* Add a simple resolver for Maven repositoriesGravatar Kristina Chodorow2015-07-16
| | | | | | | Also adds support for submodules and removes a spammy warning. -- MOS_MIGRATED_REVID=98306456
* Move Jack's tools into AndroidSdkProvider.Gravatar Michael Staib2015-07-16
| | | | | | | | | | | | | | | | | This also eliminates the JackRule, which is no longer necessary, as its sole purpose was to allow Jack's tools to be found. This is now part of AndroidSdkProvider, like all other Android tools. For now, the new attributes on android_sdk are optional and default to their old values. In the future, the new attributes will become mandatory with no defaults, like the other attributes on that rule. Also fixes a bug where errors found during AndroidCommon.initJava would not result in a null return from init, previously obscured by the early return from initJack. -- MOS_MIGRATED_REVID=98305022
* Pass filter for what events should be stored in the Skyframe graph into the ↵Gravatar Janak Ramakrishnan2015-07-16
| | | | | | | ParallelEvaluator, to allow users to customize which events they want to store. -- MOS_MIGRATED_REVID=98299604
* Use WritableByteChannel for HttpDownloaderGravatar Damien Martin-Guillerez2015-07-16
| | | | | | | | | | | | Using WritableByteChannel#write instead of OutputStream#write apparently speeds up the download. I don't see any way to make sure it does but on my machine I get normal download speed with that change (compared to the previous version). -- Change-Id: I77db80ecd199efe2a5a9673ca0ad0bbcaaf74e56 Reviewed-on: https://bazel-review.googlesource.com/#/c/1630/ MOS_MIGRATED_REVID=98296070
* Remove unused langtools targetsGravatar Liam Miller-Cushon2015-07-13
| | | | | -- MOS_MIGRATED_REVID=98139919
* Add all transitive module maps when we use header modules.Gravatar Manuel Klimek2015-07-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we have a library 'a' that depends on a library 'm' via multiple other libraries, and 'm' is built as a module, we need clang to load the module map of 'm'. There are multiple possible solutions: 1. (This CL): Add all transitive module maps as inputs when we want to use a module map (at any transitive level). Clang will load all module maps, and find the corresponding modules. 2. Add the module maps of all top-level modules (e.g. modules that are not reached transitively through another module) to clang's command line (we already pass all transtitive module maps for each library that is compiled as a module). The upside of (1) is that it simplifies the module map input computation and removes some differences between remote and local compiles (local compiles will always see all transitive module maps). The upside of (2) would be that we use fewer module map inputs when we do builds that use modules as long as we only have a small subset of libraries at the bottom of the stack compiled as modules. Both alternatives keep transitive module maps out of the inputs for actions that do not use header modules, thus making sure the normal case does not regress. We are implementing (1) because the main slow-down with transitive module maps is during the early loading phase, and should be quickly offset by module builds. We will revisit that decision once we have more data. -- MOS_MIGRATED_REVID=98118092