Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: build/standalone.gypi

Issue 1407903002: Move conditionals inside target_defaults. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 PDFium Authors. All rights reserved. 1 # Copyright 2014 PDFium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Definitions to be used when building stand-alone PDFium binaries. 5 # Definitions to be used when building stand-alone PDFium binaries.
6 6
7 { 7 {
8 'variables': { 8 'variables': {
9 'component%': 'static_library', 9 'component%': 'static_library',
10 'clang%': 0, 10 'clang%': 0,
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 'OTHER_CFLAGS': [ 236 'OTHER_CFLAGS': [
237 '-fno-strict-aliasing', 237 '-fno-strict-aliasing',
238 ], 238 ],
239 'WARNING_CFLAGS': [ 239 'WARNING_CFLAGS': [
240 '-Wall', 240 '-Wall',
241 '-Wendif-labels', 241 '-Wendif-labels',
242 '-W', 242 '-W',
243 '-Wno-unused-parameter', 243 '-Wno-unused-parameter',
244 ], 244 ],
245 }, 245 },
246 }, 246 'conditions': [
247 'conditions': [ 247 ['component=="shared_library"', {
248 ['component=="shared_library"', { 248 'cflags': [
249 'cflags': [ 249 '-fPIC',
250 '-fPIC', 250 ],
251 ], 251 }],
252 }], 252 ['OS=="win"', {
253 ['OS=="win"', {
254 'target_defaults': {
255 'defines': [ 253 'defines': [
256 'NOMINMAX', 254 'NOMINMAX',
257 '_CRT_SECURE_NO_DEPRECATE', 255 '_CRT_SECURE_NO_DEPRECATE',
258 '_CRT_NONSTDC_NO_DEPRECATE', 256 '_CRT_NONSTDC_NO_DEPRECATE',
259 ], 257 ],
260 'conditions': [ 258 'conditions': [
261 ['component=="static_library"', { 259 ['component=="static_library"', {
262 'defines': [ 260 'defines': [
263 '_HAS_EXCEPTIONS=0', 261 '_HAS_EXCEPTIONS=0',
Lei Zhang 2015/10/16 01:32:35 Need an extra space indentation here and on the ne
dsinclair 2015/10/16 01:43:34 Done. As far as I can tell there are no tabs (all
264 ], 262 ],
265 }], 263 }],
266 ], 264 ],
267 }, 265 }], # OS=="win"
268 }], # OS=="win" 266 ['OS=="mac"', {
269 ['OS=="mac"', {
270 'target_defaults': {
271 'target_conditions': [ 267 'target_conditions': [
272 ['_type!="static_library"', { 268 ['_type!="static_library"', {
273 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, 269 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
274 }], 270 }],
275 ], # target_conditions 271 ], # target_conditions
276 }, # target_defaults 272 }], # OS=="mac"
277 }], # OS=="mac" 273 ['v8_use_external_startup_data==1', {
278 ['v8_use_external_startup_data==1', {
279 'target_defaults': {
280 'defines': [ 274 'defines': [
281 'V8_USE_EXTERNAL_STARTUP_DATA', 275 'V8_USE_EXTERNAL_STARTUP_DATA',
282 ], 276 ],
283 }, 277 }], # v8_use_external_startup_data==1
284 }], # v8_use_external_startup_data==1 278 ],
285 ], 279 },
286 'xcode_settings': { 280 'xcode_settings': {
287 # See comment in Chromium's common.gypi for why this is needed. 281 # See comment in Chromium's common.gypi for why this is needed.
288 'SYMROOT': '<(DEPTH)/xcodebuild', 282 'SYMROOT': '<(DEPTH)/xcodebuild',
289 } 283 }
290 } 284 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698