Skip to content

0.1.0

Compare
Choose a tag to compare
@jsharpe jsharpe released this 01 Mar 23:01
· 359 commits to main since this release
1222c48

0.1.0

https://bazelbuild.github.io/rules_foreign_cc/0.1.0/

Note this will be the last release to be tested on Bazel 3.4.0. All releases going forward will be tested on 4.0.0.

Usage

Add the following to your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_foreign_cc",
    sha256 = "c2cdcf55ffaf49366725639e45dedd449b8c3fe22b54e31625eb80ce3a240f1e",
    strip_prefix = "rules_foreign_cc-0.1.0",
    url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.1.0.zip",
)

load("@rules_foreign_cc//:workspace_definitions.bzl", "rules_foreign_cc_dependencies")

# This sets up some common toolchains for building targets. For more details, please see
# https://bazelbuild.github.io/rules_foreign_cc/0.1.0/#rules_foreign_cc_dependencies
rules_foreign_cc_dependencies()

Note that this release will default to using a downloaded version of cmake and ninja. If you want to revert to the previous behaviour of using the host installed version call use rules_foreign_cc_dependencies(register_default_tools = False) in your WORKSPACE file. The use of the host installed tools can be disabled using the register_preinstalled_tools argument.

Release Notes

  • Added repository rules for downloading prebuilt versions of cmake and ninja rather than relying on system installed tools.

  • Added native ninja build rule

  • Now builds under the bazel sandbox rather than in /tmp

  • Tidied up the structure of the examples directory

  • Deprecated the old rules install_ws_dependency and cc_configure_make

  • Autogenerated documentation was added