aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main
Commit message (Collapse)AuthorAge
* Fix SyntaxTreeVisitor for LoadStatement.Gravatar Laurent Le Brun2015-06-19
| | | | | | | Also, some cleanup in the code - #codehealth -- MOS_MIGRATED_REVID=96315466
* Minimal RecursivePkgValue#toString() for debug purposesGravatar Michajlo Matijkiw2015-06-19
| | | | | -- MOS_MIGRATED_REVID=96312993
* Minor cleanup: Unnecessary "static" on interface.Gravatar Eric Fellheimer2015-06-18
| | | | | -- MOS_MIGRATED_REVID=96302792
* Move split/no-split command-line decision to CppLinkAction.Gravatar Han-Wen Nienhuys2015-06-18
| | | | | -- MOS_MIGRATED_REVID=96301836
* Move C++ deps into the correct ActionContextConsumers.Gravatar Philipp Wollermann2015-06-18
| | | | | -- MOS_MIGRATED_REVID=96301465
* Make strategy matching stricter, remove wrong entries in returned map from ↵Gravatar Philipp Wollermann2015-06-18
| | | | | | | StandaloneContextConsumer. -- MOS_MIGRATED_REVID=96300473
* Convert ActionContextProvider to an abstract class. This gets rid of a lot ↵Gravatar Philipp Wollermann2015-06-18
| | | | | | | of empty, unused methods in child classes. -- MOS_MIGRATED_REVID=96299366
* Cleanup in PackageFactory, inline createPackage function.Gravatar Laurent Le Brun2015-06-18
| | | | | | | | | | | createPackage was hard to read (both the definition and the call site) and did nothing useful (just call another function). The name was also confusing: it's not the standard way to create a package, since it's used only for tests. #codehealth -- MOS_MIGRATED_REVID=96288514
* Allow repository rules to provide default bindings for external labels.Gravatar Lukacs Berki2015-06-18
| | | | | | | The idea is that an android_sdk_repository rule would by default bind @external:android/sdk to itself, thus avoiding an unnecessary roundtrip through //tools/android:sdk . If we then also eventually bind that external label to something, we can avoid having the //tools/android:sdk rule altogether. -- MOS_MIGRATED_REVID=96285812
* experimental_ios_test: Support non-xctestsGravatar Daniel Wagner-Hall2015-06-18
| | | | | -- MOS_MIGRATED_REVID=96245678
* Gets rid of unused actooloribtoolzip.Gravatar Googler2015-06-18
| | | | | | | | | This has been replaced by actoolzip and ibtoolzip. Also add some documentation as to how the build process for the tools work. -- MOS_MIGRATED_REVID=96239107
* Add batch methods to WalkableGraph and convert SkyQueryEnvironment to use them.Gravatar Janak Ramakrishnan2015-06-18
| | | | | -- MOS_MIGRATED_REVID=96214911
* Add two binary size optimizations when --compilation_mode=opt is specified:Gravatar Rumou Duan2015-06-18
| | | | | | | | | | 1. Symbol strippings. A new strip action is registered that uses Darwin tool /usr/bin/strip to remove the symbol table of the linked binary. 2. Dead-code strippings, which uses linker flag "--dead_strip" to remove unreachable code in binary link action. RELNOTES: Perform symbol and dead code strippings on linked binaries generated by ObjC rules. -- MOS_MIGRATED_REVID=96211910
* Skylark: Allow variable reassignment to change the type of a variable.Gravatar Laurent Le Brun2015-06-18
| | | | | -- MOS_MIGRATED_REVID=96211360
* Skylark: write labels readablyGravatar Francois-Rene Rideau2015-06-18
| | | | | | | | | Write a label as Label("//x:x") instead of merely "//x:x", so it can be read and evaluated back, as per the Python convention. However, the OutputFormatter for BUILD files still needs to output "//x:x". -- MOS_MIGRATED_REVID=96209979
* Skylark: Fix access to undefined label attribute in computed outputs.Gravatar Laurent Le Brun2015-06-17
| | | | | | | | | Label attribute defaults to null (Java) or None (Skylark). When we pass the attribute map to the compute output function, null values were filtered. Put None in the map for consistency with other attributes. -- MOS_MIGRATED_REVID=96207976
* Temporary fix for build failure when re-unzipping filesGravatar Kristina Chodorow2015-06-17
| | | | | | | Zip files are unzipped when the server starts up, regardless of whether they've already been unzipped (issue #251). They actually aren't overwritten when the WORKSPACE file changes, as external/ is assumed to be immutable (issue #236). -- MOS_MIGRATED_REVID=96206900
* Adds WriteAdbArgsActionContext to BazelRulesModule for the ↵Gravatar Alex Humesky2015-06-17
| | | | | | | incremental_install tool for the mobile-install command. -- MOS_MIGRATED_REVID=96205931
* Support for allowedValues in skylark INT attributeGravatar Laurent Le Brun2015-06-17
| | | | | -- MOS_MIGRATED_REVID=96204583
* Print an error message when an @foo dep isn't foundGravatar Kristina Chodorow2015-06-17
| | | | | | | | | TransitiveTargetFunction only prints an error message if the package names match, so it was just exiting with "loading failed" when there was an error with external dependencies. -- MOS_MIGRATED_REVID=96204337
* Deal properly with IOExceptions when globbing in a single thread.Gravatar Janak Ramakrishnan2015-06-17
| | | | | -- MOS_MIGRATED_REVID=96204334
* Add a tools/android/jack package to the Bazel tree so that Android rules ↵Gravatar Lukacs Berki2015-06-17
| | | | | | | | | actually work. This is a temporary measure until these targets are integrated into android_sdk . Also make handling invalid tools/android/jack packages in JackCompilationHelper a bit more robust. -- MOS_MIGRATED_REVID=96202009
* Add pointers to NestedSet order docs.Gravatar Han-Wen Nienhuys2015-06-17
| | | | | -- MOS_MIGRATED_REVID=96200982
* Skylark: allow attributes to specify a list of allowed valuesGravatar Laurent Le Brun2015-06-17
| | | | | | | e.g. attr.string(values = ["opt1", "opt2"]) -- MOS_MIGRATED_REVID=96187591
* Emit a 'manifest' file containing information about the compiled sourcesGravatar Liam Miller-Cushon2015-06-17
| | | | | | | | | | | | For each compilation unit, JavaBuilder will record: -source path -package name -a list of top-level class names -whether the file was generated by an annotation processor -- MOS_MIGRATED_REVID=96158093
* Skylark: support %r format specifierGravatar Francois-Rene Rideau2015-06-17
| | | | | | | | Refactor the implementation of format. Add %r. Improve some error messages. -- MOS_MIGRATED_REVID=96154542
* ios_test: Default xctest to 1 not 0Gravatar Daniel Wagner-Hall2015-06-17
| | | | | -- MOS_MIGRATED_REVID=96149626
* Add ability to compile objc_binary targets with Swift sources.Gravatar Googler2015-06-17
| | | | | | | | | | | | | * Swift sources whitelisted * Swift compilation and module merging actions * Swift stdlib copying into IPA action * Special case for signing embedded swift stdlib dylibs during bundle signing * Works with mixed ObjC/Swift sources * Doesn't support working with dependencies from Swift code. * Requires Xcode 6.3.1 for swift compiler and tooling. -- MOS_MIGRATED_REVID=96141887
* Tag genrules as requiring darwin if they use a mac toolchain.Gravatar Peter Schmitt2015-06-17
| | | | | -- MOS_MIGRATED_REVID=96128887
* Convert getTransitiveClosure to batch dep retrieval.Gravatar Janak Ramakrishnan2015-06-17
| | | | | -- MOS_MIGRATED_REVID=96122155
* Create batch versions of query environment methods getFwdDeps and ↵Gravatar Janak Ramakrishnan2015-06-17
| | | | | | | | | getReverseDeps, and migrate DepsFunction and RdepsFunction to use them. This makes our (unordered) results potentially dependent on the iteration order of hash sets, but what do we care? -- MOS_MIGRATED_REVID=96117626
* Skylark: Late-bound attributes may return None.Gravatar Laurent Le Brun2015-06-17
| | | | | -- MOS_MIGRATED_REVID=96106406
* Restrict android_library and android_binary rules to Java 7.Gravatar Lukacs Berki2015-06-16
| | | | | | | Note that java_library rules in the transitive closure of Android rules explicitly need to specify -source 7 -target 7 in javacopts for now. -- MOS_MIGRATED_REVID=96103389
* Add the android_library rule to Bazel.Gravatar Lukacs Berki2015-06-16
| | | | | | | This still doesn't work (pending the open sourcing of resources_processor and aar_generator), thus, it is not mentioned in the documentation yet. -- MOS_MIGRATED_REVID=96102496
* This CL adds the android_binary rule to Bazel. Gravatar Lukacs Berki2015-06-16
| | | | | | | Note that despite the rule being present, Android support is still not functional: two tools (//tools/android:{aar_generator,resources_processor} are still missing (and are a-coming!) -- MOS_MIGRATED_REVID=96099045
* Fix NullPointerException in parser.Gravatar Laurent Le Brun2015-06-16
| | | | | | | Location was not set. -- MOS_MIGRATED_REVID=96096088
* Skylark: Forbid break/continue in BUILD files.Gravatar Laurent Le Brun2015-06-16
| | | | | -- MOS_MIGRATED_REVID=96095253
* Default Android dependencies to a //external: label with a default binding ↵Gravatar Lukacs Berki2015-06-16
| | | | | | | | | | | | | | | | to //tools/android: . This is useful because we can then eventually implement an android_tools_repository() rule that lets Bazel download the Android tools from somewhere instead of requiring it to be in every workspace with Android tools. The number of tools here is somewhat scary, therefore, I'm considering creating an android_tools rule which would have an attribute for each of these things. Some non-trivial things about this CL: - The labels to load are removed from AndroidConfiguration because they would resolve to e.g. //external:dx_jar, which labels just don't exist and I don't want to add dummy //external:labels not prefixed with android_ - RedirectChaser is taught how to chase redirect through bind() rules because the Android SDK is now found by //external:android_sdk -> //tools/android:sdk -> @androidsdk//:sdk . Ideally, it would be ///external:android_sdk -> @androidsdk//:sdk, but I figured I'd not fix that in this CL. -- MOS_MIGRATED_REVID=96080553
* Create a value class PatternWithEquality to wrap Pattern so that equal ↵Gravatar Janak Ramakrishnan2015-06-16
| | | | | | | strings can compare equal as Patterns. -- MOS_MIGRATED_REVID=96041927
* Allow users of Blaze Lexer to explicitly specify the line-number table of a ↵Gravatar Carmi Grushko2015-06-16
| | | | | | | file. -- MOS_MIGRATED_REVID=96039514
* Adds a new input and output to resource processing, symbols txt, which will ↵Gravatar Googler2015-06-16
| | | | | | | be used to express the direct dependencies for resource processing. -- MOS_MIGRATED_REVID=96037997
* Remove the debug_key attribute from android_binary and the associated -ks ↵Gravatar Lukacs Berki2015-06-16
| | | | | | | argument from the ApkBuilder invocation, because it turns out that ApkBuilder doesn't support it. -- MOS_MIGRATED_REVID=96035676
* Introduce a simple concurrent Multimap-like data structure with reference ↵Gravatar Nathan Harmata2015-06-16
| | | | | | | counting. -- MOS_MIGRATED_REVID=96024804
* Avoid copying the entire package contents in order to construct the line ↵Gravatar Eric Fellheimer2015-06-16
| | | | | | | number table. -- MOS_MIGRATED_REVID=96010987
* Added /etc/bazel.bazelrc as a global Bazel's master rc.Gravatar Damien Martin-Guillerez2015-06-15
| | | | | | | | | | This will allow system-wide configuration for system-wide installation of Bazel. -- Change-Id: I71b7232e648f2690766c3b9184f863dc888524c0 Reviewed-on: https://bazel-review.googlesource.com/#/c/1540/ MOS_MIGRATED_REVID=95994630
* Fix a bug in the ActionCacheChecker where the code that intended to remove ↵Gravatar Philipp Wollermann2015-06-15
| | | | | | | outdated keys from the cache actually removed the correct one, so the cache never got cleaned up. -- MOS_MIGRATED_REVID=95986001
* Get jdk.WORKSPACE into the default WORKSPACE file by reading it as a Java ↵Gravatar Lukacs Berki2015-06-15
| | | | | | | | | | | resource, then passing it to the parser as a string instead of putting it into embedded_binaries then passing a Path to it to the parser. This makes the upcoming default WORKSPACE rules for Android much more palatable. In particular, Android rules won't need to be special cased when building the Bazel binary because the contents are self-contained in BazelRuleClassProvider (and the jdk.WORKSPACE file, which is a simple Java resource) Even better would be not to use a string, but some kind of structured data, but that's probably more effort than it's worth. -- MOS_MIGRATED_REVID=95983199
* Rollback of commit 162d5b276e1539b1acc44afcd4a4ccadcf99023a.Gravatar Googler2015-06-15
| | | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks targets that have the same .m file in both srcs and hdrs. *** Original change description *** Allow private header files in the srcs attribute of objc_* rules. This uses CppModuleMap and CppModuleMapAction to generate clang module maps for the target and its transitive dependencies. clang enforces private header usage through these maps. Right now module maps are interpreted but modules aren't enabled. RELNOTES: Allow private header files in the srcs attribute of objc_* rules. -- MOS_MIGRATED_REVID=95916531
* Implement Skylark function reprGravatar Francois-Rene Rideau2015-06-15
| | | | | | | | | | | | | | | | | Move printing code from EvalUtils to Printer. Rename functions in Printer: printValue becomes str or print, prettyPrintValue becomes repr or write, formatString becomes format, makeFormattable becomes strFormattable, prettyPrintValues becomes listString. write being self-sufficient is made the reference, and print is the one that is a wrapper around write, rather than the other way around, avoiding mutual recursion. -- MOS_MIGRATED_REVID=95897834
* Expose libc string to SkylarkGravatar Googler2015-06-15
| | | | | -- MOS_MIGRATED_REVID=95859604