aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
Commit message (Collapse)AuthorAge
* Fix warnings in Bazel Swift example libraryGravatar Dmitry Shevchenko2017-01-16
| | | | | | | | * Require callers to use argument labels so that the call site looks the same in Swift 2 and 3. -- PiperOrigin-RevId: 144484042 MOS_MIGRATED_REVID=144484042
* Update the Bazel sample app to demonstrate the support library syntax.Gravatar Adam Michael2016-12-22
| | | | | | | | Also removes some outdated comments in the README.md. -- PiperOrigin-RevId: 142705870 MOS_MIGRATED_REVID=142705870
* Remove non-source file genrule.txt from //examples/gen:srcsGravatar Klaus Aehlig2016-11-03
| | | | | | | -- Change-Id: I8baac367d42cf9fad770560338942f9f857e5761 Reviewed-on: https://bazel-review.googlesource.com/#/c/7135 MOS_MIGRATED_REVID=138067228
* Fix bazel_apple_test and Swift example to work with Xcode 8.0.Gravatar Philipp Wollermann2016-10-21
| | | | | | | This is needed to make Bazel CI green(er) again, because CI machines are being upgraded to macOS Sierra and Xcode 8.0. -- MOS_MIGRATED_REVID=136825401
* Adds missing dependencies to //:srcsGravatar Damien Martin-Guillerez2016-07-04
| | | | | -- MOS_MIGRATED_REVID=126571069
* Add all the sources to //:srcs filegroup and add a check to detectGravatar Damien Martin-Guillerez2016-07-01
| | | | | | | | | | | missing file to it. We need to activate this check on presubmits -- Change-Id: Ia95e92d3816ce92bb69bc0e2cf56e9c60b68d970 Reviewed-on: https://bazel-review.googlesource.com/#/c/3949/ MOS_MIGRATED_REVID=126404792
* Added a dll hello world example programGravatar Yun Peng2016-07-01
| | | | | | | | | | | run following commands to test it: bazel build --cpu=x64_windows_msvc examples/windows/dll:hello ./bazel-bin/examples/windows/dll/hello -- Change-Id: I096f6ff66473b1c9980b0aa36ec291f39512dd71 Reviewed-on: https://bazel-review.googlesource.com/#/c/3932 MOS_MIGRATED_REVID=126300284
* Make bazel test work on WindowsGravatar Yun Peng2016-06-15
| | | | | | | | | | bazel test now works for java native example tests, but most of Bazel's java_test still fail on Windows due to other reasons. -- Change-Id: Ie4ab6570b294815b9e06dd9bbd0cb7a48eb6ed11 Reviewed-on: https://bazel-review.googlesource.com/#/c/3810 MOS_MIGRATED_REVID=124932604
* Fix the fail test of java examplesGravatar Damien Martin-Guillerez2016-06-03
| | | | | | | Discovered while discussing #1321 -- MOS_MIGRATED_REVID=123946533
* Update swift_library logic for module name generationGravatar Dmitry Shevchenko2016-05-30
| | | | | | | | * Modules are now named after its full target path by default. * module_name attribute can be used to override this logic. -- MOS_MIGRATED_REVID=123422704
* Remove rust, jsonnet, scala and closure from the Bazel repositoryGravatar Damien Martin-Guillerez2016-05-09
| | | | | | | | Those rules were moved to, respectively, https://github.com/bazelbuild/rules_rust, https://github.com/bazelbuild/rules_jsonnet, https://github.com/bazelbuild/rules_scala, and https://github.com/bazelbuild/rules_closure. -- MOS_MIGRATED_REVID=121834063
* Set Bazel's workspace nameGravatar Kristina Chodorow2016-04-27
| | | | | | | | | | RELNOTES: Bazel's workspace name is now io_bazel. If you are using Bazel's source as an external repository, then you may want to update the name you're referring to it as or you'll begin seeing warnings about name mismatches in your code. -- MOS_MIGRATED_REVID=120926179
* Add a Skylark rule to build Swift modules.Gravatar Dmitry Shevchenko2016-04-22
| | | | | | | | * Adds a swift_library rule that produces a (.a, .swiftmodule) pair. It can handle dependencies between modules and can be used as a dependency of objc_binary. * Does not work with Objective-C yet. -- MOS_MIGRATED_REVID=120578875
* Automated [] rollback of commit 857cda2c45a5cc68c3fa398311c48c571a64915d and ↵Gravatar Damien Martin-Guillerez2016-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | commit 790d2f6009d47fe92cf0cd92a1473bbf0141f32e. *** Reason for rollback *** Broke non-Bazel projects on ci.bazel.io Fixes #1168 *** Original change description *** Move the runfiles for external repositories to under the x.runfiles/ directory This also sets the Bazel workspace name to io_bazel_source. Fixes #848. Relevant to #1116, #1124, RELNOTES[INC]: All repositories are now directly under the x.runfiles directory in the runfiles tree (previously, external repositories were at x.runfiles/main-repo/external/other-repo. This simplifies handling remote repository runfiles considerably, but will break existing references to external repository runfiles.... *** -- MOS_MIGRATED_REVID=120535721
* Move the runfiles for external repositories to under the x.runfiles/ directoryGravatar Kristina Chodorow2016-04-20
| | | | | | | | | | | | | | | This also sets the Bazel workspace name to io_bazel_source. Fixes #848. Relevant to #1116, #1124, RELNOTES[INC]: All repositories are now directly under the x.runfiles directory in the runfiles tree (previously, external repositories were at x.runfiles/main-repo/external/other-repo. This simplifies handling remote repository runfiles considerably, but will break existing references to external repository runfiles. --- Furthermore, if a Bazel project does not provide a workspace name in the WORKSPACE file, Bazel will now default to using __main__ as the workspace name (instead of "", as previously). The repository's runfiles will appear under x.runfiles/__main__/. -- MOS_MIGRATED_REVID=120224534
* Remove te protocol compiler rules from @bazel_tools.Gravatar Lukacs Berki2016-04-11
| | | | | | | | | | | | The immmediate reason for this change is that we also need to add gRPC support to the proto rules, and we don't want to also support gRPC in a half-baked way. This makes the Bazel binary much smaller and avoid giving false signals that we (for now) support protobuf compilation. The protobuf rules are only for compiling Bazel itself. RELNOTES[INC]: Bazel does not embed protocol buffer-related rules anymore. -- MOS_MIGRATED_REVID=119516246
* Remove deprecated Skylark rulesGravatar Kristina Chodorow2016-03-24
| | | | | -- MOS_MIGRATED_REVID=117968196
* Add support for resources to bundling rules.Gravatar Dave MacLachlan2016-03-08
| | | | | | | Will need to release before we can remove resources from objcbinary rules. -- MOS_MIGRATED_REVID=116571890
* RELNOTES: Set --legacy_bazel_java_test to off by default.Gravatar Damien Martin-Guillerez2016-03-04
| | | | | -- MOS_MIGRATED_REVID=116272974
* Update bazel-bin/examples/objc/expression_prebuilt.a to be four way fat, and ↵Gravatar Dave MacLachlan2016-02-22
| | | | | | | update instructions on how to generate. -- MOS_MIGRATED_REVID=115175144
* Rename proto_java_library to java_proto_library.Gravatar Julio Merino2016-02-19
| | | | | | | | RELNOTES[INC]: Renamed proto_java_library to java_proto_library. The former is now deprecated and will print out a warning when used. -- MOS_MIGRATED_REVID=115012027
* Turn //tools/build_rules into a package.Gravatar Julio Merino2016-02-17
| | | | | | | | | This is in preparation for another change that will add a new helper script to the tools/build_rules directory, and such script requires a BUILD rule of its own. -- MOS_MIGRATED_REVID=114898083
* Fix //src/test/shell/bazel:bazel_example_testGravatar Damien Martin-Guillerez2016-02-10
| | | | | | | Python sources filegroup was broken by the addition of a new package -- MOS_MIGRATED_REVID=114323099
* Add imports attribute to Bazel native Python rules to allow adding ↵Gravatar David Chen2016-02-10
| | | | | | | | | | | directories to PYTHONPATH. Fixes #702 RELNOTES: Add imports attribute to native Python rules. -- MOS_MIGRATED_REVID=114314430
* Add shell example to bazel. Includes sh_binary, sh_library and sh_test.Gravatar Dave MacLachlan2016-02-04
| | | | | -- MOS_MIGRATED_REVID=113789897
* Get rid of some g3doc warnings.Gravatar Dave MacLachlan2016-02-04
| | | | | -- MOS_MIGRATED_REVID=113782855
* 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
* Fix up our external sample PrenotCalculator so it uses ios_application ↵Gravatar Dave MacLachlan2016-01-21
| | | | | | | | | instead of just objc_binary. RELNOTES: -- MOS_MIGRATED_REVID=112601304
* Use our java test runner in BazelGravatar Damien Martin-Guillerez2016-01-13
| | | | | | | | | RELNOTES[NEW]: A new java test runner that support XML output and test filtering is supported. It can be used by specifying --nolegacy_bazel_java_test or by speicifying the test_class attribute on a java_test. -- MOS_MIGRATED_REVID=112028955
* [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
* 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
* Fixes compilation failure of //examples/android/java/bazel:hello_world when ↵Gravatar Philipp Wollermann2015-10-27
| | | | | | | sandboxing was enabled, by adding "jni_dep.h" to "hdrs" in //examples/android/java/bazel:jni_dep. -- MOS_MIGRATED_REVID=106408122
* [jsonnet] Add jsonnet_to_json_test rule for testing Jsonnet code.Gravatar David Chen2015-10-22
| | | | | | | RELNOTES: [jsonnet] Add jsonnet_to_json_test rule for testing Jsonnet code. -- MOS_MIGRATED_REVID=106040951
* Replace "Google Inc" with "The Bazel Authors" in every copyright notice.Gravatar Lukacs Berki2015-10-21
| | | | | -- MOS_MIGRATED_REVID=105949508
* Provide an example for the Go rules, eg.Gravatar Han-Wen Nienhuys2015-10-09
| | | | | | | | bazel test examples/go/lib:lib_test bazel build examples/go/bin:bin -- MOS_MIGRATED_REVID=105070940
* [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
* Initial checkin of sass_binary support for bazelGravatar Derek Perez2015-09-24
| | | | | | | | | RELNOTES[NEW]: Support for build with libsass. -- Change-Id: I2a24212d9466e2e2a8b653027f1cc9579b4d4221 Reviewed-on: https://bazel-review.googlesource.com/#/c/1990/ MOS_MIGRATED_REVID=103740130
* Update d_docs rule to take a dependency on a d_binary, a d_library or ↵Gravatar David Chen2015-09-24
| | | | | | | | | d_source_library. RELNOTES: [d] d_docs rules now depend on a d_binary, a d_library or d_source_library. -- MOS_MIGRATED_REVID=103736167
* Rollforward of [], which was rolled back in []. Cleans up support for ↵Gravatar Michael Thvedt2015-09-14
| | | | | | | objc_proto_library with native proto_library. -- MOS_MIGRATED_REVID=102962083
* Add Jsonnet rules to Bazel.Gravatar David Chen2015-09-14
| | | | | | | RELNOTES: Add Jsonnet rules to Bazel -- MOS_MIGRATED_REVID=102895524
* Add initial D rules to Bazel.Gravatar David Chen2015-09-08
| | | | | -- MOS_MIGRATED_REVID=102513092
* Rollback of commit 17e9d7cd408eee1e4e73a1fe6f76917954475937.Gravatar Carmi Grushko2015-09-04
| | | | | -- MOS_MIGRATED_REVID=102299629
* Turn Bazel proto_library on for objc_proto_library.Gravatar Michael Thvedt2015-09-04
| | | | | -- MOS_MIGRATED_REVID=102294703
* Quick fix for shipping the android tools in the Bazel binaryGravatar Damien Martin-Guillerez2015-09-03
| | | | | | | | | | | | | | This is not really nice, there are several hacks there. This repository will get removed in the future and linked to a remote one instead. I tested it against the tutorial and it works like a charm. mobile-install seems like to work, maybe that's also fixing the last issue reported in #392. Known issue: Java compilation output errors about files being modified in the future. -- MOS_MIGRATED_REVID=102282979
* Require an android_local_tools_repository stanza in the WORKSPACE file so ↵Gravatar Lukacs Berki2015-08-26
| | | | | | | | | | | | | | | that Bazel finds Android tools and update the tools themselves to handle their new location. This paves the way for eventually referencing every tool this way. We have to figure out if android_http_tools_repository is the right way to distribute the Android tools, but now that we don't have a binary distribution yet, it's not an immediate problem. This will break existing users of Android support in Bazel, whom I'll inform over bazel-discuss. Fixes #384. -- MOS_MIGRATED_REVID=101456190
* Android example readme: blaze -> bazelGravatar Damien Martin-Guillerez2015-08-26
| | | | | -- MOS_MIGRATED_REVID=101446590
* Open-source full support for J2ObjC in Bazel, including dead code removal, ↵Gravatar Michael Thvedt2015-08-13
| | | | | | | and add an example. -- MOS_MIGRATED_REVID=100493818
* New-style android exampleGravatar Steven Dee2015-08-04
| | | | | | | | | | | | | - Make the jni target depend on another cc_library. - Disable legacy native support in hello_world. - Make MainActivity load hello_world rather than jni. -- Change-Id: I497ba680eec4e16ee14628294d2c1260db69ad82 Reviewed-on: https://bazel-review.googlesource.com/#/c/1740/ MOS_MIGRATED_REVID=99709707