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