aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
Commit message (Collapse)AuthorAge
* Tweak error detection in incremental_install.py .Gravatar Lukacs Berki2015-12-16
| | | | | | | The old one failed to work with Android N. -- MOS_MIGRATED_REVID=110335879
* Source iOS memleak plugin stub from bazel_tools.Gravatar Peter Schmitt2015-12-16
| | | | | -- MOS_MIGRATED_REVID=110280939
* Make Debian package maintainer scripts executable.Gravatar Piotr Sikora2015-12-15
| | | | | | | | This is required per official documentation: https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html -- MOS_MIGRATED_REVID=110235045
* Make the Go rules depend on the Go toolchain targets in the main repository.Gravatar Lukacs Berki2015-12-15
| | | | | | | This will be broken when we remove tools/ from the base workspace, but for now, it allows one to use Go rules in external repositories. -- MOS_MIGRATED_REVID=110150654
* Improve scalac: use ijar and download scalacGravatar oscar2015-12-08
| | | | | | | -- Change-Id: I22fb6cc5a37f5c6c216dc3abbc915d1be3fd5e6b Reviewed-on: https://bazel-review.googlesource.com/#/c/2410/ MOS_MIGRATED_REVID=109717610
* Make "//..." do not find packages in the base workspace.Gravatar Lukacs Berki2015-12-08
| | | | | | | | | This is a temporary hack until the base workspace goes away. Fixes #652. -- MOS_MIGRATED_REVID=109677574
* Remove deleted WORKSPACE.go-toolchain from srcs.Gravatar David Chen2015-12-07
| | | | | | | TESTED: bazel test //src/test/... -- MOS_MIGRATED_REVID=109481372
* Fix a bug in which the main process of j2objc wrapper blocks indefinitely if ↵Gravatar Rumou Duan2015-12-04
| | | | | | | spawned threads fail. -- MOS_MIGRATED_REVID=109423785
* docker_build: Properly handle / as data_pathGravatar Kamal Marhubi2015-12-04
| | | | | | | | | | | | | | | | | | | | The handling in _compute_data_path would incorrectly result in an empty strip_prefix being passed to _dest_path. The outcome was all files would end up at the top of directory, instead of nested according to the repository structure. This change brings the behavior in line with the documentation, which states: > This path can be absolute from the workspace root if starting with a > `/` or relative to the rule's directory. Fixes https://github.com/bazelbuild/bazel/issues/677 -- Change-Id: Ifdab97ed0e851cf6cabc7bd3206343766861b725 Reviewed-on: https://bazel-review.googlesource.com/#/c/2480 MOS_MIGRATED_REVID=109418486
* Use load() to add external repositories for Skylark rules.Gravatar David Chen2015-12-04
| | | | | -- MOS_MIGRATED_REVID=109405753
* ASwB aspect: parse java packages during executionGravatar Googler2015-12-03
| | | | | -- MOS_MIGRATED_REVID=109305952
* Drop intermediate zip archive from py_binary outputGravatar Benjamin Staffin2015-12-03
| | | | | | | | | | | | | | | If you feed a py_binary into a pkg_tar to a pkg_deb, you won't want to have the deploy_zip intermediate artifact included in the resulting package. I'm think this change keeps it as an expected byproduct of the build, but drops it from the list of files produced by the y_binary rule. Also trimmed a superfluous chmod from the final concat action. -- Change-Id: Ib2bc05c2e43c7329bd9d92ea034f0c613f7fcbc6 Reviewed-on: https://bazel-review.googlesource.com/#/c/2280 MOS_MIGRATED_REVID=109290774
* Explicitly mention that 'manual' test targets are not matched by wildcard ↵Gravatar Nathan Harmata2015-12-03
| | | | | | | target patterns and are thus neither built nor tested by invocations like "blaze test //my/project/..." -- MOS_MIGRATED_REVID=109251573
* Fix for I82f1d300470ff69e9d70c3008cf569d9ec94764dGravatar Brian Silverman2015-12-02
| | | | | | | -- Change-Id: Ibf72c15940024df15270731cc919264adbcd0d75 Reviewed-on: https://bazel-review.googlesource.com/#/c/2430/ MOS_MIGRATED_REVID=109236369
* [rust] Use load() to add external repositories.Gravatar David Chen2015-12-02
| | | | | -- MOS_MIGRATED_REVID=109195094
* Update Rust new_http_archive rules to use 1.4 and strip_prefixGravatar Kamal Marhubi2015-12-02
| | | | | | | | | | | | | | | | | | | | | | The lack of strip_prefix lead to the files not being found with the supplied rust.BUILD file. Tested: - created simple repository with rust_library and rust_binary targets as outlined in //tools/build_rules/rust/README.md - (workaround) copied //tools/build_rules/rust/rust.BUILD into workspace as suggested by @kchodorow: https://github.com/bazelbuild/bazel/issues/488#issuecomment-143754576 - verified that library and binary build, and that binary runs correctly RELNOTES: Update Rust to 1.4 -- Change-Id: Ic2c275395ca245179e35e723faf0b9d13120fa1f Reviewed-on: https://bazel-review.googlesource.com/#/c/2382/ MOS_MIGRATED_REVID=109187409
* Add missing comma.Gravatar Han-Wen Nienhuys2015-12-01
| | | | | -- MOS_MIGRATED_REVID=109113923
* Processes runfiles for libraries in addition to binaries. The behaviorGravatar Jake Voytko2015-12-01
| | | | | | | | | now matches the documented API. -- Change-Id: I05738cc7fc60164e19e4c13822b37d032155cb06 Reviewed-on: https://bazel-review.git.corp.google.com/#/c/2380 MOS_MIGRATED_REVID=109099720
* Make go test rule run tests from the directory of the source fileGravatar David Santiago2015-12-01
| | | | | | | -- Change-Id: I82f1d300470ff69e9d70c3008cf569d9ec94764d Reviewed-on: https://bazel-review.git.corp.google.com/#/c/2392 MOS_MIGRATED_REVID=109073649
* Go rules now set GOOS and GOARCH environment variablesGravatar David Santiago2015-12-01
| | | | | | | | | based on Bazel's "cpu" attribute. -- Change-Id: I4a625c206b2ec424a9d9eab2d20ec29447b4d2e1 Reviewed-on: https://bazel-review.git.corp.google.com/#/c/2266 MOS_MIGRATED_REVID=109064353
* Fix pkg_tar docs.Gravatar Warren Turkal2015-11-30
| | | | | | | | | | | | | | There is no tars arg. There is a deps arg that appears to work like the tars arg is described in the docs. There is also no debs arg. Signed-off-by: Warren Turkal <wt@penguintechs.org> -- Change-Id: If11e8bcae33b91c41eb11e90fa479becbb36d93c Reviewed-on: https://bazel-review.googlesource.com/2393 MOS_MIGRATED_REVID=108962257
* Refactor Skylark rules and attributes in preparation to Skylark aspects.Gravatar Dmitry Lomov2015-11-26
| | | | | | | | | | | 1. attr.<type> functions return a wrapper object instead of Attribute.Builder dierctly. 2. RuleClass is created once per the life-time of RuleFunction, during export 3. Attributes are added to the RuleClass at exporting. -- MOS_MIGRATED_REVID=108774581
* Fixes the closure binary inputs to include externsGravatar Jake Voytko2015-11-25
| | | | | | | | | The closure compiler was previously not finding externs on Linux, but was on OSX -- Change-Id: Id0830889ba431196fe6f4ce012a97c8069856ceb Reviewed-on: https://bazel-review.googlesource.com/#/c/2381 MOS_MIGRATED_REVID=108637267
* [rust] Fix bugs in Rust test rules.Gravatar David Chen2015-11-25
| | | | | | | | | | | | * Fix conflicting .deps directory creation by rust_test rule * Fix dependency symlinking in generated rust_doc_test scripts Fixes #572 TESTED: bazel test //examples/rust/... -- MOS_MIGRATED_REVID=108617330
* Generate .changes files to go along with .deb packagesGravatar Benjamin Staffin2015-11-24
| | | | | | | | | | These are quite handy for integration with apt repository management tooling such as reprepro. -- Change-Id: I865fba846b2c0690ddcc558484462dd3c3e62373 Reviewed-on: https://bazel-review.googlesource.com/#/c/2291/4 MOS_MIGRATED_REVID=108603643
* Generate proper filenames for .deb packagesGravatar Benjamin Staffin2015-11-24
| | | | | | | | | | | | | Various tools will break if deb filenames don't follow the right format. Retains a symlink from the <rulename>.deb to the new filename for compatibility. -- Change-Id: Ib8ba5b61fcbfe95469f0d9296a932b2a468bc4c2 Reviewed-on: https://bazel-review.googlesource.com/#/c/2290 MOS_MIGRATED_REVID=108590335
* Fix leftovers from copy/paste.Gravatar Nathan Harmata2015-11-20
| | | | | -- MOS_MIGRATED_REVID=108326014
* Rollback of commit 07475c7b3812d6194602213a69e6e9f70643b32a.Gravatar Damien Martin-Guillerez2015-11-20
| | | | | | | | | | | | *** Reason for rollback *** Roll-forward with fixes: - Tests were missing for xzcat - xz output was not supported - bz2 input was missing declaration -- MOS_MIGRATED_REVID=108325435
* Append '/' to the root prefix when missing for tar mergingGravatar Damien Martin-Guillerez2015-11-20
| | | | | | | Fixes #624. -- MOS_MIGRATED_REVID=108259228
* Update go_binary and go_test rules to copy files in the "data"Gravatar David Santiago2015-11-18
| | | | | | | | | | attribute to runfiles. Add shell-based unit test for runfile support by these rules. -- Change-Id: Ia97278059d104b9728d53aa75c0987fc3c47b640 Reviewed-on: https://bazel-review.git.corp.google.com/#/c/2265/ MOS_MIGRATED_REVID=108139011
* Tweak the bootstrapping and build process so that the prebuilt tools under ↵Gravatar Lukacs Berki2015-11-18
| | | | | | | | | tools/jdk are not necessary anymore. Fixes #508. -- MOS_MIGRATED_REVID=108123264
* Rollback of commit 976211dd45215a6146e0ab312186de0eaa955a75.Gravatar Googler2015-11-18
| | | | | | | | | | | | | | | | | *** Reason for rollback *** broke Speckle and Dataflow *** Original change description *** [docker] Print a clearer message when xzcat cannot be found and is needed Also use the default shell env for docker deb files. Fixes #611. -- MOS_MIGRATED_REVID=108105646
* When computing the transitive config fragments required by a target,Gravatar Greg Estren2015-11-18
| | | | | | | | | | | | | | | include Skylark-declared requirements (which use names instead of fragment class, e.g. "cpp" vs. CppConfiguration.class). Also add "cpp" to Skylark java_* definitions, since java_* rules are used to trigger LipoDataTransitions and thus expected to have a CppConfiguration fragment. Test coverage: skylark.BindTest with --experimental_dynamic_configs=1. (and other Skylark tests). -- MOS_MIGRATED_REVID=108041244
* More fixing breakage of the go rule tests.Gravatar Damien Martin-Guillerez2015-11-18
| | | | | | | The test itself is still failing. I don't understand why (seems to be the fixture that is wrong). -- MOS_MIGRATED_REVID=108038743
* [docker] Print a clearer message when xzcat cannot be found and is neededGravatar Damien Martin-Guillerez2015-11-18
| | | | | | | | | Also use the default shell env for docker deb files. Fixes #611. -- MOS_MIGRATED_REVID=108035989
* Fix breakage caused by visibility.Gravatar Damien Martin-Guillerez2015-11-17
| | | | | | | See build http://ci.bazel.io/job/Bazel/221/ -- MOS_MIGRATED_REVID=108032099
* Flesh out documentation for .NET rules. Minor formatting changes toGravatar David Z. Chen2015-11-17
| | | | | | | | | csharp.bzl. -- Change-Id: Ie2a98cafdd76a7d8994f25d280d18ec848732aaa Reviewed-on: https://bazel-review.googlesource.com/#/c/2320/ MOS_MIGRATED_REVID=107987176
* Apply the docker_build directory option to tars as well as files.Gravatar Googler2015-11-17
| | | | | | | | * It enables tar packages to be placed at "/usr/local", say, and removes the need for the current workaround of repackaging the original tars. -- MOS_MIGRATED_REVID=107983091
* [docker] Fixes parsing of data_path for './'Gravatar Damien Martin-Guillerez2015-11-17
| | | | | | | Fixes #604. -- MOS_MIGRATED_REVID=107972542
* Add missing load statement in docker_build documentationGravatar Damien Martin-Guillerez2015-11-17
| | | | | | | Fixes #603. -- MOS_MIGRATED_REVID=107959662
* Allow udeb as input of docker debsGravatar Damien Martin-Guillerez2015-11-17
| | | | | | | Fixes #618. -- MOS_MIGRATED_REVID=107957576
* Add srcs for Go rules.Gravatar Han-Wen Nienhuys2015-11-17
| | | | | -- MOS_MIGRATED_REVID=107939664
* Remove android:hasCode from AndroidManifest.xml in stubify_manifest.py.Gravatar Lukacs Berki2015-11-13
| | | | | | | | | Stubifying an app always injects the stub application, so the incremental APK will have code in it even if the original app didn't. This came about from #595 (it wouldn't have been reported if we did this) -- MOS_MIGRATED_REVID=107781748
* Fix some minor errors in the Groovy READMEGravatar Erik Kuefler2015-11-13
| | | | | | | -- Change-Id: Ibe3978cd85749f9dadbdfc6e0469a25325bd1b69 Reviewed-on: https://bazel-review.googlesource.com/#/c/2263/ MOS_MIGRATED_REVID=107689272
* Make groovy_binary implicitly depend on the groovy core language jar.Gravatar Erik Kuefler2015-11-13
| | | | | | | | | | | | It's not obvious that this is necessary when writing a simple Groovy class that doesn't directly reference anything from the Groovy runtime, but failure to include it will result in a mysterious failure to find the main class. This can trip people up who are writing simple Hello World apps. -- Change-Id: I8064e537293fa9218efa3ce351dbd693868d0242 Reviewed-on: https://bazel-review.googlesource.com/#/c/2264/ MOS_MIGRATED_REVID=107687283
* Fix tools/build_defs/pkg:build_testGravatar Damien Martin-Guillerez2015-11-11
| | | | | | | | | | This is a fallout from race between https://bazel-review.googlesource.com/#/c/2222/ and https://bazel-review.googlesource.com/#/c/2212/ -- MOS_MIGRATED_REVID=107512322
* Fix //tools/build_defs/docker:build_testGravatar Damien Martin-Guillerez2015-11-11
| | | | | | | This is a fallout of https://bazel-review.googlesource.com/#/c/2212/ -- MOS_MIGRATED_REVID=107496707
* Add dotnet csharp support to bazel.Gravatar Jeremy Wall2015-11-10
| | | | | | | | | Adds rules for csharp_binary, csharp_library, and csharp_nunit_test. -- Change-Id: I51e448a399c535554353b3f40bf090bb602f647f Reviewed-on: https://bazel-review.googlesource.com/#/c/2270/ MOS_MIGRATED_REVID=107399181
* Add xcrunwrapper to deal with DEVELOPER_DIR and SDKROOT.Gravatar Dave MacLachlan2015-11-06
| | | | | | | | | Replace uses of $SDKROOT and $DEVELOPER_DIR values in compile paths with __DEVELOPER_DIR__ and __SDKROOT__ to that xcrunwrapper can deal with them appropriately. RELNOTES:none -- MOS_MIGRATED_REVID=107259512
* Fix bash completion script location in the Debian packageGravatar Brian Silverman2015-11-06
| | | | | | | | | | | | It was ending up installed as /bazel. Also, the documented way of telling pkg_tar not to strip off the prefix didn't work. -- Change-Id: I593d17690526c614697369cab543aff1ba67de0a Reviewed-on: https://bazel-review.googlesource.com/#/c/2222/ MOS_MIGRATED_REVID=107229260