File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 33
44# bazel_pkg_config
55
6- Bazel rules for pkg-config tools with Bazel 8+ (Bzlmod) support and backward compatibility Bazel < 8 (WORKSPACE).
6+ Bazel rules for pkg-config tools with Bazel 8+ (Bzlmod) support and backward compatibility Bazel < 8 (WORKSPACE).
77Forked from cherrry/bazel_pkg_config with Bazel 8+ specific modifications.
88
99## Usage
@@ -54,16 +54,18 @@ cc_library(
5454Add the following in your ` WORKSPACE ` :
5555
5656``` bzl
57- http_archive (
57+ git_repository (
5858 name = " bazel_pkg_config" ,
59- strip_prefix = " bazel_pkg_config-master" ,
60- urls = [" https://github.com/cherrry/bazel_pkg_config/archive/master.zip" ],
59+ remote = " https://github.com/Lmh-java/bazel_pkg_config.git" ,
60+ # Replace with the lastest commit hash
61+ commit = " e247fb3b4007e63bb5110808df6e2c57eb518f16" ,
6162)
6263
63- load(" @bazel_pkg_config//:pkg_config.bzl" , " pkg_config " )
64+ load(" @bazel_pkg_config//:pkg_config.bzl" , " pkg_config_repository " )
6465
65- pkg_config(
66- name = " library_to_load" ,
66+ pkg_config_repository(
67+ name = " target_name" ,
68+ pkg_name = " library_to_load"
6769 # See pkg_config.bzl for more available options.
6870)
6971```
You can’t perform that action at this time.
0 commit comments