aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/build_rules
Commit message (Collapse)AuthorAge
...
* Updates the appengine_war() rule to include the transitive dependencies of ↵Gravatar Alex Humesky2016-02-15
| | | | | | | | | the input rules in the output war. Fixes #895 -- MOS_MIGRATED_REVID=114615465
* Use build_file_content attribute of new_* repositories instead of build_file ↵Gravatar Damien Martin-Guillerez2016-02-12
| | | | | | | | | | | | in Skylark rules Loading those skylark rules where failing now they are in a remote repository because the build file could not be found. Fixes #883. -- MOS_MIGRATED_REVID=114528630
* Update documentation of skylark rules: correct load statementsGravatar Damien Martin-Guillerez2016-02-10
| | | | | | | Fixes #864. -- MOS_MIGRATED_REVID=114208872
* [rust] Update Rust rules to Rust 1.6Gravatar David Chen2016-02-04
| | | | | | | RELNOTES: [rust] Update to Rust 1.6 -- MOS_MIGRATED_REVID=113822518
* Use labels in load statementsGravatar Damien Martin-Guillerez2016-02-02
| | | | | | | | | | | | This will fix some issue with loading skylark rules from @bazel_tools. Tested with ./compile.sh all and also a project that use pkg_tar from @bazel_tools (which is broken at HEAD). -- Change-Id: Iffbb7134ef5fee497890c4d01b85084973d45ad0 Reviewed-on: https://bazel-review.googlesource.com/2800 MOS_MIGRATED_REVID=113508661
* Update appengine repository rule namesGravatar Kristina Chodorow2016-01-29
| | | | | | | Use _ instead of -. -- MOS_MIGRATED_REVID=113307540
* Convert skylark rules and tests to use _ in repo namesGravatar Kristina Chodorow2016-01-27
| | | | | -- MOS_MIGRATED_REVID=113081497
* Fix appengine rule to use all @bazel_tools targetsGravatar Kristina Chodorow2016-01-21
| | | | | | | | I didn't notice that I had neglected to add these lines to the changelist yesterday because there were so many style changes around them. -- MOS_MIGRATED_REVID=112701694
* Update appengine.bzl rules to use remote reposGravatar Kristina Chodorow2016-01-21
| | | | | | | Instead of depending on //tools and //third_party in the base workspace. -- MOS_MIGRATED_REVID=112599883
* Allow empty go_prefix.Gravatar Han-Wen Nienhuys2016-01-20
| | | | | | | | | Fixes #676. -- Change-Id: I7474d3e3071c99452b6e1835d6f70671f34b1fd9 Reviewed-on: https://bazel-review.googlesource.com/#/c/2693 MOS_MIGRATED_REVID=112564791
* Basic build tag support for go rulesGravatar David Santiago2016-01-11
| | | | | | | | | | Initial implementation for the filter_tags executable is present, along with some tests for the implemented functionality. -- Change-Id: Id82251a3e730596db57ce5fd158b9247b0bee55d Reviewed-on: https://bazel-review.git.corp.google.com/#/c/2132 MOS_MIGRATED_REVID=111841913
* Fix bazel_go_example_test. Changes:Gravatar Han-Wen Nienhuys2015-12-22
| | | | | | | | | | | | | | | | | * The go_prefix should be declared in the toplevel BUILD file as //:go_prefix, rather than //external:go_prefix. * Run set_up from the test methods. * Update references to Darwin. Tested: bazel test src/test/shell/bazel/bazel_go_example_test -- Change-Id: I89b2f5920100d27abdbc093437c7c051a24fad1e Reviewed-on: https://bazel-review.googlesource.com/#/c/2561 MOS_MIGRATED_REVID=110762730
* 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
* Remove deleted WORKSPACE.go-toolchain from srcs.Gravatar David Chen2015-12-07
| | | | | | | TESTED: bazel test //src/test/... -- MOS_MIGRATED_REVID=109481372
* Use load() to add external repositories for Skylark rules.Gravatar David Chen2015-12-04
| | | | | -- MOS_MIGRATED_REVID=109405753
* 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
* 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
* 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
* 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
* 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
* Fix breakage caused by visibility.Gravatar Damien Martin-Guillerez2015-11-17
| | | | | | | See build http://ci.bazel.io/job/Bazel/221/ -- MOS_MIGRATED_REVID=108032099
* Add srcs for Go rules.Gravatar Han-Wen Nienhuys2015-11-17
| | | | | -- MOS_MIGRATED_REVID=107939664
* [go] Add attribute documentation.Gravatar David Chen2015-11-03
| | | | | -- MOS_MIGRATED_REVID=106918682
* Update links in Bazel docs to point to new BE pages.Gravatar David Chen2015-11-02
| | | | | | | Fixes #529 -- MOS_MIGRATED_REVID=106883457
* Don't overwrite existing __init__.py files in py_binary zipsGravatar Benjamin Staffin2015-10-30
| | | | | | | | | | | | This switches zip from "add" to "update" mode, and only adds __init__.py where it's not already present. Fixes: #542 -- Change-Id: Id65632d1448b403ad328e4a1619c0d4e8ebfdcb4 Reviewed-on: https://bazel-review.googlesource.com/#/c/2250 MOS_MIGRATED_REVID=106690985
* [rust] Add linker flags from cpp configuration.Gravatar David Chen2015-10-28
| | | | | -- MOS_MIGRATED_REVID=106459854
* Put all of pkg/ into the go toolchain, so it works on Darwin too.Gravatar Han-Wen Nienhuys2015-10-27
| | | | | -- MOS_MIGRATED_REVID=106418596
* Tweak styling of Skylark rule READMEs to be consistent when viewed onGravatar David Chen2015-10-23
| | | | | | | external site. -- MOS_MIGRATED_REVID=106135529
* Fix go toolchain reliance on the bazel src directoryGravatar Benjamin Staffin2015-10-22
| | | | | | | | | | | This follows the pattern used in tools/build_defs/d/BUILD and tools/build_rules/rust/BUILD, and makes it possible to use the golang rules in a workspace other than the Bazel source tree itself. -- Change-Id: I2b3cdb3a2cede84bea195bd6530efccbd4fe9714 Reviewed-on: https://bazel-review.googlesource.com/#/c/2190/ MOS_MIGRATED_REVID=106057033
* Add e2e test for Go support.Gravatar Han-Wen Nienhuys2015-10-20
| | | | | | | -- Change-Id: I6b76e1fe76ae8a640b2ab7d70cc8bfda50801b74 Reviewed-on: https://bazel-review.googlesource.com/#/c/2160 MOS_MIGRATED_REVID=105854761
* Use default_visibility instead of visibility in package()Gravatar Brian Silverman2015-10-13
| | | | | | | -- Change-Id: I81b4e688b8cf57b2e4a3078f3460c323acd65097 Reviewed-on: https://bazel-review.googlesource.com/#/c/2130 MOS_MIGRATED_REVID=105301546
* Make Bazel use tools that are embedded in its binary.Gravatar Lukacs Berki2015-10-12
| | | | | | | This requires changing all "//tools/language:target" implicit dependencies to "@tools//tools/language:target". -- MOS_MIGRATED_REVID=105193805
* Add Darwin toolchain to Go rules.Gravatar Han-Wen Nienhuys2015-10-12
| | | | | -- MOS_MIGRATED_REVID=105076173
* RELNOTES: Go rules for Bazel.Gravatar Han-Wen Nienhuys2015-10-09
| | | | | -- MOS_MIGRATED_REVID=105062625
* Add commons-lang artifact to the default appengine WORKSPACEGravatar Kristina Chodorow2015-10-09
| | | | | | | appengine.bzl depends on it, but it was missing. -- MOS_MIGRATED_REVID=104984668
* [rust] Add rust_bench_test and rust_doc_test rules and improve usability of ↵Gravatar David Chen2015-10-05
| | | | | | | | | | | | | | rust_test rule. * Add rust_bench_test rule to run benchmark tests * Add rust_doc_test rule to run Rust documentation tests. * Enable rust_test and rust_bench_test to depend directly on a rust_library target. * Rename rust_docs rule to rust_doc for consistency. RELNOTES: [rust] Add rust_bench_test and rust_doc_test rules and improve usability of rust_test tule. -- MOS_MIGRATED_REVID=104648497
* Rationalize copyright headersGravatar Damien Martin-Guillerez2015-09-25
| | | | | | | | | | | The headers were modified with `find . -type f -exec 'sed' '-Ei' 's|Copyright 201([45]) Google|Copyright 201\1 The Bazel Authors|' '{}' ';'` And manual edit for not Google owned copyright. Because of the nature of ijar, I did not modified the header of file owned by Alan Donovan. The list of authors were extracted from the git log. It is missing older Google contributors that can be added on-demand. -- MOS_MIGRATED_REVID=103938715
* Add rust_docs ruleGravatar David Chen2015-09-24
| | | | | | | | | | | | Additional updates to Rust rules: * Consolidate BUILD files for Rust distribution. * Prevent rust_binary from depending directly on cc_library. * Update Rust version to 1.3.0 RELNOTES: [rust] Add rust_docs rule for generating rustdoc. -- MOS_MIGRATED_REVID=103827592
* Enable compression for Groovy and AppEngine rules.Gravatar Erik Kuefler2015-09-09
| | | | | | | -- Change-Id: I22c82e4a24839e0832cf5148e13fc6f0eafc0f2b Reviewed-on: https://bazel-review.googlesource.com/#/c/1952/ MOS_MIGRATED_REVID=102640555
* Fixes #414: Add rustc + libs to action inputs, add LD_LIBRARY_PATH so that ↵Gravatar Philipp Wollermann2015-09-08
| | | | | | | rustc finds its libs on Linux, too. -- MOS_MIGRATED_REVID=102362939
* Fix AppEngine build when sandboxed execution is enabledGravatar Damien Martin-Guillerez2015-09-03
| | | | | | | Some inputs were undeclared. -- MOS_MIGRATED_REVID=102238651