aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main
Commit message (Collapse)AuthorAge
* Skylark: fix auto type conversion between the BUILD language and Skylark. ↵Gravatar Googler2015-03-05
| | | | | | | SkylarkList#toList() behaves consistently for all implementations. -- MOS_MIGRATED_REVID=87817550
* Fixed paths for bazel-core java_libraryGravatar Damien Martin-Guillerez2015-03-05
| | | | | | | bazel-core was including resources and the doc generator. -- MOS_MIGRATED_REVID=87812405
* Removed unsupported common attributes documentationGravatar Damien Martin-Guillerez2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87809723
* Remove extra .toString() calls from Bazel's Constants.Gravatar Laszlo Csomor2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87806484
* Make the factory methods public in ValueWithMetadata. This might be needed ↵Gravatar Nathan Harmata2015-03-05
| | | | | | | for alternate graph implementations. -- MOS_MIGRATED_REVID=87755843
* Change the default value for test_output to "errors".Gravatar Googler2015-03-05
| | | | | | | This might be controversial, but I have many times seen users run their tests, and then select the failure log path in their terminal and then cat the log to their screen so they can search for their errors. Every time, I've pointed out, "you can add test_output=errors to your .blazerc," they've thought it was great. Sometimes they say, "Why isn't that just the default?" -- MOS_MIGRATED_REVID=87734723
* More blaze/bazel name cleanup in help messages.Gravatar Laurent Le Brun2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87728012
* Use the correct product name in Bazel command helpGravatar Laurent Le Brun2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87717872
* Help: Use the correct product name (blaze/bazel) in command help.Gravatar Laurent Le Brun2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87714450
* HelpCommand: Display the correct name (blaze/bazel).Gravatar Laurent Le Brun2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87712063
* Build encyclopedia: moved the HTML out of the java class into templatesGravatar Damien Martin-Guillerez2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87704425
* Undocument some MakeVars in Bazel's BE.Gravatar Laszlo Csomor2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87698761
* Add documentation for workspace()Gravatar Kristina Chodorow2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87622845
* Change the name of the runfiles constantGravatar Kristina Chodorow2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87621601
* Open-sourcing BazelJavaCompiler.Gravatar Damien Martin-Guillerez2015-03-05
| | | | | | | This is a mock for java compilation. It can be used to do tests using the same configuration as when Bazel invoke javac. -- MOS_MIGRATED_REVID=87608177
* Mark the abi and abi_deps attributes as deprecated in Bazel.Gravatar Ulf Adams2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87597808
* Rename TopLevelArtifactProvider to OutputGroupProvider.Gravatar Lukacs Berki2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87596401
* Skylark: 'enumerate' function is fixed (see the extra check in ↵Gravatar Googler2015-03-05
| | | | | | | | | MethodLibraryTest#testEnumerate), it returns a SkylarkList of tuples. MethodLibrary tests are cleaned up. -- MOS_MIGRATED_REVID=87592639
* Add J2ObjC support for proto option: "objc_class_prefix", which provides ↵Gravatar Googler2015-03-05
| | | | | | | prefix names for generated protos. -- MOS_MIGRATED_REVID=87539098
* Minor cleanups in SkylarkGravatar Francois-Rene Rideau2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87535290
* Publish a static ASTNode setLocationGravatar Francois-Rene Rideau2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87519507
* Generate Build Encyclopedia and Skylark API doc for Bazel.Gravatar Laszlo Csomor2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87515939
* Get runfiles prefix from the WORKSPACE fileGravatar Kristina Chodorow2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87513766
* Do not use module maps if the crosstool doesn't support them when using theGravatar Manuel Klimek2015-03-05
| | | | | | | | | | | | legacy feature configuration. This requires two fixes: 1. we want to mark the module_maps feature unsupported, if the toolchain itself doesn't provide a module map 2. no legacy feature is allowed to imply the module_maps feature -- MOS_MIGRATED_REVID=87511295
* Automated [] rollback of [].Gravatar Matthew DeVore2015-03-05
| | | | | | | | | | | | | *** Reason for rollback *** This is not needed thanks to blaze query. *** Original change description *** Make xctest_app's .ipa an implicit output so that scripts external to Bazel can access it. -- MOS_MIGRATED_REVID=87507266
* Open-source JavaToolchainDataParserGravatar Damien Martin-Guillerez2015-03-05
| | | | | | | JavaToolchainDataParser is a parser that reconstruct a JavaToolchainData from the output of a 'bazel query --output=proto'. -- MOS_MIGRATED_REVID=87502754
* The BE generator now warns if rules are undocumented.Gravatar Laszlo Csomor2015-03-05
| | | | | | | | It also caches files that it already processed, since that may legally happen if there are multiple overlapping directory trees are specified as input. -- MOS_MIGRATED_REVID=87492930
* Fix race condition in SkylarkType.ofGravatar Francois-Rene Rideau2015-03-05
| | | | | | | | | | | Fix race condition in SkylarkType.of(), whereby .equals() but not same (==) types were created, by making Simple.of() synchronized. Also make SkylarkType#includes() more robust by using .equals() instead of == (it's a little bit slower in the case of Simple types once fixed, but also works on complex types that don't hash-cons their values). Also, distinguish SkylarkList (printed as list) and java.util.List (printed as List) and similarly for tuple vs Tuple, when printing types in debugging messages. -- MOS_MIGRATED_REVID=87490176
* Scope the paths of objc compilation artifacts from J2Objc-generated code ↵Gravatar Googler2015-03-05
| | | | | | | using both the associated Java target label and the binary/test target that generates the compilation action. This fixes a bug in which two binary/test targets containing the same Java target to translate leads to shared actions when users execute more than one such binary/test targets in a single Blaze invocation. -- MOS_MIGRATED_REVID=87364125
* Make Rule know about the name of the workspace it is in.Gravatar Kristina Chodorow2015-03-05
| | | | | | | This is needed for taking the runfiles prefix from the WORKSPACE file instead of hardcoding it. -- MOS_MIGRATED_REVID=87347883
* Move BuildViewTestCase to the lib.analysis.util package.Gravatar Ulf Adams2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87345558
* Add Union, contains() to SkylarkTypeGravatar Francois-Rene Rideau2015-03-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor SkylarkType, notably adding Union types and runtime typechecks. These are pre-requisites to unifying all Skylark function calls to use the same code path, that will check types (like SkylarkFunction currently does) as well handle a more complete Python calling convention (like MixedModeFunction is almost but not quite able to do). A SkylarkType can be either * a Simple type corresponding to a Java class, with special types TOP and BOTTOM corresponding respectively to Object and EmptyType (similar to Void). * a Combination of a generic class (LIST, MAP or SET) and an argument type * a Union of a finite number of types * a FunctionType associated with a name and a returnType (with ugly validation-time side-effects that we should probably move out of the type) Unions are necessary because: 1- the type of some builtin function arguments are actually the Union of some type and a function type for a callback that computes the actual value. 2- the type of some builtin function arguments declared as "List" is actually the Union of java List and SkylarkList. 3- instead of adding lots of special cases at the point of argument validation, it's cleaner and more generally useful to have explicit Union types, that can then be displayed to users for documentation or debugging purposes. Validation-time "type inference" is re-expressed simply as type intersection. None is treated specially as inferred into TOP instead of NoneType. Combination types are printed as genericType of argTypes, e.g. "dict of ints". "type" and "generic1" become "genericType" and "argType". In SkylarkList and SkylarkNestedSet, genericType becomes contentType. -- MOS_MIGRATED_REVID=87340881
* Renamed the package of genquery rule from gen to genqueryGravatar Damien Martin-Guillerez2015-03-04
| | | | | -- MOS_MIGRATED_REVID=87337298
* Remove the "begin-block" comments from the very beginning of the BE.Gravatar Laszlo Csomor2015-03-04
| | | | | -- MOS_MIGRATED_REVID=87335844
* Remove --compile_only and --compilation_prerequisites_only; --output_groups ↵Gravatar Lukacs Berki2015-03-04
| | | | | | | can be used in their stead. -- MOS_MIGRATED_REVID=87334648
* Description redacted.Gravatar Marian Lobur2015-03-04
| | | | | -- MOS_MIGRATED_REVID=87324093
* RELNOTES: Invoking blaze run on an objc_binary target launches iossim with ↵Gravatar Googler2015-03-04
| | | | | | | | | the resulting app. This adds very basic run support for objc_binary targets. It simply launches them in iossim with the default device and SDK. -- MOS_MIGRATED_REVID=87286604
* Actually use bundles attribute in objc_import.Gravatar Peter Schmitt2015-03-04
| | | | | | | | This is left over from the abstract rules refactor where I added this attribute to objc_import but not actually any code to use it. -- MOS_MIGRATED_REVID=87284690
* Don't hardcode the runfiles prefix used by Java rules.Gravatar Kristina Chodorow2015-03-04
| | | | | | | This is prep for replacing the prefix with one set in the WORKSPACE file. -- MOS_MIGRATED_REVID=87282470
* Remove unused make variable GLIBC.Gravatar Han-Wen Nienhuys2015-03-04
| | | | | -- MOS_MIGRATED_REVID=87265401
* Add a SkyQueryEnvironment which runs queries by examining the Skyframe graph.Gravatar Janak Ramakrishnan2015-02-26
| | | | | | | | | This environment eagerly preloads the transitive closure of a specified query "universe", and so may not be as efficient as the standard query for limited-scope queries. It is activated when the universe is specified and ordered results are not requested (since it is currently unable to order results). Tests were modified/added to exercise this environment where deemed interesting. Some ugly hacks were done to add coverage in AbstractQueryTest and friends, because currently even if the full depot is loaded (using //...), individual target patterns most likely won't be present in the graph. A better way to deal with this situation, suggested by felly, is probably to extract target pattern resolution logic to an auxiliary function so that query is able to resolve target patterns without mutating the graph, and then call into the read-only graph with the resolved patterns. That may be done in a follow-up, in which case the "scope" of every query could be //... . -- MOS_MIGRATED_REVID=87257028
* fix bug in test-specific top-level artifact helper behaviorGravatar Michajlo Matijkiw2015-02-26
| | | | | | | | | | | A recent change resulted in TopLevelArtifactHelper.getTopLevelArtifacts() returning an empty result when passed TopLevelArtifactContext.DEFAULT. This only happens in tests and wasn't caught because tests were never fully checking the results. Update MultiGroupForgeResourceAccountantTest to better consider/expose this failure and fixed. -- MOS_MIGRATED_REVID=87254923
* Annotate the public/confidential/shared parts of the BE template.Gravatar Laszlo Csomor2015-02-26
| | | | | | | | | Rewrite some examples that used internal labels to be safe for external version. Also remove some obsolete parts such as no-longer existent Make variables. -- MOS_MIGRATED_REVID=87241538
* Documentation of the coverage report generation is updated.Gravatar Googler2015-02-26
| | | | | -- MOS_MIGRATED_REVID=87235457
* Skylark: path in load statement either has to be absolute or has to have ↵Gravatar Googler2015-02-26
| | | | | | | exactly one segment. -- MOS_MIGRATED_REVID=87234901
* Open-source genquery ruleGravatar Damien Martin-Guillerez2015-02-26
| | | | | | | genquery rule get output of a 'bazel query' inside a build. -- MOS_MIGRATED_REVID=87234590
* Make it possible for SpawnActions to run unconditionally.Gravatar Lukacs Berki2015-02-26
| | | | | -- MOS_MIGRATED_REVID=87231498
* Introduce ios_application rule.Gravatar Peter Schmitt2015-02-25
| | | | | | | | | | | | | | | | | In this, its first incarnation this rule provides no new functionality - all it does is take an objc_binary and perform any bundling the objc_binary would have done anyhow. This will allow us to remove bundling functionality from objc_binary and add multi-architecture transitions between ios_application and objc_binary. However, I did remove the requirement for the infoplist attribute on bundles. We don't actually need it (a plist is generated automatically) and this removal makes the transition much easier. RELNOTES: Introduce ios_application_rule. -- MOS_MIGRATED_REVID=87194403
* Global cleanup change.Gravatar Laurent Le Brun2015-02-25
| | | | | -- MOS_MIGRATED_REVID=87194107
* Include NODEP_LABEL in the set of attributes that are not reported as ↵Gravatar Janak Ramakrishnan2015-02-25
| | | | | | | dependencies of a target (along with outputs and NODEP_LABEL_LIST, which was just special because of visibility). -- MOS_MIGRATED_REVID=87180069