Index: gyp/fontconfig.gyp |
diff --git a/gyp/fontconfig.gyp b/gyp/fontconfig.gyp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..156676b867f4e38be0db7ef0485cacd262e377b6 |
--- /dev/null |
+++ b/gyp/fontconfig.gyp |
@@ -0,0 +1,114 @@ |
+# GYP for fontconfig ( |
+# |
+# This has been tested on Windows and Mac. |
+# This library is native to Linux, so build from source is not necessary. |
+# |
+# Additional files for building under Windows are provided here: (LGPL) |
+# http://comments.gmane.org/gmane.comp.fonts.fontconfig/4438 |
+ |
+{ |
+ 'variables': { |
+ 'skia_warnings_as_errors': 0, |
+ }, |
+ 'targets': [ |
+ { |
+ 'target_name': 'fontconfig', |
+ 'type': 'static_library', |
+ 'dependencies': [ |
+ 'freetype.gyp:freetype_static', |
+ ], |
+ 'include_dirs' : [ |
+ '../third_party/externals/fontconfig', |
+ |
+ '../third_party/fontconfig/global', |
+ '../third_party/fontconfig/global/src', |
+ ], |
+ 'sources': [ |
+ '../third_party/externals/fontconfig/src/fcatomic.c', |
+ '../third_party/externals/fontconfig/src/fcblanks.c', |
+ '../third_party/externals/fontconfig/src/fccache.c', |
+ '../third_party/externals/fontconfig/src/fccfg.c', |
+ '../third_party/externals/fontconfig/src/fccharset.c', |
+ '../third_party/externals/fontconfig/src/fccompat.c', |
+ '../third_party/externals/fontconfig/src/fcdbg.c', |
+ '../third_party/externals/fontconfig/src/fcdefault.c', |
+ '../third_party/externals/fontconfig/src/fcdir.c', |
+ '../third_party/externals/fontconfig/src/fcfreetype.c', |
+ '../third_party/externals/fontconfig/src/fcfs.c', |
+ '../third_party/externals/fontconfig/src/fchash.c', |
+ '../third_party/externals/fontconfig/src/fcinit.c', |
+ '../third_party/externals/fontconfig/src/fclang.c', |
+ '../third_party/externals/fontconfig/src/fclist.c', |
+ '../third_party/externals/fontconfig/src/fcmatch.c', |
+ '../third_party/externals/fontconfig/src/fcmatrix.c', |
+ '../third_party/externals/fontconfig/src/fcname.c', |
+ '../third_party/externals/fontconfig/src/fcobjs.c', |
+ '../third_party/externals/fontconfig/src/fcpat.c', |
+ '../third_party/externals/fontconfig/src/fcserialize.c', |
+ '../third_party/externals/fontconfig/src/fcstat.c', |
+ '../third_party/externals/fontconfig/src/fcstr.c', |
+ '../third_party/externals/fontconfig/src/fcxml.c', |
+ '../third_party/externals/fontconfig/src/ftglue.c', |
+ ], |
+ 'defines': [ |
+ 'HAVE_CONFIG_H', |
+ ], |
+ 'cflags': [ |
+ '-fPIC', |
+ ], |
+ |
+ 'direct_dependent_settings': { |
+ 'include_dirs': [ |
+ '../third_party/externals/fontconfig', |
+ ], |
+ }, |
+ |
+ 'conditions': [ |
+ ['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
|
+ 'include_dirs': [ |
+ '../third_party/fontconfig/linux', |
+ '../third_party/fontconfig/linux/src', |
+ ], |
+ 'defines': [ |
+ 'FC_CACHEDIR='"/var/cache/fontconfig"'', |
+ 'FONTCONFIG_PATH='"/etc/fonts"'', |
+ 'FC_CACHEDIR=\"/var/cache/fontconfig\"', |
+ 'FONTCONFIG_PATH=\"/etc/fonts\"', |
+ ], |
+ }], |
+ ['skia_os == "mac"', { |
+ 'include_dirs': [ |
+ '../third_party/fontconfig/mac', |
+ '../third_party/fontconfig/mac/src', |
+ ], |
+ 'defines': [ |
+ 'FC_CACHEDIR='"/usr/local/var/cache/fontconfig"'', |
+ 'FONTCONFIG_PATH='"/usr/local/etc/fonts"'', |
+ 'FC_CACHEDIR=\"/usr/local/var/cache/fontconfig\"', |
+ 'FONTCONFIG_PATH=\"/usr/local/etc/fonts\"', |
+ ], |
+ 'libraries': [ |
+ '$(SDKROOT)/usr/lib/libexpat.dylib', |
+ ], |
+ 'xcode_settings': { |
+ 'DYLIB_INSTALL_NAME_BASE': '@executable_path', |
+ }, |
+ }], |
+ ['skia_os == "win"', { |
+ 'include_dirs': [ |
+ '../third_party/fontconfig/windows', |
+ '../third_party/fontconfig/windows/src', |
+ ], |
+ 'sources!': [ |
+ '../third_party/externals/fontconfig/src/fccompat.c', |
+ '../third_party/externals/fontconfig/src/fcxml.c', |
+ ], |
+ 'defines': [ |
+ '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
|
+ ], |
+ }], |
+ ], |
+ }, |
+ ], |
+} |
+ |