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

Unified Diff: gyp/pdf.gyp

Issue 1279123007: SkPDF: allow PDF module to be disabled in DM and SampleApp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-11 (Tuesday) 10:04:57 EDT : #if SK_SUPPORT_PDF Created 5 years, 4 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
Index: gyp/pdf.gyp
diff --git a/gyp/pdf.gyp b/gyp/pdf.gyp
index 693d3307da14d5ad531874be6a0ba0246632abd3..1e69d9164ec2d819fb994bb90c1cdcc8e7bcb23b 100644
--- a/gyp/pdf.gyp
+++ b/gyp/pdf.gyp
@@ -6,6 +6,13 @@
{
'targets': [
{
+ 'target_name': 'nopdf',
+ 'type': 'static_library',
+ 'dependencies': [ 'skia_lib.gyp:skia_lib', ],
+ 'sources': [ '<(skia_src_path)/doc/SkDocument_PDF_None.cpp', ],
+ 'defines': [ 'SK_SUPPORT_PDF=0', ],
+ },
+ {
'target_name': 'pdf',
'product_name': 'skia_pdf',
'type': 'static_library',
@@ -46,6 +53,7 @@
],
],
'direct_dependent_settings': {
+ 'defines': [ 'SK_SUPPORT_PDF=1', ],
'include_dirs': [
'../include/core', # SkDocument.h
],
« no previous file with comments | « gyp/common_variables.gypi ('k') | gyp/tests.gypi » ('j') | samplecode/SampleApp.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698