Index: gyp/pdf.gyp |
diff --git a/gyp/pdf.gyp b/gyp/pdf.gyp |
index fe574508a63286066c86ee49415c082817ed2ccd..270cce5e02485e6dbe5852c2e170c8a2719326a2 100644 |
--- a/gyp/pdf.gyp |
+++ b/gyp/pdf.gyp |
@@ -10,6 +10,7 @@ |
'product_name': 'skia_pdf', |
'type': 'static_library', |
'standalone_static_library': 1, |
+ 'variables': { 'skia_pdf_use_sfntly%': 1, }, |
'dependencies': [ |
'skia_lib.gyp:skia_lib', |
'skflate.gyp:skflate', |
@@ -26,6 +27,10 @@ |
'pdf.gypi', # Makes the gypi appear in IDEs (but does not modify the build). |
], |
'conditions': [ |
+ [ 'skia_pdf_use_sfntly and not skia_android_framework and \ |
+ skia_os in ["win", "android", "linux", "chromeos", "mac"]', |
+ { 'dependencies': [ 'sfntly.gyp:sfntly' ] } |
+ ], |
[ 'skia_android_framework', { |
# Add SFTNLY support for PDF (which in turns depends on ICU) |
'include_dirs': [ |