Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 654aacc

Browse files
nornagonnitsakh
authored andcommitted
gn files for brotli and histogram
1 parent e1357e2 commit 654aacc

File tree

3 files changed

+65
-0
lines changed

3 files changed

+65
-0
lines changed

BUILD.gn

+7
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ config("node_lib_config") {
130130
cflags = [ "-Wno-microsoft-include" ]
131131

132132
configs = [ ":node_features" ]
133+
134+
if (is_debug) {
135+
defines = [ "DEBUG" ]
136+
}
133137
}
134138

135139
config("node_internal_config") {
@@ -196,7 +200,9 @@ config("node_internal_config") {
196200
component("node_lib") {
197201
deps = [
198202
":node_js2c",
203+
"deps/brotli",
199204
"deps/cares",
205+
"deps/histogram",
200206
"deps/http_parser",
201207
"deps/llhttp",
202208
"deps/nghttp2",
@@ -245,6 +251,7 @@ component("node_lib") {
245251
sources += [
246252
"src/inspector_agent.cc",
247253
"src/inspector_agent.h",
254+
"src/inspector_coverage.cc",
248255
"src/inspector_io.cc",
249256
"src/inspector_io.h",
250257
"src/inspector_profiler.cc",

deps/brotli/BUILD.gn

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
config("brotli_config") {
2+
include_dirs = [ "c/include" ]
3+
if (is_linux) {
4+
defines = [ "OS_LINUX" ]
5+
}
6+
if (is_mac) {
7+
defines = [ "OS_MACOSX" ]
8+
}
9+
}
10+
11+
static_library("brotli") {
12+
public_configs = [ ":brotli_config" ]
13+
14+
libs = [ "m" ]
15+
16+
sources = [
17+
# Common
18+
"c/common/dictionary.c",
19+
"c/common/transform.c",
20+
21+
# Decoder
22+
"c/dec/bit_reader.c",
23+
"c/dec/decode.c",
24+
"c/dec/huffman.c",
25+
"c/dec/state.c",
26+
27+
# Encoder
28+
"c/enc/backward_references.c",
29+
"c/enc/backward_references_hq.c",
30+
"c/enc/bit_cost.c",
31+
"c/enc/block_splitter.c",
32+
"c/enc/brotli_bit_stream.c",
33+
"c/enc/cluster.c",
34+
"c/enc/compress_fragment.c",
35+
"c/enc/compress_fragment_two_pass.c",
36+
"c/enc/dictionary_hash.c",
37+
"c/enc/encode.c",
38+
"c/enc/encoder_dict.c",
39+
"c/enc/entropy_encode.c",
40+
"c/enc/histogram.c",
41+
"c/enc/literal_cost.c",
42+
"c/enc/memory.c",
43+
"c/enc/metablock.c",
44+
"c/enc/static_dict.c",
45+
"c/enc/utf8_util.c"
46+
]
47+
}

deps/histogram/BUILD.gn

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
config("histogram_config") {
2+
include_dirs = [ "src" ]
3+
}
4+
static_library("histogram") {
5+
public_configs = [ ":histogram_config" ]
6+
7+
sources = [
8+
"src/hdr_histogram.c",
9+
"src/hdr_histogram.h",
10+
]
11+
}

0 commit comments

Comments
 (0)