aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
Commit message (Collapse)AuthorAge
* 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
* 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
* Use JDK's jar instead on relying on the one on the path in Java Skylark rules.Gravatar Damien Martin-Guillerez2015-06-15
| | | | | | | | | The current rule was breaking if jar was not present on the path. Fixes #245 -- MOS_MIGRATED_REVID=95991168
* Improve platform and CPU detection, use the correct protoc binary for the ↵Gravatar Philipp Wollermann2015-06-12
| | | | | | | | | running system. Tested on OS X 10.10, Debian 8.1 (x86_64) and Debian 8.1 (i686). -- MOS_MIGRATED_REVID=95819163
* Various odds and ends in preparation for adding the Android rules to ↵Gravatar Lukacs Berki2015-06-12
| | | | | | | | | | | | BazelRuleClassProvider: - Add stub targets to tools/android/BUILD - Make Constants.ANDROID_DEFAULT_SDK non-constant so that the classfile can be replaced in the .jar - Make AndroidTools complain if --android_sdk does not point to an android_sdk rule. - Make the default visibility in the BUILD file generated by android_sdk_repository public -- MOS_MIGRATED_REVID=95816158
* Remove tools/jdk/jdk symbolic link creationGravatar Damien Martin-Guillerez2015-06-11
| | | | | | | | | | Skylark rules now depends completely on the external repository to access the JDK tooling. -- Change-Id: I48d461524d63d556bcd4af49f6ba2aecf1ed7068 Reviewed-on: https://bazel-review.googlesource.com/#/c/1500/ MOS_MIGRATED_REVID=95720688
* Change the way --flagfile is implemented.Gravatar Lukacs Berki2015-06-11
| | | | | | | | | I noticed this while testing --split_apk: sometimes APKs would be duplicated on the command line, and simply removing "argv" from "FLAGS(sys.argv + [line.strip()...)" in line 558 would sometimes cause a --adb_arg argument to be lost. This seems to work for all cases. -- MOS_MIGRATED_REVID=95715369
* Support --run_under in Bazel.Gravatar Han-Wen Nienhuys2015-06-10
| | | | | | | Fixes #206. -- MOS_MIGRATED_REVID=95525127
* Document why we provide LD but largely ignore it.Gravatar Han-Wen Nienhuys2015-06-09
| | | | | -- MOS_MIGRATED_REVID=95506560
* Bootstrapping tools using BazelGravatar Damien Martin-Guillerez2015-06-05
| | | | | | | | | | | | Added target to use java skylark rules to bootstrap JavaBuilder and SingleJar. Uses thoses target to bootstrap JavaBuilder and SingleJar and compiles all tools using Bazel. -- Change-Id: I5142917c8b31e04015fbab89382df36b4892d8c6 Reviewed-on: https://bazel-review.googlesource.com/#/c/1451/ MOS_MIGRATED_REVID=95281092
* Print TestLogHelper.HEADER_DELIMITER from test-setup.sh.Gravatar Han-Wen Nienhuys2015-06-05
| | | | | | | | | | This magic header marks where --test_output=streamed should start printing. Fixes #203. -- MOS_MIGRATED_REVID=95105573
* Simplify genproto.bzl.Gravatar Han-Wen Nienhuys2015-06-02
| | | | | | | | | | | | | | | | Generate a srcjar artifact, and use native.java_library to emit the actual jar file. Post-review modifications: - Formatted genproto.bzl - Use //external:jar instead of relying on PATH - Make proto library a java_import instead of a filegroup in test setup. -- Change-Id: I005f801f09439bbca43e483ad4a47da4588fea94 Reviewed-on: https://bazel-review.googlesource.com/1362 MOS_MIGRATED_REVID=94914935
* Adds tools for building Android apps.Gravatar Alex Humesky2015-05-27
| | | | | -- MOS_MIGRATED_REVID=94515805
* Adds tools for installing Android apps.Gravatar Alex Humesky2015-05-22
| | | | | -- MOS_MIGRATED_REVID=94198797
* Skylark cleanup: ctx.target(s) is deprecated, stop using itGravatar Laurent Le Brun2015-05-21
| | | | | | | ctx.attr gives the same result. -- MOS_MIGRATED_REVID=94077958
* Add a --javac_extdir flag to enable configuring the javac -extdirs flagGravatar Liam Miller-Cushon2015-05-21
| | | | | | | | | | | | | The -extdirs flag sets a search path to the directory containing the JDK's extension classes, and should always be set explicitly when cross-compiling. If it is unset, the ext directory of the host JDK will be used instead. javac requires that -extdirs be a list of directories. The blaze --javac_extdir flag takes the label of a filegroup with the 'path' attribute set, and passes the directory path through to JavaBuilder. -- MOS_MIGRATED_REVID=94001278
* Add -undefined dynamic_lookup to OSX linker optionsGravatar Damien Martin-Guillerez2015-05-18
| | | | | | | | | Fixes #67 -- Change-Id: I0d52bcf6f8d5011af545e3d861914fae09a26e42 Reviewed-on: https://bazel-review.googlesource.com/1340 MOS_MIGRATED_REVID=93713804
* Add a genrule that generates a dummy J2ObjC dead code removal script in ↵Gravatar Googler2015-05-15
| | | | | | | tools/objc/BUILD. -- MOS_MIGRATED_REVID=93447039
* Add ios_test.sh.bazel_templateGravatar Daniel Wagner-Hall2015-05-04
| | | | | -- MOS_MIGRATED_REVID=92725547
* Update ios_runner template to dynamically receive optionsGravatar David Santiago2015-04-30
| | | | | | | | | | | The SDK_VERSION and SIM_DEVICE variables in the runner script had hard-coded values. This change updates them to be set by the template expansion, so they can be controlled by the command-line options. -- Change-Id: I4a299ee781da19546eb137f115b8c174051ceb5f MOS_MIGRATED_REVID=92405720
* Update ios_runner template to dynamically receive optionsGravatar David Santiago2015-04-29
| | | | | | | | | | | | | | The SDK_VERSION and SIM_DEVICE variables in the runner script had hard-coded values. This change updates them to be set by the template expansion, so they can be controlled by the command-line options. -- MOS_MIGRATED_REVID=92278475 -- Change-Id: I4a299ee781da19546eb137f115b8c174051ceb5f MOS_MIGRATED_REVID=92356562
* Rollback of commit eb82a1d755396ed1b885af4efb809b4428d4d3d7.Gravatar Ulf Adams2015-04-29
| | | | | | | | | | | | | | | | | | *** Reason for rollback *** The double quotes are actually incorrect, because the strings we pass in are already single quoted. *** Original change description *** Update ios_runner template to dynamically receive options The SDK_VERSION and SIM_DEVICE variables in the runner script had hard-coded values. This change updates them to be set by the template expansion, so they can be controlled by the command-line options. -- MOS_MIGRATED_REVID=92337057
* Update ios_runner template to dynamically receive optionsGravatar David Santiago2015-04-28
| | | | | | | | | | | The SDK_VERSION and SIM_DEVICE variables in the runner script had hard-coded values. This change updates them to be set by the template expansion, so they can be controlled by the command-line options. -- Change-Id: I4a299ee781da19546eb137f115b8c174051ceb5f MOS_MIGRATED_REVID=92278475
* Added py_test rule to BazelGravatar Damien Martin-Guillerez2015-04-17
| | | | | | | | | | | | | | py_test rule enable to use a test written in Python. A py_test is basically a py_binary that returns a non null on failure. Extraneous support is need to have nice output (see //src/test/shell/unittest.bash for the kind of support neeeded). Actually the py_test code was already there but it was just missing the necessary glue code. Also added an integration test for py_* rules in Bazel. -- MOS_MIGRATED_REVID=91407748
* Add [/System]/Library/Frameworks to the Darwin toolchain definition.Gravatar Han-Wen Nienhuys2015-04-15
| | | | | | | | | | | | | | | | | | | | | | According to my Mac, this is the search path: Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) Target: x86_64-apple-darwin13.4.0 #include "..." search starts here: #include <...> search starts here: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1 /usr/local/include /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/include /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include /usr/include /System/Library/Frameworks (framework directory) /Library/Frameworks (framework directory) Fixes #85. -- MOS_MIGRATED_REVID=91194177
* Document crosstool_top a little better.Gravatar Han-Wen Nienhuys2015-04-08
| | | | | -- MOS_MIGRATED_REVID=90612869
* Remove unnecessary -B flag from linker command line.Gravatar Han-Wen Nienhuys2015-04-08
| | | | | | | | | | | Relative to the last try, add -B to Linux CROSSTOOL entry, and test the result on OSX and Linux. This should fix working with GCC cross compilers installed into /usr/bin/ next to the host ld. -- MOS_MIGRATED_REVID=90605463
* Fix issue #82Gravatar Ethan Rublee2015-03-31
| | | | | | | | | | This is the patch which fixes the bug reported in #82 https://github.com/google/bazel/issues/82 Change-Id: Ia007b37a3c6156d4373bac24b1776e62d09daa57 -- MOS_MIGRATED_REVID=89992365
* Make Skylark genproto deterministicGravatar Damien Martin-Guillerez2015-03-31
| | | | | | | | Using JavaBuilder instead of the JDK makes generated jar files timestampless. -- MOS_MIGRATED_REVID=89950774
* Make tests work even in the top level directory :)Gravatar Gunther Noack2015-03-30
| | | | | -- MOS_MIGRATED_REVID=89858590
* Make Python rules in Bazel actually work.Gravatar Lukacs Berki2015-03-30
| | | | | | | In particular: add a BazelPythonSemantics implementation and the respective RuleConfiguredTarget factories, rule class definitions and hook them up with BazelRuleClassProvider. Add implicit dependencies (2to3 is just a stub script for now that always fails) and a tiny exampe. -- MOS_MIGRATED_REVID=89691827
* Use a wrapper around gcc on OSX to simulate rpathGravatar Damien Martin-Guillerez2015-03-25
| | | | | | | | | | | OS X does not have rpath so binary fails when not executing from the good path. This wrapper rewrite the path after the compilation to fix that behavior. Fixes #46 -- MOS_MIGRATED_REVID=89527942
* Remove experimental Go support until we have a solution which fits the 'go' ↵Gravatar Han-Wen Nienhuys2015-03-25
| | | | | | | tool conventions better. -- MOS_MIGRATED_REVID=89510837
* Add /usr/local/include to C++ CROSSTOOL for darwinGravatar Damien Martin-Guillerez2015-03-25
| | | | | | | Fixes #51 -- MOS_MIGRATED_REVID=89487705
* Open-source Bazel integration testsGravatar Damien Martin-Guillerez2015-03-25
| | | | | | | | | It is a first batch of integration tests for Bazel. They tests some basic behaviors and nominal cases of Bazel rules (especially they tests the behavior of the examples provided in //examples). -- MOS_MIGRATED_REVID=89440074
* Replaced test-setup.sh shebang to use /bin/bashGravatar Damien Martin-Guillerez2015-03-24
| | | | | | | | /bin/sh was making OS X behave strange (under OS X /bin/sh is a bash configured as it was an old school shell). -- MOS_MIGRATED_REVID=89300270
* Fixed Skylark python rule under OS XGravatar Damien Martin-Guillerez2015-03-23
| | | | | | | | find on OS X does not support not provided a path argument. Python example was failing because of it. -- MOS_MIGRATED_REVID=89287951
* Description redacted.Gravatar Daniel Wagner-Hall2015-03-23
| | | | | -- MOS_MIGRATED_REVID=89161226
* Add compilation of objc helper tools to compile.shGravatar Daniel Wagner-Hall2015-03-23
| | | | | -- MOS_MIGRATED_REVID=89147775
* Genrules "set -euo pipefail" by default.Gravatar Laszlo Csomor2015-03-20
| | | | | -- MOS_MIGRATED_REVID=89118665
* Open-source unittest.bashGravatar Damien Martin-Guillerez2015-03-18
| | | | | | | | | This is part of the shell test infrastructure for Bazel. It creates test suites in Bazel shell. Handling the test ouputs efficiently for making test summaries. -- MOS_MIGRATED_REVID=88929067
* Introduce objc tools, including dummy.Gravatar Peter Schmitt2015-03-18
| | | | | -- MOS_MIGRATED_REVID=88742502
* Make JDK not need tools/jdk/jdk symlinkedGravatar Kristina Chodorow2015-03-18
| | | | | -- MOS_MIGRATED_REVID=88742425
* Defaulted cpu to the host cpuGravatar Damien Martin-Guillerez2015-03-13
| | | | | | | | This should remove the needs for the --cpu=darwin flag under darwin. Bazel build are now using the host cpu too. This commit also fix the host cpu detection. The host cpu detection was too late and and some corner case was not really working with configurable attributes. It is now done as the default value for the --host_cpu flag. -- MOS_MIGRATED_REVID=88427551
* Fix forgotten assignment.Gravatar Han-Wen Nienhuys2015-03-11
| | | | | -- MOS_MIGRATED_REVID=88350250
* Productionize Bazel's skylark go rules.Gravatar Han-Wen Nienhuys2015-03-11
| | | | | -- MOS_MIGRATED_REVID=88232883