blob: 30afb064dcb2979981fefb3e731fd12d2c9f24d6 [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.org327c0812013-08-20 18:57:01 +000049 'includes': [
50 # common freetype sources needed for both the base Skia build and the
51 # libpoppler build for testing only
52 'freetype.gypi',
vandebo@chromium.org54c538e2013-08-20 17:06:22 +000053 ],
54 'include_dirs': [
55 '../third_party/freetype/include_overrides',
reed@google.comb76b34e2011-11-10 15:00:52 +000056 ],
57 'direct_dependent_settings': {
58 'include_dirs': [
djsollen@google.combcc6d7d2013-07-23 15:51:12 +000059 '../third_party/freetype/include_overrides',
reed@google.comb76b34e2011-11-10 15:00:52 +000060 ],
61 },
borenet@google.com7158e6a2012-11-01 17:43:44 +000062 'conditions': [
borenet@google.com7158e6a2012-11-01 17:43:44 +000063 [ 'skia_os == "android"', {
64 # These flags are used by the Android OS. They are probably overkill
65 # for Skia, but we add them for consistency.
66 'cflags': [
67 '-W',
68 '-Wall',
69 '-fPIC',
70 '-DPIC',
71 '-DDARWIN_NO_CARBON',
72 '-DFT2_BUILD_LIBRARY',
73 '-O2',
74 ],
borenet@google.com7158e6a2012-11-01 17:43:44 +000075 }],
76 ],
reed@google.comb76b34e2011-11-10 15:00:52 +000077 },
commit-bot@chromium.org327c0812013-08-20 18:57:01 +000078 {
79 'target_name': 'freetype_poppler',
80 'type': 'static_library',
81 'standalone_static_library': 1,
82 'includes': [
83 'freetype.gypi',
84 ],
85 'sources': [
86 # additional components used by poppler
87 '../third_party/externals/freetype/src/base/ftbdf.c',
88 '../third_party/externals/freetype/src/base/ftpfr.c',
89
90 '../third_party/externals/freetype/src/bdf/bdf.c',
91 '../third_party/externals/freetype/src/cid/type1cid.c',
92 '../third_party/externals/freetype/src/pcf/pcf.c',
93 '../third_party/externals/freetype/src/pfr/pfr.c',
94 '../third_party/externals/freetype/src/psaux/psaux.c',
95 '../third_party/externals/freetype/src/type1/type1.c',
96 '../third_party/externals/freetype/src/type42/type42.c',
97 '../third_party/externals/freetype/src/winfonts/winfnt.c',
98
99 '../third_party/externals/freetype/src/gzip/ftgzip.c',
100 '../third_party/externals/freetype/src/lzw/ftlzw.c',
101 ],
102 },
reed@google.comb76b34e2011-11-10 15:00:52 +0000103 ],
104}
105
106# Local Variables:
107# tab-width:2
108# indent-tabs-mode:nil
109# End:
110# vim: set expandtab tabstop=2 shiftwidth=2: