OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 config("woff2_warnings") { |
| 6 cflags = [ "-Wno-unused-function" ] |
| 7 } |
| 8 |
5 source_set("woff2_dec") { | 9 source_set("woff2_dec") { |
6 sources = [ | 10 sources = [ |
7 "src/buffer.h", | 11 "src/buffer.h", |
8 "src/round.h", | 12 "src/round.h", |
9 "src/store_bytes.h", | 13 "src/store_bytes.h", |
10 "src/table_tags.cc", | 14 "src/table_tags.cc", |
11 "src/table_tags.h", | 15 "src/table_tags.h", |
12 "src/variable_length.cc", | 16 "src/variable_length.cc", |
13 "src/variable_length.h", | 17 "src/variable_length.h", |
14 "src/woff2_common.cc", | 18 "src/woff2_common.cc", |
15 "src/woff2_common.h", | 19 "src/woff2_common.h", |
16 "src/woff2_dec.cc", | 20 "src/woff2_dec.cc", |
17 "src/woff2_dec.h", | 21 "src/woff2_dec.h", |
| 22 "src/woff2_out.cc", |
| 23 "src/woff2_out.h", |
18 ] | 24 ] |
19 | 25 |
20 configs -= [ "//build/config/compiler:chromium_code" ] | 26 configs -= [ "//build/config/compiler:chromium_code" ] |
21 configs += [ "//build/config/compiler:no_chromium_code" ] | 27 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 28 configs += [ ":woff2_warnings" ] |
22 | 29 |
23 deps = [ | 30 deps = [ |
24 "//third_party/brotli", | 31 "//third_party/brotli", |
25 ] | 32 ] |
26 | 33 |
27 include_dirs = [ | 34 include_dirs = [ |
28 "src", | 35 "src", |
29 "//third_party/brotli/dec", | 36 "//third_party/brotli/dec", |
30 ] | 37 ] |
31 | 38 |
32 # TODO(ksakamoto): http://crbug.com/167187 | 39 # TODO(ksakamoto): http://crbug.com/167187 |
33 if (is_win) { | 40 if (is_win) { |
34 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 41 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
35 } | 42 } |
36 } | 43 } |
OLD | NEW |