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 import("//build/config/chromecast_build.gni") | 5 import("//build/config/chromecast_build.gni") |
6 | 6 |
7 config("freetype_config") { | 7 config("freetype_config") { |
8 include_dirs = [ | 8 include_dirs = [ |
9 "include", | 9 "include", |
10 "src/include", | 10 "src/include", |
11 ] | 11 ] |
12 } | 12 } |
13 | 13 |
14 config("freetype-warnings") { | 14 config("freetype-warnings") { |
15 cflags = [] | 15 cflags = [] |
16 | 16 |
17 if (is_clang) { | 17 if (is_clang) { |
18 # The reduction of FreeType files to a minimum triggers -Wunused-function | 18 # The reduction of FreeType files to a minimum triggers -Wunused-function |
19 # warnings in ftbase.c | 19 # warnings in ftbase.c |
20 cflags += [ "-Wno-unused-function" ] | 20 |
| 21 # "-Wno-int-to-pointer-cast" tracked by |
| 22 # https://savannah.nongnu.org/bugs/index.php?50560, |
| 23 # TODO(drott): Remove this once we roll past 7aeee3c50f2656b65f. |
| 24 cflags += [ |
| 25 "-Wno-unused-function", |
| 26 "-Wno-int-to-pointer-cast", |
| 27 ] |
21 } | 28 } |
22 } | 29 } |
23 | 30 |
24 component("freetype") { | 31 component("freetype") { |
25 if (is_linux) { | 32 if (is_linux) { |
26 output_name = "freetype" | 33 output_name = "freetype" |
27 output_extension = "so.6" | 34 output_extension = "so.6" |
28 } | 35 } |
29 | 36 |
30 sources = [ | 37 sources = [ |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 configs -= [ "//build/config/compiler:chromium_code" ] | 90 configs -= [ "//build/config/compiler:chromium_code" ] |
84 configs += [ "//build/config/compiler:no_chromium_code" ] | 91 configs += [ "//build/config/compiler:no_chromium_code" ] |
85 | 92 |
86 configs += [ ":freetype-warnings" ] | 93 configs += [ ":freetype-warnings" ] |
87 | 94 |
88 deps = [ | 95 deps = [ |
89 "//third_party/libpng", | 96 "//third_party/libpng", |
90 "//third_party/zlib", | 97 "//third_party/zlib", |
91 ] | 98 ] |
92 } | 99 } |
OLD | NEW |