SkPDF: allow PDF module to be disabled in DM and SampleApp
To disable PDF:
GYP_DEFINES='skia_pdf=0' bin/sync-and-gyp
ninja -C out/Debug dm SampleApp
When disabled, SkDocument::CreatePDF() always returns NULL.
Review URL: https://codereview.chromium.org/1279123007
diff --git a/gyp/common_variables.gypi b/gyp/common_variables.gypi
index 7a168a1..21fb09d 100644
--- a/gyp/common_variables.gypi
+++ b/gyp/common_variables.gypi
@@ -131,6 +131,7 @@
'skia_gdi%': 0,
'skia_gpu%': 1,
'skia_osx_deployment_target%': '',
+ 'skia_pdf%': 1,
'skia_profile_enabled%': 0,
'skia_win_debuggers_path%': '',
'skia_shared_lib%': 0,
@@ -208,6 +209,7 @@
'skia_win_ltcg%': 1,
'sknx_no_simd%': 0,
'skia_osx_deployment_target%': '<(skia_osx_deployment_target)',
+ 'skia_pdf%': '<(skia_pdf)',
'skia_profile_enabled%': '<(skia_profile_enabled)',
'skia_shared_lib%': '<(skia_shared_lib)',
'skia_opencl%': '<(skia_opencl)',