aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Bazel: fix strict deps error in //src/tools/generate_workspaceGravatar Laszlo Csomor2015-10-16
| | | | | | | | | This prevented the //src/tools/generate_workspace target from building. The "Working with external dependencies" section of the Bazel docs mention this tool several times so we must keep it building. -- MOS_MIGRATED_REVID=105592123
* Fix reporting of error messages for EnvironmentalExecExceptionGravatar Googler2015-10-16
| | | | | | | | | | | | | Most (all?) messages for this exception are complete description of the failure (e.g. "failed to do X", "could not do X"). With the previous wording the user got something like: ERROR: [...] Writing file for rule '[...]' failedfailed to create file '[...]' Now: ERROR: [...] Writing file for rule '[...]' failed (failed to create file '[...]') -- MOS_MIGRATED_REVID=105591532
* Minor improvements to set documentation.Gravatar Laurent Le Brun2015-10-16
| | | | | -- MOS_MIGRATED_REVID=105591091
* Fixed wrong error message when using class definitions in Skylark / BUILD files.Gravatar Florian Weikert2015-10-16
| | | | | -- MOS_MIGRATED_REVID=105585492
* Rollback of commit 97eaf9136abad30827cf1a060cc32e786745923d.Gravatar Chris Parsons2015-10-16
| | | | | | | | | | | | | | | *** Reason for rollback *** Broke bazel on mac *** Original change description *** Add a //src:bazel-notools target that is the same as the Bazel binary except without the embedded tools. Its use requires the addition of a local_workspace(name = "bazel_tools", path=...) to the WORKSPACE file. It is useful if you don't care about the set of embedded tools (because you provide them to Bazel in another way anyway) but you do care about the size of the Bazel binary (it's 16 MB compared to 56 MB with the tools). -- MOS_MIGRATED_REVID=105553886
* When loading a Skylark list or tuple, preserve the type in the BUILD file.Gravatar Laurent Le Brun2015-10-16
| | | | | -- MOS_MIGRATED_REVID=105552023
* Move to using "well-known" SkyFunctionNames in tests exercising graphGravatar Michajlo Matijkiw2015-10-16
| | | | | -- MOS_MIGRATED_REVID=105539869
* Stop filtering when returning root causes -- the filter is always true, ↵Gravatar Janak Ramakrishnan2015-10-16
| | | | | | | | | since root causes are associated with top-level targets and labels, and the filter is for all top-level targets and labels. I noticed this when a huge --noanalyze build spent most of its time in filtering here. The passed-in "collection" was a list, which meant that we could have sped it up by using a set, but why not just get rid of it all. -- MOS_MIGRATED_REVID=105536485
* Add Spock support to Groovy rules.Gravatar Erik Kuefler2015-10-16
| | | | | | | | | | | | | Spock is a popular unit testing framework for Java and Groovy applications, see https://code.google.com/p/spock/ for details. This build rule is just a wrapper around java and groovy libraries and tests that makes it convenient to define a spock-based test using a single BUILD target containing the test specs and any supporting Groovy and Java code. -- Change-Id: Ia70346a87762f89d587310cf9578daa9d7d9f34a Reviewed-on: https://bazel-review.googlesource.com/#/c/2010/ MOS_MIGRATED_REVID=105529540
* Cache BUILD file AST parsing results instead of preprocessing results (the ↵Gravatar Nathan Harmata2015-10-16
| | | | | | | | | former uses the latter). This way we parse BUILD files exactly once. This is part of a series of changes with the net result being that we open, read, and parse each BUILD file exactly once. -- MOS_MIGRATED_REVID=105528075
* Change the resource dependency handling to separate between the transitive ↵Gravatar Googler2015-10-16
| | | | | | | | | | | | | | | and direct resources from libraries. This slightly increases the complexity of resource propagation. The initial algorithm was to simply merge all transitive ResourceContainers together with any new ResourceContainer and propagate them via the AndroidResourcesProvider. The new algorithm is encapsulated inside a new ResourceDependencies class which works as follows: 1. Collect resources from the deps into transitive and direct NestedSets 2. If a rule provides a ResourceContainer, merge the transitive and direct into a new transitive set 3. Export the provider This results having a rule without resources "forward" the merged sets of transitive and direct resources to the next rule. -- MOS_MIGRATED_REVID=105515074
* RELNOTES: Allow dots in package names.Gravatar Han-Wen Nienhuys2015-10-16
| | | | | -- MOS_MIGRATED_REVID=105512492
* Roll back [] that makes Bazel not require a tools/defaults/BUILD file ↵Gravatar Lukacs Berki2015-10-16
| | | | | | | because it breaks some internal tests. -- MOS_MIGRATED_REVID=105511798
* Separate BUILD file for options and docgen.Gravatar Han-Wen Nienhuys2015-10-16
| | | | | -- MOS_MIGRATED_REVID=105511114
* Make bazel --nobatch work under Docker.Gravatar Lukacs Berki2015-10-16
| | | | | -- MOS_MIGRATED_REVID=105504785
* Add a //src:bazel-notools target that is the same as the Bazel binary except ↵Gravatar Lukacs Berki2015-10-15
| | | | | | | | | without the embedded tools. Its use requires the addition of a local_workspace(name = "bazel_tools", path=...) to the WORKSPACE file. It is useful if you don't care about the set of embedded tools (because you provide them to Bazel in another way anyway) but you do care about the size of the Bazel binary (it's 16 MB compared to 56 MB with the tools). -- MOS_MIGRATED_REVID=105499508
* New feature: Bazel prints a warning for unknown --config flag values.Gravatar Laszlo Csomor2015-10-15
| | | | | -- MOS_MIGRATED_REVID=105499267
* Skylark: Add lstrip and rstrip functions.Gravatar Laurent Le Brun2015-10-15
| | | | | -- MOS_MIGRATED_REVID=105498175
* Make recursive package wildcards work in remote repositories.Gravatar Lukacs Berki2015-10-15
| | | | | | | Ideally, PrepareDepsOfPatternFunction and maybe even RecursivePkgFunction would also be changed to take a PackageIdentifier instead of RootedPath because the less places we store the set of roots, the better, but I've done enough refactoring in the past weeks to not be thrilled by the idea of doing more. -- MOS_MIGRATED_REVID=105486561
* Introduce --override_workspace_root blaze flag to hand-set workspace_root ↵Gravatar Googler2015-10-15
| | | | | | | | | and mainGroup in xcodeproj. RELNOTES: Adds --override_workspace_root blaze flag to hand-set workspace_root and mainGroup in xcodeproj. -- MOS_MIGRATED_REVID=105484952
* Remove command_helper, use resolve_command insteadGravatar Francois-Rene Rideau2015-10-15
| | | | | | | Eliminate side-effect in command_line_srcs and hide the internal class. -- MOS_MIGRATED_REVID=105480701
* Verify order of NestedSets wrapped by GlobValueGravatar Michajlo Matijkiw2015-10-15
| | | | | -- MOS_MIGRATED_REVID=105461876
* Fix bazel's ijar test afterGravatar Liam Miller-Cushon2015-10-15
| | | | | -- MOS_MIGRATED_REVID=105439722
* Avoid an unnecessary sorted copy: We add the result of this call to a Set. ↵Gravatar Eric Fellheimer2015-10-15
| | | | | | | No need for a specific ordering. -- MOS_MIGRATED_REVID=105438232
* Fix changing the build_file for new_* rulesGravatar Brian Silverman2015-10-15
| | | | | | | | | | | It used to not change the symlink to point to the new one. The failure modes were different when the old file existed vs not, so there are tests for both. -- Change-Id: I6328c56a90254c5da78ccf827d377900bde06e90 Reviewed-on: https://bazel-review.googlesource.com/#/c/2131/ MOS_MIGRATED_REVID=105432042
* Update ios-app tutorial to use ios_application for bundling instead of the ↵Gravatar Chris Parsons2015-10-14
| | | | | | | | | deprecated bundling functionality of objc_binary. This is to be coordinated with updating the example app (linked to within the tutorial) -- MOS_MIGRATED_REVID=105430949
* Support Java 8 MethodParameters attribute in ijarGravatar Liam Miller-Cushon2015-10-14
| | | | | -- MOS_MIGRATED_REVID=105417011
* Pass PackageIdentifier through a bit more code in target parsing in ↵Gravatar Lukacs Berki2015-10-14
| | | | | | | preparation for eventually implementing recursive target patterns for remote repositories. -- MOS_MIGRATED_REVID=105412566
* Make a copy of the list when passing the value from Skylark to BUILD.Gravatar Laurent Le Brun2015-10-14
| | | | | | | | | | | | This change affects only lists, because it is the only mutable type. The change is also temporary. We will later make the list immutable (when it comes from a different context) and we will be able to remove the copy. This fixes a critical bug where values could be mutated from a BUILD file and affect other BUILD files. -- MOS_MIGRATED_REVID=105400506
* Reimplement target pattern parsing in Skyframe.Gravatar Ulf Adams2015-10-14
| | | | | | | | This is currently not hooked up, and we're passing (potentially) massive numbers of targets around. -- MOS_MIGRATED_REVID=105395404
* Make package not Java serializableGravatar Michajlo Matijkiw2015-10-14
| | | | | | | No need for this, remove to cut out some cruft/room for accidents. -- MOS_MIGRATED_REVID=105378202
* Mostly lockless updates of remainingTasks counterGravatar Mark Schaller2015-10-14
| | | | | | | | | Uses an AtomicLong to count remaining tasks. Only obtains the zeroRemainingTasks lock when remaining tasks have gone to zero or the codepath needs to wait on that condition. -- MOS_MIGRATED_REVID=105348523
* Release 0.1.1 (2015-10-05)Gravatar Bazel Release System2015-10-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Baseline: 22616ae + 1ef338f: Rollback of "Propagates cc_library linkopts attribute to dependent objc_libraries.": breaks certain objc_binary build targets. + 5fb1073: Reintroduce an inconsistency check (albeit, in a weaker form) removed by a previous change that was trying to optimize away a filesystem call. + 6d00468b2eb976866cfb814d562e0d53a580a46f: Add IdlClass to the embedded default android tools repository and rearrange BuildJar's JarHelper so that it too can be embedded. + a5199039934a2e399a7201adc0d74e2f2d2b0ff3: Fixes Android integration tests by wiring up idlclass rules in integration environment. Incompatible changes: - Bazel requires JDK 8 to run. - Attribute "copts" is removed from j2objc_library. New features: - a cc_binary rule may list '.s' and '.asm' files in the srcs - Support for build with libsass. - labels in "linkopts" may match any label in either "deps" or "srcs" to be considered valid. - Maven servers that require username & password authentication are now supported (see maven_server documentation). Important changes: - Support empty plist files - The <compatible-screens> section of the AndroidManifest.xml will not be overwritten if it already contains a <screen> tag for each of the densities specified on the android_binary rule. - Add Jsonnet rules to Bazel - Remove deprecated xcode_options flag. - Workspace names are now restricted to being in their base directory (that is, the names cannot contain up-level references or /./). - j2objc_library on Bazel now transpiles transitive proto_library dependencies. (Note that java_* rules in Bazel do not yet support protos; currently they ignore proto dependencies.) - new_http_archive can specify a root directory. - Adds support for dylibs on devices for Xcode 7. - [d] d_docs rules now depend on a d_binary, a d_library or d_source_library. - [docker] docker_build now set the permission to 0555 to files added to the layer, use `mode = "0644"` to use the legacy behavior. - android_binary now has a main_dex_proguard_specs attribute to specify which classes should be in the main dex. - [rust] Add rust_docs rule for generating rustdoc. Change-Id: Id42f6cbeed9531c7023b754e6213782487650c44
* Minor tidying of AbstractQueueVisitorGravatar Mark Schaller2015-10-13
| | | | | | | | | | Removes unnecessary final keyword on private methods, inlines the un-overridden protected method getWorkQueue, and restructures internal constructors to be flatter (i.e. every constructor implementation calls at most one other constructor). -- MOS_MIGRATED_REVID=105344413
* Add HTML profiler execution phase statisticsGravatar Klaas Boesche2015-10-13
| | | | | | | | Re-adds the missing execution phase statistics which got lost in the recent ProfileCommand refactoring. -- MOS_MIGRATED_REVID=105340677
* Allow other ExecutorService implementations in AbstractQueueVisitorGravatar Mark Schaller2015-10-13
| | | | | | | Previously, only ThreadPoolExecutor implementations were allowed. -- MOS_MIGRATED_REVID=105340237
* Only open and read the BUILD file when we don't have a cached preprocessing ↵Gravatar Nathan Harmata2015-10-13
| | | | | | | | | result. This is a step in the right direction towards the goal of opening and reading each BUILD file exactly once. -- MOS_MIGRATED_REVID=105338761
* Rollback of unknown previous commit.Gravatar Googler2015-10-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Broke bazel build. *** Original change description *** Update iossim for Xcode 7 support. As of Xcode 7, supportedDeviceTypesByName was replaced by supportedDeviceTypesByAlias. This is from latest chromium build. Downstream hash is 9dd179a339c0457f8754069e0774b38f69c258a8. The latest merge was to upstream ef05b7da00844c0d500c4a7f20d4095dab56e7fe *** Also includes the following changes: Size the Lexer tokenization to minimize internal resizing. This value is chosen empirically. -- Fixes toolchain selection in the generated Android NDK crosstools by making each target_cpu and compiler field unique. Note that there are some problems with the clang compilers (e.g. can't find ld), which I'll fix in a subsequent change. -- Update iossim for Xcode 7 support. As of Xcode 7, supportedDeviceTypesByName was replaced by supportedDeviceTypesByAlias. This is from latest chromium build. Downstream hash is 9dd179a339c0457f8754069e0774b38f69c258a8. The latest merge was to upstream ef05b7da00844c0d500c4a7f20d4095dab56e7fe -- MOS_MIGRATED_REVID=105337154
* Fix an edge case in which we have imported libraries with duplicated base ↵Gravatar Rumou Duan2015-10-13
| | | | | | | | | names. A shell script build phase is added to copy the imported libraries to BUILT_PRODUCT_DIR with unique names before linking. -- MOS_MIGRATED_REVID=105324431
* Improves the error message for invalid cpu (--cpu or --fat_apk_cpu).Gravatar Alex Humesky2015-10-13
| | | | | | | | | | | | | | | | | | | | | | | | | Before: ERROR: No toolchain found for cpu 'x84'. After: ERROR: No toolchain found for cpu 'x84'. Valid cpus are: [ armeabi, armeabi-v7a, armeabi-v7a-hard, armeabi-thumb, armeabi-v7a-thumb, armeabi-v7a-hard-thumb, arm64-v8a, mips, mips64, x86, x86_64, ]. -- MOS_MIGRATED_REVID=105324190
* Makes the error message for invalid or duplicate crosstool toolchains more ↵Gravatar Alex Humesky2015-10-13
| | | | | | | | | | | | | | | | | | | | | | | | | | legible by putting each flag combination on its own line. E.g. from this: ERROR: No toolchain found for --cpu='foo' --compiler='bar' --glibc='baz'. Valid toolchains are: [ --cpu='armeabi-v7a' --compiler='compiler' --glibc='armeabi-v7a', --cpu='armeabi-v7a' --compiler='compiler' --glibc='armeabi-v7a', --cpu='local' --compiler='compiler' --glibc='local', --cpu='darwin' --compiler='compiler' --glibc='macosx', --cpu='freebsd' --compiler='compiler' --glibc='local', --cpu='k8' --compiler='windows_mingw' --glibc='local', --cpu='k8' --compiler='windows_msys64_mingw64' --glibc='local', --cpu='k8' --compiler='windows_clang' --glibc='local',]. to this: ERROR: No toolchain found for --cpu='foo' --compiler='bar' --glibc='baz'. Valid toolchains are: [ --cpu='armeabi-v7a' --compiler='compiler' --glibc='armeabi-v7a', --cpu='armeabi-v7a' --compiler='compiler' --glibc='armeabi-v7a', --cpu='local' --compiler='compiler' --glibc='local', --cpu='darwin' --compiler='compiler' --glibc='macosx', --cpu='freebsd' --compiler='compiler' --glibc='local', --cpu='k8' --compiler='windows_mingw' --glibc='local', --cpu='k8' --compiler='windows_msys64_mingw64' --glibc='local', --cpu='k8' --compiler='windows_clang' --glibc='local', ]. (notice there is a duplicate toolchain) -- MOS_MIGRATED_REVID=105313547
* Add the remainder of support_v7 to android_sdk_repository that can beGravatar Todd Jeffreys2015-10-13
| | | | | | | referenced via "//external:android/xyz_v7" -- MOS_MIGRATED_REVID=105313228
* Delete unused method in AbstractQueueVisitor.Gravatar Janak Ramakrishnan2015-10-13
| | | | | -- MOS_MIGRATED_REVID=105312426
* Make ParallelEvaluatorTest#unrecoverableError failure messages more informative.Gravatar Janak Ramakrishnan2015-10-13
| | | | | -- MOS_MIGRATED_REVID=105312124
* [jsonnet] Add vars and code_vars attributes to jsonnet_to_json to allow ↵Gravatar David Chen2015-10-13
| | | | | | | | | passing external variables to Jsonnet via --var and --code_var. RELNOTES: [jsonnet] Add vars and code_vars attributes to jsonnet_to_json to allow passing external variables to Jsonnet via --var and --code_var. -- MOS_MIGRATED_REVID=105305323
* [jsonnet] Update to Jsonnet 0.8.1Gravatar David Chen2015-10-13
| | | | | | | RELNOTES: [jsonnet] Update to Jsonnet 0.8.1. -- MOS_MIGRATED_REVID=105303487
* Tweak the BUILD file for Damien's .deb rules so that they depend on gflags ↵Gravatar Lukacs Berki2015-10-13
| | | | | | | properly. -- MOS_MIGRATED_REVID=105301992
* Use default_visibility instead of visibility in package()Gravatar Brian Silverman2015-10-13
| | | | | | | -- Change-Id: I81b4e688b8cf57b2e4a3078f3460c323acd65097 Reviewed-on: https://bazel-review.googlesource.com/#/c/2130 MOS_MIGRATED_REVID=105301546
* Split off 2 BUILD files.Gravatar Han-Wen Nienhuys2015-10-13
| | | | | -- MOS_MIGRATED_REVID=105301167
* Make the sandbox handle an arbitrary number of argumentsGravatar Brian Silverman2015-10-13
| | | | | | | | | | I was hitting argument length restrictions when trying to run rules which take 2 GCC installs and a Clang install as inputs. -- Change-Id: Iee27bb6fb50fe94bff4b2500bbcfa9381b05d63d Reviewed-on: https://bazel-review.googlesource.com/#/c/2090 MOS_MIGRATED_REVID=105300670