OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 Google Inc. |
| 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 |
| 6 declare_args() { |
| 7 } |
| 8 |
| 9 import("../third_party.gni") |
| 10 |
| 11 if (is_android) { |
| 12 third_party("freetype2") { |
| 13 public_include_dirs = [ "../externals/freetype/include" ] |
| 14 |
| 15 deps = [ |
| 16 "//third_party/libpng", |
| 17 ] |
| 18 |
| 19 include_dirs = [ "../freetype" ] |
| 20 defines = [ |
| 21 "FT2_BUILD_LIBRARY", |
| 22 "FT_CONFIG_MODULES_H=<include/freetype-android/ftmodule.h>", |
| 23 "FT_CONFIG_OPTIONS_H=<include/freetype-android/ftoption.h>", |
| 24 ] |
| 25 |
| 26 sources = [ |
| 27 "../externals/freetype/src/autofit/autofit.c", |
| 28 "../externals/freetype/src/base/ftbase.c", |
| 29 "../externals/freetype/src/base/ftbbox.c", |
| 30 "../externals/freetype/src/base/ftbitmap.c", |
| 31 "../externals/freetype/src/base/ftdebug.c", |
| 32 "../externals/freetype/src/base/ftfntfmt.c", |
| 33 "../externals/freetype/src/base/ftfstype.c", |
| 34 "../externals/freetype/src/base/ftgasp.c", |
| 35 "../externals/freetype/src/base/ftglyph.c", |
| 36 "../externals/freetype/src/base/ftinit.c", |
| 37 "../externals/freetype/src/base/ftlcdfil.c", |
| 38 "../externals/freetype/src/base/ftmm.c", |
| 39 "../externals/freetype/src/base/ftpatent.c", |
| 40 "../externals/freetype/src/base/ftstroke.c", |
| 41 "../externals/freetype/src/base/ftsynth.c", |
| 42 "../externals/freetype/src/base/ftsystem.c", |
| 43 "../externals/freetype/src/base/fttype1.c", |
| 44 "../externals/freetype/src/base/ftwinfnt.c", |
| 45 "../externals/freetype/src/cff/cff.c", |
| 46 "../externals/freetype/src/gzip/ftgzip.c", |
| 47 "../externals/freetype/src/pshinter/pshinter.c", |
| 48 "../externals/freetype/src/psnames/psnames.c", |
| 49 "../externals/freetype/src/raster/raster.c", |
| 50 "../externals/freetype/src/sfnt/sfnt.c", |
| 51 "../externals/freetype/src/smooth/smooth.c", |
| 52 "../externals/freetype/src/truetype/truetype.c", |
| 53 ] |
| 54 } |
| 55 } else { |
| 56 config("system_freetype2") { |
| 57 include_dirs = [ "/usr/include/freetype2" ] |
| 58 libs = [ "freetype" ] |
| 59 } |
| 60 group("freetype2") { |
| 61 public_configs = [ ":system_freetype2" ] |
| 62 } |
| 63 } |
OLD | NEW |