1 # Target for building freetype.
5 'target_name': 'freetype',
8 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
9 'direct_dependent_settings': {
11 '/usr/include/freetype2',
18 #The font host requires at least FreeType 2.3.0 at runtime.
19 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020300',\
20 'SK_CAN_USE_DLOPEN=1',
25 [ 'skia_os in ["android", "nacl"]', {
29 'export_dependent_settings': [
32 'direct_dependent_settings': {
34 # Both Android and NaCl provide at least FreeType 2.4.0
35 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400',
36 'SK_CAN_USE_DLOPEN=0',
40 [ 'skia_android_framework', {
43 'external/freetype/include',
48 # Remove these, and use the system's freetype instead.
52 'export_dependent_settings!': [
59 'target_name': 'freetype_static',
60 'type': 'static_library',
61 'standalone_static_library': 1,
63 # we are dependent upon PNG for color emoji glyphs
67 # common freetype sources needed for both the base Skia build and the
68 # libpoppler build for testing only
72 '../third_party/freetype/include_overrides',
74 'direct_dependent_settings': {
76 '../third_party/freetype/include_overrides',
80 [ 'skia_os == "android"', {
81 # These flags are used by the Android OS. They are probably overkill
82 # for Skia, but we add them for consistency.
89 '-DFT2_BUILD_LIBRARY',
96 'target_name': 'freetype_poppler',
97 'type': 'static_library',
98 'standalone_static_library': 1,
103 # additional components used by poppler
104 '../third_party/externals/freetype/src/base/ftbdf.c',
105 '../third_party/externals/freetype/src/base/ftpfr.c',
107 '../third_party/externals/freetype/src/bdf/bdf.c',
108 '../third_party/externals/freetype/src/cid/type1cid.c',
109 '../third_party/externals/freetype/src/pcf/pcf.c',
110 '../third_party/externals/freetype/src/pfr/pfr.c',
111 '../third_party/externals/freetype/src/psaux/psaux.c',
112 '../third_party/externals/freetype/src/type1/type1.c',
113 '../third_party/externals/freetype/src/type42/type42.c',
114 '../third_party/externals/freetype/src/winfonts/winfnt.c',
116 '../third_party/externals/freetype/src/gzip/ftgzip.c',
117 '../third_party/externals/freetype/src/lzw/ftlzw.c',