| OLD | NEW |
| (Empty) | |
| 1 # Copyright (c) 2014 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 assert(is_linux, "This file should only be depended on from Linux.") |
| 6 |
| 7 config("freetype2_config") { |
| 8 include_dirs = [ |
| 9 "include", |
| 10 "src/include", |
| 11 ] |
| 12 } |
| 13 |
| 14 shared_library("freetype2") { |
| 15 output_name = "freetype" |
| 16 output_extension = "so.6" |
| 17 |
| 18 sources = [ |
| 19 "src/src/autofit/autofit.c", |
| 20 "src/src/base/ftbase.c", |
| 21 "src/src/base/ftbbox.c", |
| 22 "src/src/base/ftbdf.c", |
| 23 "src/src/base/ftbitmap.c", |
| 24 "src/src/base/ftcid.c", |
| 25 "src/src/base/ftdebug.c", |
| 26 "src/src/base/ftfntfmt.c", |
| 27 "src/src/base/ftfstype.c", |
| 28 "src/src/base/ftgasp.c", |
| 29 "src/src/base/ftglyph.c", |
| 30 "src/src/base/ftgxval.c", |
| 31 "src/src/base/ftinit.c", |
| 32 "src/src/base/ftlcdfil.c", |
| 33 "src/src/base/ftmm.c", |
| 34 "src/src/base/ftstroke.c", |
| 35 "src/src/base/ftsynth.c", |
| 36 "src/src/base/ftsystem.c", |
| 37 "src/src/base/fttype1.c", |
| 38 "src/src/bdf/bdf.c", |
| 39 "src/src/cff/cff.c", |
| 40 "src/src/gzip/ftgzip.c", |
| 41 "src/src/lzw/ftlzw.c", |
| 42 "src/src/psaux/psaux.c", |
| 43 "src/src/pshinter/pshinter.c", |
| 44 "src/src/psnames/psnames.c", |
| 45 "src/src/raster/raster.c", |
| 46 "src/src/sfnt/sfnt.c", |
| 47 "src/src/smooth/smooth.c", |
| 48 "src/src/truetype/truetype.c", |
| 49 "src/src/type1/type1.c", |
| 50 ] |
| 51 |
| 52 defines = [ |
| 53 "FT_CONFIG_OPTION_SYSTEM_ZLIB", |
| 54 |
| 55 # TODO: Enable this option and figure out a way to address the cyclic |
| 56 # dependency with HarfBuzz. crbug.com/617168 |
| 57 # "FT_CONFIG_OPTION_USE_HARFBUZZ", |
| 58 "FT2_BUILD_LIBRARY", |
| 59 "FT_CONFIG_CONFIG_H=<freetype-custom-config/ftconfig.h>", # See comments in
README.chromium. |
| 60 "FT_CONFIG_MODULES_H=<freetype-custom-config/ftmodule.h>", # See comments i
n README.chromium. |
| 61 "FT_CONFIG_OPTION_H=<freetype-custom-config/ftoption.h>", # See comments in
README.chromium. |
| 62 ] |
| 63 |
| 64 configs -= [ "//build/config/compiler:chromium_code" ] |
| 65 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 66 configs += [ ":freetype2_config" ] |
| 67 |
| 68 public_configs = [ ":freetype2_config" ] |
| 69 |
| 70 deps = [ |
| 71 "//build/config/sanitizers:deps", |
| 72 "//third_party/libpng", |
| 73 "//third_party/zlib", |
| 74 ] |
| 75 } |
| OLD | NEW |