| 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 # The reduction of FreeType files to a minimum triggers -Wunused-function | 17 # The reduction of FreeType files to a minimum triggers -Wunused-function |
| 18 # warnings in ftbase.c | 18 # warnings in ftbase.c |
| 19 cflags += [ "-Wno-unused-function" ] | 19 cflags += [ "-Wno-unused-function" ] |
| 20 } | 20 } |
| 21 | 21 |
| 22 config("freetype-visibility") { | 22 config("freetype-visibility") { |
| 23 cflags = [] | 23 cflags = [] |
| 24 cflags += [ "-fvisibility=default" ] | 24 cflags += [ "-fvisibility=default" ] |
| 25 } | 25 } |
| 26 | 26 |
| 27 component("freetype") { | 27 component("freetype") { |
| 28 output_name = "freetype" | 28 if (is_linux) { |
| 29 output_extension = "so.6" | 29 output_name = "freetype" |
| 30 output_extension = "so.6" |
| 31 } |
| 32 |
| 30 sources = [ | 33 sources = [ |
| 31 "src/src/autofit/autofit.c", | 34 "src/src/autofit/autofit.c", |
| 32 "src/src/base/ftbase.c", | 35 "src/src/base/ftbase.c", |
| 33 "src/src/base/ftbbox.c", | 36 "src/src/base/ftbbox.c", |
| 34 "src/src/base/ftbitmap.c", | 37 "src/src/base/ftbitmap.c", |
| 35 "src/src/base/ftfntfmt.c", | 38 "src/src/base/ftfntfmt.c", |
| 36 "src/src/base/ftfstype.c", | 39 "src/src/base/ftfstype.c", |
| 37 "src/src/base/ftgasp.c", | 40 "src/src/base/ftgasp.c", |
| 38 "src/src/base/ftglyph.c", | 41 "src/src/base/ftglyph.c", |
| 39 "src/src/base/ftinit.c", | 42 "src/src/base/ftinit.c", |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 "//build/config/compiler:no_chromium_code", | 75 "//build/config/compiler:no_chromium_code", |
| 73 ":freetype-warnings", | 76 ":freetype-warnings", |
| 74 ":freetype-visibility" | 77 ":freetype-visibility" |
| 75 ] | 78 ] |
| 76 | 79 |
| 77 deps = [ | 80 deps = [ |
| 78 "//third_party/libpng", | 81 "//third_party/libpng", |
| 79 "//third_party/zlib", | 82 "//third_party/zlib", |
| 80 ] | 83 ] |
| 81 } | 84 } |
| OLD | NEW |