Bug 1426523 - Add PrintTargetEMF.* only if MOZ_ENABLE_SKIA_PDF is enable. r=cjku
authorcku <cku@mozilla.com>
Thu, 21 Dec 2017 11:54:05 +0800
changeset 397079 63a089b7dc0446545593e3d1e8592f7285cb1a7c
parent 397078 905ff56ee2e6745e5e5580eb490e65fa1ecbe91f
child 397080 06a19fbe2581a81e6908b4810f8aa302f1516145
push id33123
push userncsoregi@mozilla.com
push dateThu, 21 Dec 2017 10:00:47 +0000
treeherdermozilla-central@06a19fbe2581 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscjku
bugs1426523
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1426523 - Add PrintTargetEMF.* only if MOZ_ENABLE_SKIA_PDF is enable. r=cjku MozReview-Commit-ID: 1bcSHbfQK48
gfx/thebes/moz.build
--- a/gfx/thebes/moz.build
+++ b/gfx/thebes/moz.build
@@ -212,24 +212,27 @@ UNIFIED_SOURCES += [
     'VsyncSource.cpp',
 ]
 
 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
     UNIFIED_SOURCES += [
         'gfxMacPlatformFontList.mm',
     ]
 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
-    EXPORTS.mozilla.gfx += [
-        'PrintTargetEMF.h',
-    ]
     UNIFIED_SOURCES += [
         'D3D11Checks.cpp',
         'DeviceManagerDx.cpp',
-        'PrintTargetEMF.cpp',
     ]
+    if CONFIG['MOZ_ENABLE_SKIA_PDF']:
+        EXPORTS.mozilla.gfx += [
+            'PrintTargetEMF.h',
+        ]
+        UNIFIED_SOURCES += [
+            'PrintTargetEMF.cpp',
+        ]
 
 if CONFIG['MOZ_ENABLE_SKIA_PDF']:
     EXPORTS.mozilla.gfx += [
         'PrintTargetSkPDF.h',
     ]
     SOURCES += [
         'PrintTargetSkPDF.cpp',
     ]