diff options
author | dan sinclair <dsinclair@chromium.org> | 2015-10-15 21:44:11 -0400 |
---|---|---|
committer | dan sinclair <dsinclair@chromium.org> | 2015-10-15 21:44:11 -0400 |
commit | 26268af2c1242dd173aea6dcbf763a36e734faf3 (patch) | |
tree | 8129f2d980adf30f66ad4821a74a51fbe5fc8744 /build | |
parent | 51cf5bc00dfa3033523355e3e74f3a47f7e46682 (diff) | |
download | pdfium-26268af2c1242dd173aea6dcbf763a36e734faf3.tar.xz |
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 .
Diffstat (limited to 'build')
-rw-r--r-- | build/standalone.gypi | 34 |
1 files 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', |