From 26268af2c1242dd173aea6dcbf763a36e734faf3 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Thu, 15 Oct 2015 21:44:11 -0400 Subject: Move conditionals inside target_defaults. This CL moves the conditionals inside the target_defaults configuration. This causes the -fPIC to get picked up and allows component=shared_library to build correctly. BUG=pdfium:218 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1407903002 . --- build/standalone.gypi | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/build/standalone.gypi b/build/standalone.gypi index c0eaef419d..507368dc25 100644 --- a/build/standalone.gypi +++ b/build/standalone.gypi @@ -243,15 +243,13 @@ '-Wno-unused-parameter', ], }, - }, - 'conditions': [ - ['component=="shared_library"', { - 'cflags': [ - '-fPIC', - ], - }], - ['OS=="win"', { - 'target_defaults': { + 'conditions': [ + ['component=="shared_library"', { + 'cflags': [ + '-fPIC', + ], + }], + ['OS=="win"', { 'defines': [ 'NOMINMAX', '_CRT_SECURE_NO_DEPRECATE', @@ -264,25 +262,21 @@ ], }], ], - }, - }], # OS=="win" - ['OS=="mac"', { - 'target_defaults': { + }], # OS=="win" + ['OS=="mac"', { 'target_conditions': [ ['_type!="static_library"', { 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, }], ], # target_conditions - }, # target_defaults - }], # OS=="mac" - ['v8_use_external_startup_data==1', { - 'target_defaults': { + }], # OS=="mac" + ['v8_use_external_startup_data==1', { 'defines': [ 'V8_USE_EXTERNAL_STARTUP_DATA', ], - }, - }], # v8_use_external_startup_data==1 - ], + }], # v8_use_external_startup_data==1 + ], + }, 'xcode_settings': { # See comment in Chromium's common.gypi for why this is needed. 'SYMROOT': '<(DEPTH)/xcodebuild', -- cgit v1.2.3