OLD | NEW |
(Empty) | |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//build/config/linux/pkg_config.gni") |
| 6 import("//build/shim_headers.gni") |
| 7 |
| 8 pkg_config("freetype_config") { |
| 9 packages = [ "freetype2" ] |
| 10 } |
| 11 |
| 12 shim_headers("freetype_shim") { |
| 13 root_path = "src/include" |
| 14 headers = [ |
| 15 # This list can easily be updated using the command below: |
| 16 # find third_party/freetype/src/include \ |
| 17 # -iname '*.h' -printf '"%p",\n' | \ |
| 18 # sed -e 's|third_party/freetype/src/include/||' | sort -u |
| 19 "freetype/config/ftconfig.h", |
| 20 "freetype/config/ftheader.h", |
| 21 "freetype/config/ftmodule.h", |
| 22 "freetype/config/ftoption.h", |
| 23 "freetype/config/ftstdlib.h", |
| 24 "freetype/freetype.h", |
| 25 "freetype/ftadvanc.h", |
| 26 "freetype/ftautoh.h", |
| 27 "freetype/ftbbox.h", |
| 28 "freetype/ftbdf.h", |
| 29 "freetype/ftbitmap.h", |
| 30 "freetype/ftbzip2.h", |
| 31 "freetype/ftcache.h", |
| 32 "freetype/ftcffdrv.h", |
| 33 "freetype/ftchapters.h", |
| 34 "freetype/ftcid.h", |
| 35 "freetype/fterrdef.h", |
| 36 "freetype/fterrors.h", |
| 37 "freetype/ftfntfmt.h", |
| 38 "freetype/ftgasp.h", |
| 39 "freetype/ftglyph.h", |
| 40 "freetype/ftgxval.h", |
| 41 "freetype/ftgzip.h", |
| 42 "freetype/ftimage.h", |
| 43 "freetype/ftincrem.h", |
| 44 "freetype/ftlcdfil.h", |
| 45 "freetype/ftlist.h", |
| 46 "freetype/ftlzw.h", |
| 47 "freetype/ftmac.h", |
| 48 "freetype/ftmm.h", |
| 49 "freetype/ftmodapi.h", |
| 50 "freetype/ftmoderr.h", |
| 51 "freetype/ftotval.h", |
| 52 "freetype/ftoutln.h", |
| 53 "freetype/ftpcfdrv.h", |
| 54 "freetype/ftpfr.h", |
| 55 "freetype/ftrender.h", |
| 56 "freetype/ftsizes.h", |
| 57 "freetype/ftsnames.h", |
| 58 "freetype/ftstroke.h", |
| 59 "freetype/ftsynth.h", |
| 60 "freetype/ftsystem.h", |
| 61 "freetype/fttrigon.h", |
| 62 "freetype/ftttdrv.h", |
| 63 "freetype/fttypes.h", |
| 64 "freetype/ftwinfnt.h", |
| 65 "freetype/internal/autohint.h", |
| 66 "freetype/internal/ftcalc.h", |
| 67 "freetype/internal/ftdebug.h", |
| 68 "freetype/internal/ftdriver.h", |
| 69 "freetype/internal/ftgloadr.h", |
| 70 "freetype/internal/fthash.h", |
| 71 "freetype/internal/ftmemory.h", |
| 72 "freetype/internal/ftobjs.h", |
| 73 "freetype/internal/ftpic.h", |
| 74 "freetype/internal/ftrfork.h", |
| 75 "freetype/internal/ftserv.h", |
| 76 "freetype/internal/ftstream.h", |
| 77 "freetype/internal/fttrace.h", |
| 78 "freetype/internal/ftvalid.h", |
| 79 "freetype/internal/internal.h", |
| 80 "freetype/internal/psaux.h", |
| 81 "freetype/internal/pshints.h", |
| 82 "freetype/internal/services/svbdf.h", |
| 83 "freetype/internal/services/svcid.h", |
| 84 "freetype/internal/services/svfntfmt.h", |
| 85 "freetype/internal/services/svgldict.h", |
| 86 "freetype/internal/services/svgxval.h", |
| 87 "freetype/internal/services/svkern.h", |
| 88 "freetype/internal/services/svmetric.h", |
| 89 "freetype/internal/services/svmm.h", |
| 90 "freetype/internal/services/svotval.h", |
| 91 "freetype/internal/services/svpfr.h", |
| 92 "freetype/internal/services/svpostnm.h", |
| 93 "freetype/internal/services/svprop.h", |
| 94 "freetype/internal/services/svpscmap.h", |
| 95 "freetype/internal/services/svpsinfo.h", |
| 96 "freetype/internal/services/svsfnt.h", |
| 97 "freetype/internal/services/svttcmap.h", |
| 98 "freetype/internal/services/svtteng.h", |
| 99 "freetype/internal/services/svttglyf.h", |
| 100 "freetype/internal/services/svwinfnt.h", |
| 101 "freetype/internal/sfnt.h", |
| 102 "freetype/internal/t1types.h", |
| 103 "freetype/internal/tttypes.h", |
| 104 "freetype/t1tables.h", |
| 105 "freetype/ttnameid.h", |
| 106 "freetype/tttables.h", |
| 107 "freetype/tttags.h", |
| 108 "freetype/ttunpat.h", |
| 109 "ft2build.h", |
| 110 ] |
| 111 } |
| 112 |
| 113 source_set("freetype") { |
| 114 deps = [ |
| 115 ":freetype_shim", |
| 116 ] |
| 117 public_configs = [ ":freetype_config" ] |
| 118 } |
| 119 |
| 120 source_set("bootstrap_freetype_for_harfbuzz") { |
| 121 deps = [ |
| 122 ":freetype_shim", |
| 123 ] |
| 124 public_configs = [ ":freetype_config" ] |
| 125 } |
OLD | NEW |