| 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 assert(is_android, "This library is only used on Android") | 5 import("//build/config/chromecast_build.gni") |
| 6 |
| 7 assert(is_android || is_chromecast, |
| 8 "This library is only used on Android or Chromecast") |
| 6 | 9 |
| 7 config("freetype_config") { | 10 config("freetype_config") { |
| 8 include_dirs = [ | 11 include_dirs = [ |
| 9 "include", | 12 "include", |
| 10 "src/include", | 13 "src/include", |
| 11 ] | 14 ] |
| 12 } | 15 } |
| 13 | 16 |
| 14 source_set("freetype") { | 17 source_set("freetype") { |
| 15 sources = [ | 18 sources = [ |
| (...skipping 16 matching lines...) Expand all Loading... |
| 32 "src/src/cff/cff.c", | 35 "src/src/cff/cff.c", |
| 33 "src/src/gzip/ftgzip.c", | 36 "src/src/gzip/ftgzip.c", |
| 34 "src/src/pshinter/pshinter.c", | 37 "src/src/pshinter/pshinter.c", |
| 35 "src/src/psnames/psnames.c", | 38 "src/src/psnames/psnames.c", |
| 36 "src/src/raster/raster.c", | 39 "src/src/raster/raster.c", |
| 37 "src/src/sfnt/sfnt.c", | 40 "src/src/sfnt/sfnt.c", |
| 38 "src/src/smooth/smooth.c", | 41 "src/src/smooth/smooth.c", |
| 39 "src/src/truetype/truetype.c", | 42 "src/src/truetype/truetype.c", |
| 40 ] | 43 ] |
| 41 | 44 |
| 45 if (is_chromecast) { |
| 46 sources += [ "src/src/base/ftbdf.c" ] |
| 47 } |
| 48 |
| 42 defines = [ | 49 defines = [ |
| 43 "FT2_BUILD_LIBRARY", | 50 "FT2_BUILD_LIBRARY", |
| 44 "DARWIN_NO_CARBON", | 51 "DARWIN_NO_CARBON", |
| 45 | 52 |
| 46 # Long directory name to avoid accidentally using wrong headers. | 53 # Long directory name to avoid accidentally using wrong headers. |
| 47 "FT_CONFIG_MODULES_H=<freetype-android-config/ftmodule.h>", | 54 "FT_CONFIG_MODULES_H=<freetype-android-config/ftmodule.h>", |
| 48 "FT_CONFIG_OPTIONS_H=<freetype-android-config/ftoption.h>", | 55 "FT_CONFIG_OPTIONS_H=<freetype-android-config/ftoption.h>", |
| 49 ] | 56 ] |
| 50 | 57 |
| 51 public_configs = [ ":freetype_config" ] | 58 public_configs = [ ":freetype_config" ] |
| 52 configs -= [ "//build/config/compiler:chromium_code" ] | 59 configs -= [ "//build/config/compiler:chromium_code" ] |
| 53 configs += [ "//build/config/compiler:no_chromium_code" ] | 60 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 54 | 61 |
| 55 deps = [ | 62 deps = [ |
| 56 "//third_party/libpng", | 63 "//third_party/libpng", |
| 57 "//third_party/zlib", | 64 "//third_party/zlib", |
| 58 ] | 65 ] |
| 59 } | 66 } |
| OLD | NEW |