{"id":28519758,"url":"https://github.com/bazel-contrib/rules_foreign_cc","last_synced_at":"2025-07-05T13:31:34.987Z","repository":{"id":37550500,"uuid":"130896044","full_name":"bazel-contrib/rules_foreign_cc","owner":"bazel-contrib","description":"Build rules for interfacing with \"foreign\" (non-Bazel) build systems (CMake, configure-make, GNU Make, boost, ninja, Meson)","archived":false,"fork":false,"pushed_at":"2025-07-02T22:30:42.000Z","size":4148,"stargazers_count":706,"open_issues_count":184,"forks_count":255,"subscribers_count":32,"default_branch":"main","last_synced_at":"2025-07-02T23:28:20.702Z","etag":null,"topics":["bazel","cmake","cmake-external","gnu-make","meson","ninja"],"latest_commit_sha":null,"homepage":"https://bazel-contrib.github.io/rules_foreign_cc","language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bazel-contrib.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"open_collective":"bazel-rules-authors-sig"}},"created_at":"2018-04-24T18:15:09.000Z","updated_at":"2025-06-27T13:40:30.000Z","dependencies_parsed_at":"2024-01-04T08:26:45.603Z","dependency_job_id":"f61fe61f-6b80-4974-819a-da96c2e76908","html_url":"https://github.com/bazel-contrib/rules_foreign_cc","commit_stats":null,"previous_names":["bazel-contrib/rules_foreign_cc","bazelbuild/rules_foreign_cc"],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/bazel-contrib/rules_foreign_cc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazel-contrib%2Frules_foreign_cc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazel-contrib%2Frules_foreign_cc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazel-contrib%2Frules_foreign_cc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazel-contrib%2Frules_foreign_cc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bazel-contrib","download_url":"https://codeload.github.com/bazel-contrib/rules_foreign_cc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazel-contrib%2Frules_foreign_cc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263749810,"owners_count":23505454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bazel","cmake","cmake-external","gnu-make","meson","ninja"],"created_at":"2025-06-09T06:30:28.011Z","updated_at":"2025-07-05T13:31:34.981Z","avatar_url":"https://github.com/bazel-contrib.png","language":"Starlark","funding_links":["https://opencollective.com/bazel-rules-authors-sig"],"categories":[],"sub_categories":[],"readme":"# rules_foreign_cc\n\n[![Build status](https://badge.buildkite.com/c28afbf846e2077715c753dda1f4b820cdcc46cc6cde16503c.svg?branch=main)](https://buildkite.com/bazel/rules-foreign-cc?branch=main)\n\n**Rules for building C/C++ projects using foreign build systems inside Bazel projects.**\n\nThis is **not an officially supported Google product**\n(meaning, support and/or new releases may be limited.)\n\n## Documentation\n\nDocumentation for all rules and providers are available at: https://bazel-contrib.github.io/rules_foreign_cc/\n\n## Bazel versions compatibility\n\nWorks with Bazel after 5.4.0.\n\nNote that the rules may be compatible with older versions of Bazel but support may break\nin future changes as these older versions are not tested.\n\nNote also that the `runnable_binary` macro requires bazel 5.4.0, for the `rlocationpath` [path\nvariable](https://bazel.build/reference/be/make-variables)\n\n## News\n\nFor more generalized updates, please see [NEWS.md](./NEWS.md) or checkout the\n[release notes](https://github.com/bazel-contrib/rules_foreign_cc/releases) of current or previous releases\n\n## Design document\n\n[External C/C++ libraries rules](https://docs.google.com/document/d/1Gv452Vtki8edo_Dj9VTNJt5DA_lKTcSMwrwjJOkLaoU/edit?usp=sharing)\n\n[ccb]: https://docs.bazel.build/versions/master/be/c-cpp.html#cc_binary\n[ccl]: https://docs.bazel.build/versions/master/be/c-cpp.html#cc_library\n[cct]: https://docs.bazel.build/versions/master/be/c-cpp.html#cc_toolchain\n\n## Caveats\n\n* FreeBSD support is currently experimental and on a best-effort basis.\n  Google currently doesn't have a CI test environment for FreeBSD,\n  but please make your voice heard by upvoting this\n  [issue](https://github.com/bazelbuild/continuous-integration/issues/258).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazel-contrib%2Frules_foreign_cc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbazel-contrib%2Frules_foreign_cc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazel-contrib%2Frules_foreign_cc/lists"}