forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
90 lines (80 loc) · 2.75 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
licenses(["notice"]) # Apache 2
package(default_visibility = ["//visibility:public"])
config_setting(
name = "windows_x86_64",
values = {"cpu": "x64_windows"},
)
cc_library(
name = "ares",
srcs = select({
":windows_x86_64": ["thirdparty_build/lib/cares.lib"],
"//conditions:default": ["thirdparty_build/lib/libcares.a"],
}),
hdrs = glob(["thirdparty_build/include/ares*.h"]),
includes = ["thirdparty_build/include"],
)
cc_library(
name = "benchmark",
srcs = select({
":windows_x86_64": ["thirdparty_build/lib/benchmark.lib"],
"//conditions:default": ["thirdparty_build/lib/libbenchmark.a"],
}),
hdrs = ["thirdparty_build/include/testing/base/public/benchmark.h"],
includes = ["thirdparty_build/include"],
)
cc_library(
name = "event",
srcs = select({
":windows_x86_64": ["thirdparty_build/lib/event.lib"],
"//conditions:default": ["thirdparty_build/lib/libevent.a"],
}),
hdrs = glob(["thirdparty_build/include/event2/**/*.h"]),
includes = ["thirdparty_build/include"],
)
cc_library(
name = "luajit",
srcs = select({
":windows_x86_64": ["thirdparty_build/lib/luajit.lib"],
"//conditions:default": ["thirdparty_build/lib/libluajit-5.1.a"],
}),
hdrs = glob(["thirdparty_build/include/luajit-2.0/*"]),
includes = ["thirdparty_build/include"],
# TODO(mattklein123): We should strip luajit-2.0 here for consumers. However, if we do that
# the headers get included using -I vs. -isystem which then causes old-style-cast warnings.
)
cc_library(
name = "nghttp2",
srcs = select({
":windows_x86_64": ["thirdparty_build/lib/nghttp2.lib"],
"//conditions:default": ["thirdparty_build/lib/libnghttp2.a"],
}),
hdrs = glob(["thirdparty_build/include/nghttp2/**/*.h"]),
includes = ["thirdparty_build/include"],
)
cc_library(
name = "tcmalloc_and_profiler",
srcs = ["thirdparty_build/lib/libtcmalloc_and_profiler.a"],
hdrs = glob(["thirdparty_build/include/gperftools/**/*.h"]),
strip_include_prefix = "thirdparty_build/include",
)
cc_library(
name = "yaml_cpp",
srcs = select({
":windows_x86_64": glob(["thirdparty_build/lib/libyaml-cpp*.lib"]),
"//conditions:default": ["thirdparty_build/lib/libyaml-cpp.a"],
}),
hdrs = glob(["thirdparty_build/include/yaml-cpp/**/*.h"]),
includes = ["thirdparty_build/include"],
)
cc_library(
name = "zlib",
srcs = select({
":windows_x86_64": glob(["thirdparty_build/lib/zlibstaticd.lib"]),
"//conditions:default": ["thirdparty_build/lib/libz.a"],
}),
hdrs = [
"thirdparty_build/include/zconf.h",
"thirdparty_build/include/zlib.h",
],
includes = ["thirdparty_build/include"],
)