Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # GYP for fontconfig ( | |
| 2 # | |
| 3 # This has been tested on Windows and Mac. | |
| 4 # This library is native to Linux, so build from source is not necessary. | |
| 5 # | |
| 6 # Additional files for building under Windows are provided here: (LGPL) | |
| 7 # http://comments.gmane.org/gmane.comp.fonts.fontconfig/4438 | |
| 8 | |
| 9 { | |
| 10 'variables': { | |
| 11 'skia_warnings_as_errors': 0, | |
| 12 }, | |
| 13 'targets': [ | |
| 14 { | |
| 15 'target_name': 'fontconfig', | |
| 16 'type': 'static_library', | |
| 17 'dependencies': [ | |
| 18 'freetype.gyp:freetype_static', | |
| 19 ], | |
| 20 'include_dirs' : [ | |
| 21 '../third_party/externals/fontconfig', | |
| 22 | |
| 23 '../third_party/fontconfig/global', | |
| 24 '../third_party/fontconfig/global/src', | |
| 25 ], | |
| 26 'sources': [ | |
| 27 '../third_party/externals/fontconfig/src/fcatomic.c', | |
| 28 '../third_party/externals/fontconfig/src/fcblanks.c', | |
| 29 '../third_party/externals/fontconfig/src/fccache.c', | |
| 30 '../third_party/externals/fontconfig/src/fccfg.c', | |
| 31 '../third_party/externals/fontconfig/src/fccharset.c', | |
| 32 '../third_party/externals/fontconfig/src/fccompat.c', | |
| 33 '../third_party/externals/fontconfig/src/fcdbg.c', | |
| 34 '../third_party/externals/fontconfig/src/fcdefault.c', | |
| 35 '../third_party/externals/fontconfig/src/fcdir.c', | |
| 36 '../third_party/externals/fontconfig/src/fcfreetype.c', | |
| 37 '../third_party/externals/fontconfig/src/fcfs.c', | |
| 38 '../third_party/externals/fontconfig/src/fchash.c', | |
| 39 '../third_party/externals/fontconfig/src/fcinit.c', | |
| 40 '../third_party/externals/fontconfig/src/fclang.c', | |
| 41 '../third_party/externals/fontconfig/src/fclist.c', | |
| 42 '../third_party/externals/fontconfig/src/fcmatch.c', | |
| 43 '../third_party/externals/fontconfig/src/fcmatrix.c', | |
| 44 '../third_party/externals/fontconfig/src/fcname.c', | |
| 45 '../third_party/externals/fontconfig/src/fcobjs.c', | |
| 46 '../third_party/externals/fontconfig/src/fcpat.c', | |
| 47 '../third_party/externals/fontconfig/src/fcserialize.c', | |
| 48 '../third_party/externals/fontconfig/src/fcstat.c', | |
| 49 '../third_party/externals/fontconfig/src/fcstr.c', | |
| 50 '../third_party/externals/fontconfig/src/fcxml.c', | |
| 51 '../third_party/externals/fontconfig/src/ftglue.c', | |
| 52 ], | |
| 53 'defines': [ | |
| 54 'HAVE_CONFIG_H', | |
| 55 ], | |
| 56 'cflags': [ | |
| 57 '-fPIC', | |
| 58 ], | |
| 59 | |
| 60 'direct_dependent_settings': { | |
| 61 'include_dirs': [ | |
| 62 '../third_party/externals/fontconfig', | |
| 63 ], | |
| 64 }, | |
| 65 | |
| 66 'conditions': [ | |
| 67 ['skia_os == "linux"', { | |
|
vandebo (ex-Chrome)
2013/08/01 17:49:51
Above you said this isn't built on Linux.
ducky
2013/08/01 20:40:23
Good point, I guess this is dead code. It probably
| |
| 68 'include_dirs': [ | |
| 69 '../third_party/fontconfig/linux', | |
| 70 '../third_party/fontconfig/linux/src', | |
| 71 ], | |
| 72 'defines': [ | |
| 73 'FC_CACHEDIR='"/var/cache/fontconfig"'', | |
| 74 'FONTCONFIG_PATH='"/etc/fonts"'', | |
| 75 'FC_CACHEDIR=\"/var/cache/fontconfig\"', | |
| 76 'FONTCONFIG_PATH=\"/etc/fonts\"', | |
| 77 ], | |
| 78 }], | |
| 79 ['skia_os == "mac"', { | |
| 80 'include_dirs': [ | |
| 81 '../third_party/fontconfig/mac', | |
| 82 '../third_party/fontconfig/mac/src', | |
| 83 ], | |
| 84 'defines': [ | |
| 85 'FC_CACHEDIR='"/usr/local/var/cache/fontconfig"'', | |
| 86 'FONTCONFIG_PATH='"/usr/local/etc/fonts"'', | |
| 87 'FC_CACHEDIR=\"/usr/local/var/cache/fontconfig\"', | |
| 88 'FONTCONFIG_PATH=\"/usr/local/etc/fonts\"', | |
| 89 ], | |
| 90 'libraries': [ | |
| 91 '$(SDKROOT)/usr/lib/libexpat.dylib', | |
| 92 ], | |
| 93 'xcode_settings': { | |
| 94 'DYLIB_INSTALL_NAME_BASE': '@executable_path', | |
| 95 }, | |
| 96 }], | |
| 97 ['skia_os == "win"', { | |
| 98 'include_dirs': [ | |
| 99 '../third_party/fontconfig/windows', | |
| 100 '../third_party/fontconfig/windows/src', | |
| 101 ], | |
| 102 'sources!': [ | |
| 103 '../third_party/externals/fontconfig/src/fccompat.c', | |
| 104 '../third_party/externals/fontconfig/src/fcxml.c', | |
| 105 ], | |
| 106 'defines': [ | |
| 107 'inline=__inline', # necessary to compile on C, where inline is not recognized and has to be __inline | |
|
vandebo (ex-Chrome)
2013/08/01 17:49:51
80 col?
ducky
2013/08/01 20:40:23
Fixed. Some gypfiles seem to be really bad at foll
| |
| 108 ], | |
| 109 }], | |
| 110 ], | |
| 111 }, | |
| 112 ], | |
| 113 } | |
| 114 | |
| OLD | NEW |