aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools
Commit message (Collapse)AuthorAge
* Remove some unnecessary code from CcBinary.Gravatar Ulf Adams2015-07-29
| | | | | | | | | The object files from sources are already merged into the cc compilation outputs by the CcLibraryHelper, and returned from getObjectFiles. There's no need to add them again later. -- MOS_MIGRATED_REVID=99379096
* Make Bazel always build with --fat_apk_cpu.Gravatar Lukacs Berki2015-07-29
| | | | | | | | | Also tweak the Android NDK CROSSTOOL file a bit so that it actually works. Fixes #335. -- MOS_MIGRATED_REVID=99377509
* Remove an unused method from RuleContext.Gravatar Ulf Adams2015-07-29
| | | | | -- MOS_MIGRATED_REVID=99377171
* Support coverage in experimental_ios_test.Gravatar Peter Schmitt2015-07-29
| | | | | | | | | | | Coverage depends on quite a few moving parts, several of which were changed for this test: - BuildConfiguration.getCoverageLabels() used to include gcov support, this is now replaced by the dedicated getGcovLabels() and a separate implicit attribute on TestBaseRule. This new attribute is then overridden in ExperimentalIosTest to use an xcode-compatible gcov. - Objc's TestSupport now correctly registers instrumented files and sets the necessary runfiles for collecting coverage. - ios_test's template exports gcda files for coverage computation after the test's execution. -- MOS_MIGRATED_REVID=99374435
* Remove some dead code given that cc_public_library is gone.Gravatar Ulf Adams2015-07-29
| | | | | -- MOS_MIGRATED_REVID=99373396
* Move a method from CcCommon to CcBinary that is only called from there.Gravatar Ulf Adams2015-07-29
| | | | | -- MOS_MIGRATED_REVID=99372555
* Generate a fail.sh so that using Jack/Jill fails a bit more gracefully.Gravatar Lukacs Berki2015-07-29
| | | | | -- MOS_MIGRATED_REVID=99372303
* Move shared settings between CcBinary and CcLibrary toGravatar Han-Wen Nienhuys2015-07-29
| | | | | | | CcLibraryHelper#setCommon. -- MOS_MIGRATED_REVID=99370685
* Documented the iteration order of SkylarkNestedSets.Gravatar Florian Weikert2015-07-29
| | | | | | | Also added additional tests that check for the correct behavior regarding order. -- MOS_MIGRATED_REVID=99370126
* Add the default BUILD language functions to the WORKSPACE fileGravatar Damien Martin-Guillerez2015-07-29
| | | | | | | The WORKSPACE file didn't knew how to interpret l[0] where l is a list. -- MOS_MIGRATED_REVID=99366537
* Clarify the behavior of the "type" attribute for http_archive and ↵Gravatar John Field2015-07-29
| | | | | | | new_http_archive rules. -- MOS_MIGRATED_REVID=99355182
* Remove calls to AnalysisEnvironment.getDerivedArtifact() from a few places.Gravatar Lukacs Berki2015-07-29
| | | | | -- MOS_MIGRATED_REVID=99352934
* Check that most output artifacts are under a directory determined by the ↵Gravatar Lukacs Berki2015-07-29
| | | | | | | | | repository and package of the rule being analyzed. Currently this directory is PACKAGE for rules in the main repository and external/REPOSITORY_NAME/PACKAGE for rules in other repositories. This is a plan to fix #293. Ideally, we would simply make it impossible to create artifacts not under that location, but in practice, we cannot do that because some rules do want to do this, mostly those that are already problematic due to shared actions. So the battle plan is to eliminate as many calls to AnalysisEnvironment.getDerivedArtifact() as I possibly can and audit the rest. -- MOS_MIGRATED_REVID=99351151
* Elegantly handle unbounded file symlink resolutions, e.g. 'a' -> 'b' -> ↵Gravatar Nathan Harmata2015-07-29
| | | | | | | 'a/nope'. -- MOS_MIGRATED_REVID=99337668
* Download from remote http repository only if zip file with correct hash ↵Gravatar Janak Ramakrishnan2015-07-29
| | | | | | | | | doesn't already exist. This addresses #251, but similar functionality needs to be implemented for all flavors of remote repository. -- MOS_MIGRATED_REVID=99319885
* Allow modules to specify additional nodes in the graph to be invalidated and ↵Gravatar Janak Ramakrishnan2015-07-29
| | | | | | | | | | | use this functionality to properly invalidate http download nodes if the downloaded zip file doesn't match the specified hash. This still means that the actual files downloaded may not match, but checking all such files may be too expensive. This helps with #336 but before that issue can be closed all remote repositories (git, etc.), should have similar functionality added. -- MOS_MIGRATED_REVID=99317085
* --Gravatar Googler2015-07-29
| | | | MOS_MIGRATED_REVID=99312812
* Add some useful logging of "blaze query" timing.Gravatar Eric Fellheimer2015-07-29
| | | | | -- MOS_MIGRATED_REVID=99302436
* Switches AndroidRobolectricTest to using .aars to provide transitive ↵Gravatar Andrew Pellegrini2015-07-29
| | | | | | | | | resources to the test runner instead of ResourceContainers. Update AndroidLibraryAarProvider to contain transitive closure of .aars. Provides an ~4x speed improvement in test startup time. RELNOTES: android_resources is no longer allowed as a dep for android_robolectric_test. -- MOS_MIGRATED_REVID=99296321
* Remove the extra outputs from the Java compile action.Gravatar Ulf Adams2015-07-29
| | | | | | | The srclist is never generated as far as I can tell. -- MOS_MIGRATED_REVID=99285158
* Skylark documentation fixesGravatar Laurent Le Brun2015-07-29
| | | | | -- MOS_MIGRATED_REVID=99283744
* Reduce by 3x number of calls to LexerLocation lookups in package serialization.Gravatar Eric Fellheimer2015-07-29
| | | | | -- MOS_MIGRATED_REVID=99279879
* Use "python" instead of "python2" as the default Python2 binary.Gravatar Lukacs Berki2015-07-29
| | | | | | | | | This is more in line with how most Linux distributions work. I hope. Fixes #334. -- MOS_MIGRATED_REVID=99276562
* Introduced ctx.new_file_suffix(Artifact, String) as an alias for ↵Gravatar Florian Weikert2015-07-29
| | | | | | | ctx.new_file(Artifact, String) -- MOS_MIGRATED_REVID=99259144
* Description redacted.Gravatar Rumou Duan2015-07-28
| | | | | -- MOS_MIGRATED_REVID=99234569
* Record the project file used to the master log.Gravatar Googler2015-07-28
| | | | | -- MOS_MIGRATED_REVID=99224654
* Add getter for RepositoryName#nameGravatar Michajlo Matijkiw2015-07-28
| | | | | | | | | This makes it easier to identify places where we rely on Repository#name(), as IDEs have an easier time finding occurences of this specific method vs finding occurences of toString(). -- MOS_MIGRATED_REVID=99221130
* Fix conversion from nanoseconds so that it actually targets milliseconds. ↵Gravatar Nathan Harmata2015-07-28
| | | | | | | The incorrect conversion was introduced recently. -- MOS_MIGRATED_REVID=99218016
* Some additional timing logging for discarding analysis cache, multi group ↵Gravatar Eric Fellheimer2015-07-28
| | | | | | | accounting, and artifact conflicts. -- MOS_MIGRATED_REVID=99217433
* When encountering an unrecoverable IO error during pre-execution-phase work ↵Gravatar Nathan Harmata2015-07-28
| | | | | | | use the more appropriate and correct ExecutorInitException than ViewCreationException. Importantly, note that ExecutorInitException will give us the right exit code and since it's a subclass of AbruptExitException we get the right build status codes too. -- MOS_MIGRATED_REVID=99208200
* Correct typo in android_sdk_repository_template.txt which breaks a number of ↵Gravatar John Field2015-07-28
| | | | | | | | | targets in the template. Tested manually pending more Android rule tests for Bazel. -- MOS_MIGRATED_REVID=99201150
* Record time spent loading action cache in INFO log.Gravatar Nathan Harmata2015-07-28
| | | | | -- MOS_MIGRATED_REVID=99198288
* Make some skyframe and lib/skyframe classes public.Gravatar Nathan Harmata2015-07-28
| | | | | -- MOS_MIGRATED_REVID=99197069
* Remove unused constructor and inline create method.Gravatar Janak Ramakrishnan2015-07-27
| | | | | | | -- Change-Id: Ica96bd719fe9d7e152fbe78e71669fddefe12e92 Reviewed-on: https://bazel-review.googlesource.com/#/c/1640/ MOS_MIGRATED_REVID=99182210
* Disallow non-empty dotd files that do not end in a newline.Gravatar Janak Ramakrishnan2015-07-27
| | | | | | | | | | | Such files likely arise from corrupted filesystems, and an error about the file format is more useful to the user than mysterious one about undeclared inclusions coming from truncated file names. -- Change-Id: I8be4bd3cd4e1845d2904a91e99aeafc41b3b9d8c Reviewed-on: https://bazel-review.googlesource.com/1660 MOS_MIGRATED_REVID=99182205
* Description redacted.Gravatar Laszlo Csomor2015-07-27
| | | | | -- MOS_MIGRATED_REVID=99181437
* RELNOTES[INC]: Remove built-in support for cc_public_libraryGravatar Han-Wen Nienhuys2015-07-27
| | | | | -- MOS_MIGRATED_REVID=99180853
* Include test information in target fieldsGravatar Kristina Chodorow2015-07-27
| | | | | | | -- Change-Id: I8b896e6d4234b5a92d769a16cff70704f1fc9d40 Reviewed-on: https://bazel-review.googlesource.com/1700 MOS_MIGRATED_REVID=99176169
* Add a command line option to enable incremental installation for Android ↵Gravatar Lukacs Berki2015-07-27
| | | | | | | | | native libraries. This requires changes to the stub application and the installer script, which are a-coming. -- MOS_MIGRATED_REVID=99174902
* Don't choke on Exceptions that have a null error message.Gravatar Han-Wen Nienhuys2015-07-27
| | | | | -- MOS_MIGRATED_REVID=99174214
* Remove a misleading comment in CppCompileAction (the class is not actually ↵Gravatar Philipp Wollermann2015-07-27
| | | | | | | overriding getInputs()). -- MOS_MIGRATED_REVID=99173247
* Refactor C++ link action creation.Gravatar Ulf Adams2015-07-27
| | | | | | | | | Remove an unnecessary intermediate method in CcBinary and provide a helper method in CcLinkAction.Builder that simplifies several call sites that just want to add CcLinkParams to the link action. -- MOS_MIGRATED_REVID=99172303
* RELNOTES[INC]: Stop supporting the 'suites' attribute of test_suite. UseGravatar Han-Wen Nienhuys2015-07-27
| | | | | | | 'tests' instead. -- MOS_MIGRATED_REVID=99169485
* Enable simple compilation of Python artifacts for py_binary and py_library.Gravatar Googler2015-07-27
| | | | | -- MOS_MIGRATED_REVID=99163140
* Make default values of attributes point to the main repository.Gravatar Lukacs Berki2015-07-27
| | | | | | | Default values of attributes (e.g. "//tools/cpp:malloc" when an attribute declaration says .name("malloc").value("//tools/cpp:malloc")) are now considered as a label inside the main repository and not inside the external repository. This is consistent with how we treat implicit/default attributes and is useful because these are usually tool dependencies. -- MOS_MIGRATED_REVID=99160392
* Fix sha1 for guava exampleGravatar Carl Mastrangelo2015-07-27
| | | | | | | | The hash in the field is the sha256 sum for the guava jar, rather than the sha1 sum. -- Reviewed-on: https://github.com/google/bazel/pull/320 MOS_MIGRATED_REVID=99045440
* When builds fail because select statements don't match, include in the errorGravatar Greg Estren2015-07-27
| | | | | | | | | | | | | | | | | | which conditions were checked. In other words, go from: ERROR: $WORKSPACE_ROOT/package/BUILD:69:12: Configurable attribute "srcs" doesn't match this configuration (would a default condition help?). to: ERROR: $WORKSPACE_ROOT/package/BUILD:69:12: Configurable attribute "srcs" doesn't match this configuration (would a default condition help?). Conditions checked: //foo:condition1 //foo:condition2 -- MOS_MIGRATED_REVID=99044040
* Update doc for the allowed C++ source file extensions.Gravatar Thiago Farina2015-07-27
| | | | | | | | | | After 77ac48e2d0874d152c29b597113053f2629b3bc3, it is possible to list C++ source files in srcs list with .c++ extension. -- Change-Id: I96a5d5a051967dccdf497c4aca4d1d3b1b03bd52 Reviewed-on: https://bazel-review.googlesource.com/#/c/1720/ MOS_MIGRATED_REVID=99039539
* SkylarkAttr: Introduce constants for attribute namesGravatar Laurent Le Brun2015-07-27
| | | | | -- MOS_MIGRATED_REVID=99036450
* Reformat SkylarkAttr file.Gravatar Laurent Le Brun2015-07-27
| | | | | -- MOS_MIGRATED_REVID=99032618