diff options
author | 2014-05-20 15:07:53 +0000 | |
---|---|---|
committer | 2014-05-20 15:07:53 +0000 | |
commit | 3056bdd2364fe1aa68f4ec7b0fe07740c3e8d123 (patch) | |
tree | 7ed3a99d0611db7d5b482226945b75e8fb719b66 /gyp/fontconfig.gyp | |
parent | 9e967ad6e54c1e2e5ffb9d6e9eb8414e6b36b0e3 (diff) |
Since we're only using it on Linux now, just require poppler as a system dependency.
The Ubuntu package needed is libpoppler-cpp-dev.
iconv and fontconfig were only used as Poppler dependencies. bson_c is also unused.
BUG=skia:
R=reed@google.com, rmistry@google.com, borenet@google.com, halcanary@google.com, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/294683003
git-svn-id: http://skia.googlecode.com/svn/trunk@14802 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gyp/fontconfig.gyp')
-rw-r--r-- | gyp/fontconfig.gyp | 199 |
1 files changed, 0 insertions, 199 deletions
diff --git a/gyp/fontconfig.gyp b/gyp/fontconfig.gyp deleted file mode 100644 index 6575fe2765..0000000000 --- a/gyp/fontconfig.gyp +++ /dev/null @@ -1,199 +0,0 @@ -# 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': 'none', - 'dependencies': [ - 'libfontconfig', - ], - 'direct_dependent_settings': { - 'include_dirs': [ - '../third_party/externals/fontconfig', - ], - }, - 'conditions': [ - ['skia_os == "mac"', { - 'dependencies': [ - 'fontconfig_setup', - ], - }], - ], - }, - { - 'target_name': 'libfontconfig', - 'type': 'static_library', - 'dependencies': [ - 'freetype.gyp:freetype_poppler', - ], - 'include_dirs' : [ - '../third_party/externals/fontconfig', - '../third_party/fontconfig/config', - '../third_party/fontconfig/config/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 == "mac"', { - 'include_dirs': [ - '<(SHARED_INTERMEDIATE_DIR)/fontconfig_config', - '../third_party/fontconfig/config/mac', - '../third_party/fontconfig/config/mac/src', - ], - 'dependencies': [ - 'fontconfig_config_template', - ], - 'libraries': [ - '$(SDKROOT)/usr/lib/libexpat.dylib', - ], - 'xcode_settings': { - 'DYLIB_INSTALL_NAME_BASE': '@executable_path', - }, - }], - ['skia_os == "win"', { - 'include_dirs': [ - '../third_party/fontconfig/config/windows', - '../third_party/fontconfig/config/windows/src', - ], - 'sources!': [ - '../third_party/externals/fontconfig/src/fccompat.c', - '../third_party/externals/fontconfig/src/fcxml.c', - ], - 'defines': [ - # inline is not recognized in C and has to be __inline - 'inline=__inline', - ], - }], - ], - }, - ], - 'conditions': [ - ['skia_os == "mac"', { - 'variables': { - 'cachedir': '<(PRODUCT_DIR)/fontconfig/cache', - 'configdir': '<(PRODUCT_DIR)/fontconfig/etc', - }, - 'targets': [ - { - 'target_name': 'fontconfig_config_template', - 'type': 'none', - 'actions': [{ - 'action_name': 'fontconfig_config_template', - 'message': 'Generating fontconfig header', - 'inputs': [ - '../third_party/fontconfig/process-template.py', - '../third_party/fontconfig/config/mac/config.h.template', - ], - 'outputs': [ - '<(SHARED_INTERMEDIATE_DIR)/fontconfig_config/config.h', - ], - 'action': [ - 'python', '../third_party/fontconfig/process-template.py', - '-i', '../third_party/fontconfig/config/mac/config.h.template', - '-o', '<@(_outputs)', - '-p', '@FC_CACHEDIR@', '<(cachedir)', - '-p', '@FONTCONFIG_PATH@', '<(configdir)', - ], - }], - }, { - 'target_name': 'fontconfig_setup', - 'type': 'none', - 'dependencies': [ - 'fc-cache', - ], - 'actions': [{ - 'action_name': 'fontconfig_config_file', - 'message': 'Generating font.conf', - 'inputs': [ - '../third_party/fontconfig/process-template.py', - '../third_party/externals/fontconfig/fonts.conf.in', - ], - 'outputs': [ '<(configdir)/fonts.conf', ], - 'action': [ - 'python', '../third_party/fontconfig/process-template.py', - '-i', '../third_party/externals/fontconfig/fonts.conf.in', - '-o', '<(configdir)/fonts.conf', - '-p', '@FC_CACHEDIR@', '<(cachedir)', - '-k', '@FC_DEFAULT_FONTS@', '/System/Library/Fonts', - '-k', '@FC_FONTPATH@', '<dir>/Library/Fonts</dir>', - '-p', '@CONFIGDIR@', '<(configdir)/conf.d', - '-k', '@PACKAGE@', 'fontconfig', - '-k', '@VERSION@', '2.11.0', - ], - }, { - 'action_name': 'populate_fontconfig_cache', - 'message': - 'Generating fontconfig cache (this will take a few minutes).', - 'inputs': [ - '<(PRODUCT_DIR)/fc-cache', - '<(configdir)/fonts.conf', - ], - 'outputs': [ '<(cachedir)/CACHEDIR.TAG', ], - 'action': [ '<(PRODUCT_DIR)/fc-cache', '-s', '-f', '-v', ], - }], - }, - { - 'target_name': 'fc-cache', - 'type': 'executable', - 'dependencies': [ - 'libfontconfig', - ], - 'libraries':[ - '$(SDKROOT)/usr/lib/libexpat.dylib', - ], - 'sources': [ - '../third_party/externals/fontconfig/fc-cache/fc-cache.c', - ], - }, - ], - }], - ], -} |