aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-03-29 10:10:24 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-29 10:10:24 -0700
commit6e26205cece95702d34f935669498b569db72626 (patch)
tree149b8eb852c2d33399c60dc4994ee323d96337a3 /gyp
parentffe54004b92f84b65ee4569aaccbc178c51b017f (diff)
SkPDF: skia_pdf_less_compression - for debugging only
Motivation: as we implement more features in PDF, it would be nice to more easily see what is happening in the output. This change serializes page content as plain text rather than compressed text, but it has to be explicitly enabled with a GYP_DEFINE change: export GYP_DEFINES='skia_pdf_less_compression=1' bin/sync-and-gyp ninja -C out/Debug dm out/Debug/dm --config pdf --src gm -w /tmp GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1840103002 Review URL: https://codereview.chromium.org/1840103002
Diffstat (limited to 'gyp')
-rw-r--r--gyp/pdf.gyp8
1 files changed, 7 insertions, 1 deletions
diff --git a/gyp/pdf.gyp b/gyp/pdf.gyp
index 259218338d..4a7ba6ddce 100644
--- a/gyp/pdf.gyp
+++ b/gyp/pdf.gyp
@@ -17,7 +17,10 @@
'product_name': 'skia_pdf',
'type': 'static_library',
'standalone_static_library': 1,
- 'variables': { 'skia_pdf_use_sfntly%': 1, },
+ 'variables': {
+ 'skia_pdf_use_sfntly%': 1,
+ 'skia_pdf_less_compression%': 0, # enable for debugging only
+ },
'dependencies': [
'skia_lib.gyp:skia_lib',
'zlib.gyp:zlib',
@@ -40,6 +43,9 @@
{ 'dependencies': [ 'sfntly.gyp:sfntly' ] }
],
[ 'skia_pdf_generate_pdfa', { 'defines': ['SK_PDF_GENERATE_PDFA'] } ],
+ [ 'skia_pdf_less_compression',
+ {'defines': ['SK_PDF_LESS_COMPRESSION'] }
+ ],
[ 'skia_android_framework', {
# Add SFTNLY support for PDF (which in turns depends on ICU)
'include_dirs': [