2018-10-04 13:54:42 +08:00
2018-10-04 13:54:42 +08:00
2024-12-28 11:17:36 -05:00
2018-11-24 09:59:57 +08:00
2018-10-04 13:54:42 +08:00

bazel_pkg_config

Bazel rules for pkg-config tools.

Usage

Add the following in your WORKSPACE:

http_archive(
    name = "bazel_pkg_config",
    strip_prefix = "bazel_pkg_config-master",
    urls = ["https://github.com/cherrry/bazel_pkg_config/archive/master.zip"],
)

load("@bazel_pkg_config//:pkg_config.bzl", "pkg_config")

pkg_config(
    name = "library_to_load",
    # See pkg_config.bzl for more available options.
)

In your code:

#include "library_to_load/header.h"

// ...

In corresponding BUILD file:

cc_library(
    name = "my_lib",
    deps = [
        "@library_to_load//:lib",
    ],
)
Description
Bazel rule for pkg-config. This is a separate fork of https://github.com/cherrry/bazel_pkg_config for vitrine. It may be turned down after bug fixes are merged into the GitHub version.
Readme 45 KiB
Languages
Starlark 100%