Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Unified Diff: third_party/brotli/BUILD.gn

Issue 1956893002: Added brotli enc/ and tools/ directories. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split large file into 2, fixed Windows build issue Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/brotli/.gitignore ('k') | third_party/brotli/README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/brotli/BUILD.gn
diff --git a/third_party/brotli/BUILD.gn b/third_party/brotli/BUILD.gn
index e25cf2b45c078ac558e538bef3160c144d237696..bfb0bb4390564cfd016c8608733bc1bbb0a1a045 100644
--- a/third_party/brotli/BUILD.gn
+++ b/third_party/brotli/BUILD.gn
@@ -30,3 +30,68 @@ source_set("brotli") {
include_dirs = [ "dec" ]
}
+
+if (current_toolchain == host_toolchain) {
+ executable("bro") {
+ sources = [
+ "enc/backward_references.cc",
+ "enc/backward_references.h",
+ "enc/bit_cost.h",
+ "enc/block_splitter.cc",
+ "enc/block_splitter.h",
+ "enc/brotli_bit_stream.cc",
+ "enc/brotli_bit_stream.h",
+ "enc/cluster.h",
+ "enc/command.h",
+ "enc/compress_fragment.cc",
+ "enc/compress_fragment.h",
+ "enc/compress_fragment_two_pass.cc",
+ "enc/compress_fragment_two_pass.h",
+ "enc/compressor.h",
+ "enc/context.h",
+ "enc/dictionary_hash.h",
+ "enc/encode.cc",
+ "enc/encode.h",
+ "enc/encode_parallel.cc",
+ "enc/encode_parallel.h",
+ "enc/entropy_encode.cc",
+ "enc/entropy_encode.h",
+ "enc/entropy_encode_static.h",
+ "enc/fast_log.h",
+ "enc/find_match_length.h",
+ "enc/hash.h ",
+ "enc/histogram.cc",
+ "enc/histogram.h",
+ "enc/literal_cost.cc",
+ "enc/literal_cost.h",
+ "enc/metablock.cc",
+ "enc/metablock.h",
+ "enc/port.h ",
+ "enc/prefix.h",
+ "enc/ringbuffer.h",
+ "enc/static_dict.cc",
+ "enc/static_dict.h",
+ "enc/static_dict_lut.h",
+ "enc/streams.cc",
+ "enc/streams.h",
+ "enc/transform.h",
+ "enc/types.h",
+ "enc/utf8_util.cc",
+ "enc/utf8_util.h",
+ "enc/write_bits.h",
+ "tools/bro.cc",
+ ]
+ deps = [
+ ":brotli",
+ ]
+
+ # Always build release since this is a build tool.
+ if (is_debug) {
+ configs -= [ "//build/config:debug" ]
+ configs += [ "//build/config:release" ]
+ }
+ if (is_posix) {
+ configs -= [ "//build/config/gcc:no_exceptions" ]
agrieve 2016/05/12 01:38:33 Found in brotli/setup.py that it sets /EHsc to ena
smaier 2016/05/12 18:36:46 Done.
+ }
+ }
+}
« no previous file with comments | « third_party/brotli/.gitignore ('k') | third_party/brotli/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698