https://github.com/lifeiteng/bazel-external-deps
example for build automake/autoconf project in bazel project
https://github.com/lifeiteng/bazel-external-deps
Last synced: 3 months ago
JSON representation
example for build automake/autoconf project in bazel project
- Host: GitHub
- URL: https://github.com/lifeiteng/bazel-external-deps
- Owner: lifeiteng
- Created: 2018-10-22T14:26:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-22T16:08:44.000Z (over 6 years ago)
- Last Synced: 2025-01-15T01:18:01.159Z (5 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bazel-external-deps
example for build automake/autoconf project in bazel project## generate config.h file
```
genrule(
name = "config_h",
srcs = [
"configure",
"libmp3lame/lame.c",
"install-sh",
"config.guess",
"config.rpath",
"config.sub",
] + glob(["**/*.in"]),
outs = ["config.h"],
cmd = "./$(location configure) " +
"&& cp config.h $(location config.h)",
)
```or
```
genrule(
name = "config_h",
srcs = [
"autogen.sh",
"configure.ac",
] + glob(["**/*.in", "m4/*.m4"]),
outs = ["config.h"],
cmd = "./$(location autogen.sh) " +
"&& ./`dirname $(location autogen.sh)`/configure " +
"&& cp config.h $(location config.h)",
)
```