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