blob: c4c079cfe1214908abab8e660c475ab213fea60d [file] [log] [blame]
reed@google.comb76b34e2011-11-10 15:00:52 +00001{
reed@google.comb76b34e2011-11-10 15:00:52 +00002 'targets': [
3 {
borenet@google.com7158e6a2012-11-01 17:43:44 +00004 'target_name': 'freetype',
djsollen@google.com2679ff82013-07-22 14:12:56 +00005 'type': 'none',
6 'conditions': [
7 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
8 'direct_dependent_settings': {
9 'include_dirs' : [
10 '/usr/include/freetype2',
11 ],
12 'link_settings': {
13 'libraries': [
14 '-lfreetype',
15 ],
16 'defines': [
17 #The font host requires at least FreeType 2.3.0 at runtime.
18 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020300',\
19 'SK_CAN_USE_DLOPEN=1',
20 ],
21 }
22 },
23 }],
24 [ 'skia_os in ["android", "nacl"]', {
25 'dependencies': [
26 'freetype_static'
27 ],
28 'export_dependent_settings': [
29 'freetype_static'
30 ],
31 'direct_dependent_settings': {
32 'defines': [
33 # Both Android and NaCl provide at least FreeType 2.4.0
34 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400',
35 'SK_CAN_USE_DLOPEN=0',
36 ],
37 },
38 }],
39 ],
40 },
41 {
42 'target_name': 'freetype_static',
reed@google.comb76b34e2011-11-10 15:00:52 +000043 'type': 'static_library',
borenet@google.com5661c5b2013-02-27 14:12:55 +000044 'standalone_static_library': 1,
djsollen@google.com2e767c32013-07-23 12:22:11 +000045 'dependencies': [
46 # we are dependent upon PNG for color emoji glyphs
47 'images.gyp:images'
48 ],
commit-bot@chromium.org85e9db02013-08-20 16:34:34 +000049 'includes': [
50 # common freetype sources needed for both the base Skia build and the
51 # libpoppler build for testing only
52 'freetype.gypi',
reed@google.comb76b34e2011-11-10 15:00:52 +000053 ],
54 'direct_dependent_settings': {
55 'include_dirs': [
djsollen@google.combcc6d7d2013-07-23 15:51:12 +000056 '../third_party/freetype/include_overrides',
reed@google.comb76b34e2011-11-10 15:00:52 +000057 ],
58 },
borenet@google.com7158e6a2012-11-01 17:43:44 +000059 'conditions': [
borenet@google.com7158e6a2012-11-01 17:43:44 +000060 [ 'skia_os == "android"', {
61 # These flags are used by the Android OS. They are probably overkill
62 # for Skia, but we add them for consistency.
63 'cflags': [
64 '-W',
65 '-Wall',
66 '-fPIC',
67 '-DPIC',
68 '-DDARWIN_NO_CARBON',
69 '-DFT2_BUILD_LIBRARY',
70 '-O2',
71 ],
borenet@google.com7158e6a2012-11-01 17:43:44 +000072 }],
73 ],
reed@google.comb76b34e2011-11-10 15:00:52 +000074 },
commit-bot@chromium.org85e9db02013-08-20 16:34:34 +000075 {
76 'target_name': 'freetype_poppler',
77 'type': 'static_library',
78 'standalone_static_library': 1,
79 'includes': [
80 'freetype.gypi',
81 ],
82 'sources': [
83 # additional components used by poppler
84 '../third_party/externals/freetype/src/base/ftbdf.c',
85 '../third_party/externals/freetype/src/base/ftpfr.c',
86
87 '../third_party/externals/freetype/src/bdf/bdf.c',
88 '../third_party/externals/freetype/src/cid/type1cid.c',
89 '../third_party/externals/freetype/src/pcf/pcf.c',
90 '../third_party/externals/freetype/src/pfr/pfr.c',
91 '../third_party/externals/freetype/src/psaux/psaux.c',
92 '../third_party/externals/freetype/src/type1/type1.c',
93 '../third_party/externals/freetype/src/type42/type42.c',
94 '../third_party/externals/freetype/src/winfonts/winfnt.c',
95
96 '../third_party/externals/freetype/src/gzip/ftgzip.c',
97 '../third_party/externals/freetype/src/lzw/ftlzw.c',
98 ],
99 },
reed@google.comb76b34e2011-11-10 15:00:52 +0000100 ],
101}
102
103# Local Variables:
104# tab-width:2
105# indent-tabs-mode:nil
106# End:
107# vim: set expandtab tabstop=2 shiftwidth=2: