Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 source_set("brotli") { | 5 source_set("brotli") { |
| 6 sources = [ | 6 sources = [ |
| 7 "dec/bit_reader.c", | 7 "dec/bit_reader.c", |
| 8 "dec/bit_reader.h", | 8 "dec/bit_reader.h", |
| 9 "dec/context.h", | 9 "dec/context.h", |
| 10 "dec/decode.c", | 10 "dec/decode.c", |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 23 | 23 |
| 24 configs -= [ "//build/config/compiler:chromium_code" ] | 24 configs -= [ "//build/config/compiler:chromium_code" ] |
| 25 configs += [ "//build/config/compiler:no_chromium_code" ] | 25 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 26 | 26 |
| 27 # Since we are never debug brotli, freeze the optimizations to -O2. | 27 # Since we are never debug brotli, freeze the optimizations to -O2. |
| 28 configs -= [ "//build/config/compiler:default_optimization" ] | 28 configs -= [ "//build/config/compiler:default_optimization" ] |
| 29 configs += [ "//build/config/compiler:optimize_max" ] | 29 configs += [ "//build/config/compiler:optimize_max" ] |
| 30 | 30 |
| 31 include_dirs = [ "dec" ] | 31 include_dirs = [ "dec" ] |
| 32 } | 32 } |
| 33 | |
| 34 if (current_toolchain == host_toolchain) { | |
| 35 executable("bro") { | |
| 36 sources = [ | |
| 37 "enc/backward_references.cc", | |
| 38 "enc/backward_references.h", | |
| 39 "enc/bit_cost.h", | |
| 40 "enc/block_splitter.cc", | |
| 41 "enc/block_splitter.h", | |
| 42 "enc/brotli_bit_stream.cc", | |
| 43 "enc/brotli_bit_stream.h", | |
| 44 "enc/cluster.h", | |
| 45 "enc/command.h", | |
| 46 "enc/compress_fragment.cc", | |
| 47 "enc/compress_fragment.h", | |
| 48 "enc/compress_fragment_two_pass.cc", | |
| 49 "enc/compress_fragment_two_pass.h", | |
| 50 "enc/compressor.h", | |
| 51 "enc/context.h", | |
| 52 "enc/dictionary_hash.h", | |
| 53 "enc/encode.cc", | |
| 54 "enc/encode.h", | |
| 55 "enc/encode_parallel.cc", | |
| 56 "enc/encode_parallel.h", | |
| 57 "enc/entropy_encode.cc", | |
| 58 "enc/entropy_encode.h", | |
| 59 "enc/entropy_encode_static.h", | |
| 60 "enc/fast_log.h", | |
| 61 "enc/find_match_length.h", | |
| 62 "enc/hash.h ", | |
| 63 "enc/histogram.cc", | |
| 64 "enc/histogram.h", | |
| 65 "enc/literal_cost.cc", | |
| 66 "enc/literal_cost.h", | |
| 67 "enc/metablock.cc", | |
| 68 "enc/metablock.h", | |
| 69 "enc/port.h ", | |
| 70 "enc/prefix.h", | |
| 71 "enc/ringbuffer.h", | |
| 72 "enc/static_dict.cc", | |
| 73 "enc/static_dict.h", | |
| 74 "enc/static_dict_lut.h", | |
| 75 "enc/streams.cc", | |
| 76 "enc/streams.h", | |
| 77 "enc/transform.h", | |
| 78 "enc/types.h", | |
| 79 "enc/utf8_util.cc", | |
| 80 "enc/utf8_util.h", | |
| 81 "enc/write_bits.h", | |
| 82 "tools/bro.cc", | |
| 83 ] | |
| 84 deps = [ | |
| 85 ":brotli", | |
| 86 ] | |
| 87 | |
| 88 # Always build release since this is a build tool. | |
| 89 if (is_debug) { | |
| 90 configs -= [ "//build/config:debug" ] | |
| 91 configs += [ "//build/config:release" ] | |
| 92 } | |
| 93 if (is_posix) { | |
| 94 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.
| |
| 95 } | |
| 96 } | |
| 97 } | |
| OLD | NEW |