From 2611932c1dea188078be8b59801285cbbdc0fcf1 Mon Sep 17 00:00:00 2001 From: John Abd-El-Malek Date: Mon, 26 May 2014 18:27:11 -0700 Subject: Fix build error on Windows stand alone build. R=scottmg@chromium.org Review URL: https://codereview.chromium.org/299353008 --- pdfium.gyp | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/pdfium.gyp b/pdfium.gyp index 1b0bae01b0..e8e706e94d 100644 --- a/pdfium.gyp +++ b/pdfium.gyp @@ -119,23 +119,27 @@ 'fpdfsdk/src/fpdfsdkdll.rc', ], }], - ['OS=="mac"', { - 'link_settings': { - 'libraries': [ - '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', - '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', + ], + 'all_dependent_settings': { + 'msvs_settings': { + 'VCLinkerTool': { + 'AdditionalDependencies': [ + 'advapi32.lib', + 'gdi32.lib', + 'user32.lib', ], }, - }], - ], - 'msvs_settings': { - 'VCLinkerTool': { - 'AdditionalDependencies': [ - 'advapi32.lib', - 'gdi32.lib', - 'user32.lib', - ], }, + 'conditions': [ + ['OS=="mac"', { + 'link_settings': { + 'libraries': [ + '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', + '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', + ], + }, + }], + ], }, }, { -- cgit v1.2.3