Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Unified Diff: gyp/sfntly.gyp

Issue 1134683006: SkPDF: Add Sfntly to DEPS, gyp, SkUserConfig (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-05-18 (Monday) 13:33:42 EDT Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/pdf.gyp ('k') | src/pdf/SkPDFFont.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/sfntly.gyp
diff --git a/gyp/sfntly.gyp b/gyp/sfntly.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..4e3ca5f47a33abefcf3a5d78005dcca87070b845
--- /dev/null
+++ b/gyp/sfntly.gyp
@@ -0,0 +1,55 @@
+# Copyright (c) 2011 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+{
+ 'targets': [
+ {
+ 'target_name': 'sfntly',
+ 'type': 'static_library',
+ 'includes': [
+ 'common_conditions.gypi',
+ 'common_variables.gypi',
+ ],
+ 'variables': {
+ 'sfntly_src_path': '../third_party/externals/sfntly',
+ },
+ 'direct_dependent_settings': {
+ 'include_dirs': [ '<(sfntly_src_path)/sample/chromium', ],
+ 'defines': [
+ 'SK_SFNTLY_SUBSETTER="font_subsetter.h"',
+ ],
+ },
+ 'sources': [
+ '<(sfntly_src_path)/sample/chromium/font_subsetter.cc',
+ '<(sfntly_src_path)/sample/chromium/subsetter_impl.cc',
+ '<!@(python find.py ../third_party/externals/sfntly/sfntly "*.c*")'
+ ],
+ 'include_dirs': [
+ '<(sfntly_src_path)',
+ ],
+ 'defines': [
+ 'SFNTLY_NO_EXCEPTION',
+ ],
+ 'dependencies' : [
+ 'icu.gyp:icuuc',
+ ],
+ 'conditions': [
+ [ 'skia_os == "win"',
+ {
+ 'defines': [ 'WIN32', ],
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'AdditionalOptions': [ '/EHsc' ],
+ },
+ },
+ }
+ ],
+ [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]',
+ { 'link_settings': { 'libraries': [ '-lpthread', ], }, },
+ ],
+ ],
+ # TODO(jschuh): http://crbug.com/167187
+ 'msvs_disabled_warnings': [ 4267, 4244 ],
+ },
+ ]
+}
« no previous file with comments | « gyp/pdf.gyp ('k') | src/pdf/SkPDFFont.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698