Using Bzlmod
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_foreign_cc", version = "0.15.0")
Using WORKSPACE
Paste this snippet into your WORKSPACE.bazel
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_foreign_cc",
sha256 = "92bf237df47776ef5127506234135a48de939b57553c253097b632726d881a7d",
strip_prefix = "rules_foreign_cc-0.15.0",
url = "https://github.com/bazel-contrib/rules_foreign_cc/releases/download/0.15.0/rules_foreign_cc-0.15.0.tar.gz",
)
load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
# This sets up some common toolchains for building targets. For more details, please see
# https://bazel-contrib.github.io/rules_foreign_cc/0.15.0/flatten.html#rules_foreign_cc_dependencies
rules_foreign_cc_dependencies()
# If you're not already using bazel_skylib, bazel_features or rules_python,
# you'll need to add these calls as well.
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
load("@bazel_features//:deps.bzl", "bazel_features_deps")
bazel_features_deps()
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()
What's Changed
- Improve flags handling for meson by @mering in #1303
- cmake: put CMAKE_SYSTEM_{NAME,PROCESSOR} into toolchain file by @novas0x2a in #1365
- win: fix proper EXT_BUILD_ROOT in PATH by @jsun-splunk in #1358
- fix sysroot for make and pkgconfig built tools by @jsun-splunk in #1356
- bzlmod: prevent extension from registering repos by @novas0x2a in #1374
- add xcompile support for ppc64le for autotools and cmake by @novas0x2a in #1373
- feat: support make vars in postfix_script by @jsun-splunk in #1375
- Allow cmake to use pkg-config for dependencies by @chouquette in #1370
- chore(ci): Add arm64 tests for root module by @jsharpe in #1378
- add a static_suffix attr by @matt-sm in #1372
- chore(deps): Update libpng by @jsharpe in #1377
- chore(deps): Update rules_python to 1.2.0 by @jsharpe in #1380
- chore(deps): Update rules_perl by @jsharpe in #1381
- use string.removesuffix by @matt-sm in #1382
- Add shellcheck tests for generated build scripts by @jsharpe in #1390
- Absolutize paths beginning with
bazel-out/
by @allsey87 in #1392 - Add support for Emscripten by @allsey87 in #1383
- chore: update cmake versions by @novas0x2a in #1399
- feat: meson additional targets by @jjmaestro in #1385
- fix: allow rules to consume tools env data by @jsun-splunk in #1397
- fix: broken msvc builds by @jsun-splunk in #1400
- fix: Update apr / apr-util versions to fix CI by @jsharpe in #1402
- chore: Bump min OS in CI as Ubuntu 20.04 is now EOL by @jsharpe in #1408
- chore: Seperate platform specific shellcheck tests by @jsharpe in #1409
- chore: Update openssl version to latest of the 1.1.1 series by @jsharpe in #1410
- fix: full_label by @jjmaestro in #1404
- chore: Update default version of cmake to last of the 3.x series by @jsharpe in #1411
- Release 0.15.0 by @jsharpe in #1412
New Contributors
- @mering made their first contribution in #1303
- @chouquette made their first contribution in #1370
Full Changelog: 0.14.0...0.15.0