aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
Commit message (Collapse)AuthorAge
* Add native support for linux on ARM Cpu (32 bits)Gravatar Zhong Wang2015-08-12
| | | | | | | -- Change-Id: Ia70ca1b8482e10bc1ac91799aa238f8613e5c824 Reviewed-on: https://bazel-review.googlesource.com/#/c/1801 MOS_MIGRATED_REVID=100476467
* Add Skylark rules for groovy_library and groovy_binary.Gravatar Erik Kuefler2015-08-12
| | | | | | | | | | | This is a slightly cleaned-up version of the rules from https://github.com/ekuefler/bazel-groovy, which my team has been using for a few months. I'll add the test rules from there separately. -- Change-Id: I07b5270bfdada5244ed82dee617b4997855747d8 Reviewed-on: https://bazel-review.googlesource.com/#/c/1590/ MOS_MIGRATED_REVID=100476149
* docker_build: workaround the lack of LZMA in python 2.7Gravatar Damien Martin-Guillerez2015-08-12
| | | | | | | | | | | | | | | Some debs file actually does use the LZMA compression and reading that format requires python 3. Backports of LZMA to python 2 are using native deps which might be hard for the user to setup and our support of python 3 is not really functional (it needs 2to3 to use gflags for instance). Until we fix Bazel's python 3 support, we shell out to xzcat for supporting LZMA compressed file. Also added test for the archive library. These tests shows some wrong handling in the AR format padding, fixed. -- MOS_MIGRATED_REVID=100474498
* docker_build: fix JSON rewriting when some fields are nullGravatar Damien Martin-Guillerez2015-08-10
| | | | | | | | | Image generated by docker build might put "null" as entry value in the JSON metadata. Ignore those value when doing the deep copy to avoid error on assigning to "NoneType". -- MOS_MIGRATED_REVID=100145909
* docker_build: Fix archive's AR format alignmentGravatar Damien Martin-Guillerez2015-08-10
| | | | | -- MOS_MIGRATED_REVID=100125974
* Remove the Skylark data configuration accessor and the only repositoryGravatar Greg Estren2015-08-05
| | | | | | | | | | | use of that accessor. Data configuration access here complicates the first phase of dynamic configuration support. And the current use doesn't specifically need this configuration. We can always add support back in if there's demand. -- MOS_MIGRATED_REVID=99938987
* docker_build: Fix double slashes in path resolutionGravatar Damien Martin-Guillerez2015-08-04
| | | | | | | | Before the leading slash were not striped before appending the path prefix, leading to a double slash at that point. -- MOS_MIGRATED_REVID=99807605
* Fix docker_build file path when file is generatedGravatar Damien Martin-Guillerez2015-08-04
| | | | | | | | | | | | | | | If the file is generated, by a genrule for instance, then the stripping of the prefix was incorrect because the used path was containing 'bazel-out/...' prefix. This change moved the prefix stripping to the Skylark rule so we can use "short_path". Also fix the test paths. Tested by bazel test //tools/build_defs/docker:build_test. -- Change-Id: Ia3eb98268505002bade1f6b0dd916e1a9767a530 Reviewed-on: https://bazel-review.googlesource.com/1770 MOS_MIGRATED_REVID=99710676
* Add glue logic to make the dex_shards attribute of android_binary work in Bazel.Gravatar Lukacs Berki2015-08-04
| | | | | -- MOS_MIGRATED_REVID=99567637
* Add "warm" starting to mobile-install.Gravatar Googler2015-08-04
| | | | | | | | | | | | | | | | | | This introduces a new way to stop applications when deploying incremental changes that saves the current app state for the next run. This allows things like the back stack, and View/Fragment/Activity saved state to be restored when the app next launches, making it easier to quickly iterate on code changes. It adds a "--start" flag to mobile-install that replaces "--start_app". --start accepts an argument describing the mode: no, cold, or warm. "no" is now the equivalent of "--nostart_app", "cold" is the equivalent of "--start_app", and "warm" is the new start mode. Note that this is only useful with incremental installs, as Android clears out any previously saved state when an APK is replaced. -- MOS_MIGRATED_REVID=99508790
* Restore Rust examples and add Rust rule tests that were inadvertently excluded.Gravatar David Chen2015-07-30
| | | | | -- MOS_MIGRATED_REVID=99464781
* Always re-install all native libraries on non-incremental installations.Gravatar Lukacs Berki2015-07-30
| | | | | | | This makes things a bit more robust. -- MOS_MIGRATED_REVID=99464712
* Introduce trivial rust testsGravatar Francois-Rene Rideau2015-07-29
| | | | | -- MOS_MIGRATED_REVID=99378104
* 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
* Create a binary packager for BazelGravatar Damien Martin-Guillerez2015-07-29
| | | | | | | | | | | | | | | | | This packager can be called by the release scripts to generate a self-extractable bash installer for Bazel. This script was tested by hand as extra arguments can be specified to change the default install of Bazel (default is system-wide and with the argument you can make a user install). This will be the only packager for now since GitHub is offering the possibility to download the source tree as a ZIP. Hopefully, before the end of the year we could build some more package kind. -- Change-Id: I1a2d0cd39b9e4adcaf6c984ec4c855a04213b61a Reviewed-on: https://bazel-review.googlesource.com/1581 MOS_MIGRATED_REVID=99258828
* Make the Android incremental installer script support incrementally ↵Gravatar Lukacs Berki2015-07-29
| | | | | | | installing native libraries. -- MOS_MIGRATED_REVID=99257598
* Docker rules: fallback to reading the repositories file when top is absentGravatar Damien Martin-Guillerez2015-07-27
| | | | | | | | | | Docker pulled image do not have the 'top' file but does have a one entry repositories files. To enable using them as input to the docker_build rule, we read the repositories file if no 'top' file is present and use the first declared image as the parent name. -- MOS_MIGRATED_REVID=99181235
* s/the the/the/Gravatar Googler2015-07-27
| | | | | | | s/package/packages/ -- MOS_MIGRATED_REVID=99175780
* Move BUILD file for Rust to tools/build_rules/rust.Gravatar David Chen2015-07-27
| | | | | -- MOS_MIGRATED_REVID=99163435
* Add tools dependencies for Rust rules.Gravatar David Chen2015-07-27
| | | | | | | TESTED=manual -- MOS_MIGRATED_REVID=99161344
* Add docker_build for building Docker image using BazelGravatar Damien Martin-Guillerez2015-07-27
| | | | | | | | docker_build is a Skylark rule that describe a docker image. You can replace Dockerfile by a docker_build to use Bazel's incrementality model. -- MOS_MIGRATED_REVID=99160762
* Skylark: Remove flags in attributesGravatar Laurent Le Brun2015-07-27
| | | | | -- MOS_MIGRATED_REVID=99025960
* Remove implicit .a and .so outputs from Bazel.Gravatar Ulf Adams2015-07-27
| | | | | | | | | Change CcLibrary to work both with and without declared outputs. This fixed #61 - header-only libraries now compile on MacOS. -- MOS_MIGRATED_REVID=99007746
* Fix symlink test flagGravatar Kristina Chodorow2015-07-21
| | | | | | | -l isn't actually an option test takes. -- MOS_MIGRATED_REVID=98731906
* Improvements to skylark testsGravatar Francois-Rene Rideau2015-07-21
| | | | | | | | | | Debug the rule_test generates feature. Implement the rule_test provides feature, using regexp on the provider repr. Also, add docstrings and reformat to comply with Google python style guide. -- MOS_MIGRATED_REVID=98687673
* Add a couple of flags to the CROSSTOOL file, especially for -c opt.Gravatar Ulf Adams2015-07-17
| | | | | | | | | Fixes #99. -- Change-Id: I9b81be7f8efc7f7e57b458fe91cfbabcaaee419d Reviewed-on: https://bazel-review.googlesource.com/#/c/1632 MOS_MIGRATED_REVID=98472498
* Fix missing tool target in tools/objcGravatar Damien Martin-Guillerez2015-07-17
| | | | | | | Tested by patched in my local Bazel. -- MOS_MIGRATED_REVID=98401341
* Rename the "unobfuscated" compilation level to "whitespace_only" to match ↵Gravatar Kamil Jiwa2015-07-13
| | | | | | | names used with Closure Compiler -- MOS_MIGRATED_REVID=98076079
* Exclude third-party tests from closure_library js_library.Gravatar Kamil Jiwa2015-07-10
| | | | | -- MOS_MIGRATED_REVID=97814117
* Adds gen jar and manifest proto outputs.Gravatar Alex Humesky2015-07-10
| | | | | | | Adds a jar output to Java and Android rules which contains the class files for source files generated from Java annotation processors. For a java_binary foo, the jar will be foo-gen.jar, and for a java_library foo the jar will be libfoo-gen.jar, and similarly for Android. Also adds a binary serialized proto manifest file output to Java and Android rules which describes the contents of the output class jar of those rules, which is used to create the -gen.jar. See src/main/protobuf/java_compilation.proto. -- MOS_MIGRATED_REVID=97793715
* Global cleanup change.Gravatar Googler2015-07-10
| | | | | -- MOS_MIGRATED_REVID=97780353
* Add a bazel.rc that makes it possible to use --config=android instead of ↵Gravatar Lukacs Berki2015-07-08
| | | | | | | | | --crosstool_top=@androidndk//:toolchain --host_crosstool_top=//tools/cpp:toolchain. I feel dirty. -- MOS_MIGRATED_REVID=97769925
* Added a deploy target to AppEngine supportGravatar Damien Martin-Guillerez2015-07-08
| | | | | | | | This target enable deploying to AppEngine directly. This change also use template_action instead of file_action for clarity. -- MOS_MIGRATED_REVID=97763347
* Introduce hook to BazelWorkspaceStatusModule that calls externalGravatar Ming Zhao2015-07-08
| | | | | | | | | | | | | script(controled by workspace_status_command option, default to tools/buildstamp/get_workspace_status) to emit addtional workspace information to stable-status.txt. This should address #216. -- Change-Id: Iffb06482489f0d55393e27b0764e6e127fedbc20 Reviewed-on: https://bazel-review.git.corp.google.com/#/c/1550 MOS_MIGRATED_REVID=97678871
* Basic dashboard for build resultsGravatar Kristina Chodorow2015-07-07
| | | | | -- MOS_MIGRATED_REVID=97675174
* Add support for externs files.Gravatar Kamil Jiwa2015-07-02
| | | | | -- MOS_MIGRATED_REVID=97334355
* Add a CSS library target for Closure Library CSS files.Gravatar Kamil Jiwa2015-07-01
| | | | | -- MOS_MIGRATED_REVID=97258889
* Make //src/test/shell:bazel_test work again.Gravatar Lukacs Berki2015-06-30
| | | | | | | This stubs out all Android support, but that's okay, because in order to test Android stuff, we need a way to get the NDK and the SDK somehow, which we don't know yet how to do. -- MOS_MIGRATED_REVID=97222940
* The final CL in getting Android support to work: add resources_processor.sh ↵Gravatar Lukacs Berki2015-06-30
| | | | | | | and aar_generator.sh to the tools directory and make stub applications proper android_library rules instead of stub filegroups. -- MOS_MIGRATED_REVID=97206853
* Add basic support for building Java AppEngine WARGravatar Damien Martin-Guillerez2015-06-29
| | | | | | | | This support is based on kchodorow@'s genrule to build the Bazel's dashboard AppEngine and was tested with it. -- MOS_MIGRATED_REVID=97135934
* Open source AarGeneratorAction and AndroidResourceProcessingAction.Gravatar Andrew Pellegrini2015-06-26
| | | | | -- MOS_MIGRATED_REVID=96883818
* Fixes typos in Swift tool BUILD filesGravatar Dmitry Shevchenko2015-06-25
| | | | | | | Fixes #260 -- MOS_MIGRATED_REVID=96806898
* Make use of the jvm_opts from java_toolchainGravatar Damien Martin-Guillerez2015-06-24
| | | | | | | -client is now the only default JVM options of JavaBuilder -- MOS_MIGRATED_REVID=96762330
* Add Closure JS rules to Bazel.Gravatar Kamil Jiwa2015-06-23
| | | | | -- MOS_MIGRATED_REVID=96406988
* Trivial skylark testingGravatar Francois-Rene Rideau2015-06-19
| | | | | -- MOS_MIGRATED_REVID=96404668
* Lower the requirement to Java 7Gravatar Damien Martin-Guillerez2015-06-19
| | | | | | | | | Now that we are using the error-prone javac, there is no need to impose Java 8. However, because some of our tests are targetting Java 8, developer should still use a JDK 8 to tests. -- MOS_MIGRATED_REVID=96400914
* Move the Error Prone plugin into BazelGravatar Liam Miller-Cushon2015-06-19
| | | | | -- MOS_MIGRATED_REVID=96365813
* Add initial Rust rules to Bazel.Gravatar David Chen2015-06-18
| | | | | | | | | | | | | Todo: * Implement rust_bench_test for running benchmarks * Enable rust_test to depend solely on a rust_library (since many projects intermix #[test] methods in lib source). * Improve error checking and handling and prevent rust_binary from directly depending on cc_library. * Implement rust_doc for generating rustdoc. -- MOS_MIGRATED_REVID=96297772
* 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 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