Home | History | Annotate | Download | only in freetype
      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
      3 # found in the LICENSE file.
      4 
      5 assert(is_android, "This library is only used on Android")
      6 
      7 config("freetype_config") {
      8   include_dirs = [ "include" ]
      9 }
     10 
     11 source_set("freetype") {
     12   sources = [
     13     # The following files are not sorted alphabetically, but in the
     14     # same order as in Android.mk to ease maintenance.
     15     "src/base/ftbbox.c",
     16     "src/base/ftbitmap.c",
     17     "src/base/ftfstype.c",
     18     "src/base/ftglyph.c",
     19     "src/base/ftlcdfil.c",
     20     "src/base/ftstroke.c",
     21     "src/base/fttype1.c",
     22     "src/base/ftxf86.c",
     23     "src/base/ftbase.c",
     24     "src/base/ftsystem.c",
     25     "src/base/ftinit.c",
     26     "src/base/ftgasp.c",
     27     "src/raster/raster.c",
     28     "src/sfnt/sfnt.c",
     29     "src/smooth/smooth.c",
     30     "src/autofit/autofit.c",
     31     "src/truetype/truetype.c",
     32     "src/cff/cff.c",
     33     "src/psnames/psnames.c",
     34     "src/pshinter/pshinter.c",
     35   ]
     36 
     37   defines = [
     38     "FT2_BUILD_LIBRARY",
     39     "DARWIN_NO_CARBON",
     40   ]
     41 
     42   include_dirs = [
     43     "build",
     44   ]
     45 
     46   public_configs = [ ":freetype_config" ]
     47 
     48   deps = [
     49     "//third_party/libpng",
     50     "//third_party/zlib",
     51   ]
     52 }
     53