forked from bazel-contrib/rules_foreign_cc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
28 lines (26 loc) · 738 Bytes
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
load("@rules_foreign_cc//tools/build_defs:configure.bzl", "configure_make")
configure_make(
name = "libevent",
configure_options = [
"--enable-shared=no",
"--disable-libevent-regress",
"--disable-openssl",
],
lib_source = "@libevent//:all",
out_lib_dir = "lib",
# libevent script uses it's own libtool for linking;
# so do not specify linker tool for it
# (otherwise, if the libtool from bazel's toolchain is supplied,
# the build script has problems with passing output file to libtool)
# see #315
configure_env_vars = {
"AR": "",
},
)
cc_test(
name = "libevent_echosrv1",
srcs = ["libevent_echosrv1.c"],
deps = [
"libevent",
],
)