Index: gyp/gm.gyp |
diff --git a/gyp/gm.gyp b/gyp/gm.gyp |
index 657bc560eaae7053bf3624d36002522716765ac9..971fce5d355e5e75e95053de09d97cd63abc060b 100644 |
--- a/gyp/gm.gyp |
+++ b/gyp/gm.gyp |
@@ -62,6 +62,11 @@ |
'pdf.gyp:pdf', |
], |
'conditions': [ |
+ ['skia_run_pdfviewer_in_gm or skia_poppler_enabled', { |
+ 'sources': [ |
+ '../src/utils/SkPDFRasterizer.cpp', |
+ ], |
+ }], |
['skia_run_pdfviewer_in_gm', { |
'defines': [ |
'SK_BUILD_NATIVE_PDF_RENDERER', |
@@ -77,9 +82,6 @@ |
'dependencies': [ |
'poppler.gyp:libpoppler-cpp-gpl', |
], |
- 'sources': [ |
- '../src/utils/SkPDFRasterizer.cpp', |
- ], |
'defines': [ |
'SK_BUILD_POPPLER', |
], |