If poppler is disable and native pdf is enabled, we still need SkPDFRasterizer.cpp
R=reed@google.com
TBR=reed@google.com
NOTREECHECKS=true
NOTRY=true
Author: vandebo@chromium.org
Review URL: https://codereview.chromium.org/133583004
git-svn-id: http://skia.googlecode.com/svn/trunk@13025 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gyp/gm.gyp b/gyp/gm.gyp
index 657bc56..971fce5 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',
],