OLD | NEW |
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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 }, { | 311 }, { |
312 'ExceptionHandling': '0', | 312 'ExceptionHandling': '0', |
313 }], | 313 }], |
314 ['target_arch=="x64"', { | 314 ['target_arch=="x64"', { |
315 # 64-bit warnings need to be resolved. | 315 # 64-bit warnings need to be resolved. |
316 # https://code.google.com/p/pdfium/issues/detail?id=101 | 316 # https://code.google.com/p/pdfium/issues/detail?id=101 |
317 'WarnAsError': 'false', | 317 'WarnAsError': 'false', |
318 }, { | 318 }, { |
319 'WarnAsError': 'true', | 319 'WarnAsError': 'true', |
320 }], | 320 }], |
| 321 ['clang==1', { |
| 322 'AdditionalOptions': [ |
| 323 # Don't warn about unused function parameters. |
| 324 # (This is also used on other platforms.) |
| 325 '-Wno-unused-parameter', |
| 326 # Don't warn about the "struct foo f = {0};" initialization |
| 327 # pattern. |
| 328 '-Wno-missing-field-initializers', |
| 329 |
| 330 # Many files use intrinsics without including this header. |
| 331 # TODO(hans): Fix those files, or move this to sub-GYPs. |
| 332 '/FIIntrin.h', |
| 333 |
| 334 # TODO(hans): Make this list shorter eventually, http://crbug.com/
504657 |
| 335 '-Qunused-arguments', # http://crbug.com/504658 |
| 336 '-Wno-microsoft-enum-value', # http://crbug.com/505296 |
| 337 '-Wno-unknown-pragmas', # http://crbug.com/505314 |
| 338 '-Wno-microsoft-cast', # http://crbug.com/550065 |
| 339 |
| 340 # TODO(ochang): Fix these properly eventually. |
| 341 '-Wno-inconsistent-missing-override', |
| 342 ], |
| 343 }], |
| 344 ['clang==1 and MSVS_VERSION == "2013"', { |
| 345 'VCCLCompilerTool': { |
| 346 'AdditionalOptions': [ |
| 347 '-fmsc-version=1800', |
| 348 ], |
| 349 }, |
| 350 }], |
| 351 ['clang==1 and MSVS_VERSION == "2015"', { |
| 352 'VCCLCompilerTool': { |
| 353 'AdditionalOptions': [ |
| 354 '-fmsc-version=1900', |
| 355 ], |
| 356 }, |
| 357 }], |
321 ], | 358 ], |
322 }, | 359 }, |
323 'VCLibrarianTool': { | 360 'VCLibrarianTool': { |
324 'AdditionalOptions': ['/ignore:4221'], | 361 'AdditionalOptions': ['/ignore:4221'], |
325 }, | 362 }, |
326 'VCLinkerTool': { | 363 'VCLinkerTool': { |
327 'GenerateDebugInformation': 'true', | 364 'GenerateDebugInformation': 'true', |
328 'LinkIncremental': '1', | 365 'LinkIncremental': '1', |
329 # SubSystem values: | 366 # SubSystem values: |
330 # 0 == not set | 367 # 0 == not set |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 ['OS=="linux" or OS=="mac"', { | 484 ['OS=="linux" or OS=="mac"', { |
448 'conditions': [ | 485 'conditions': [ |
449 ['clang==1', { | 486 ['clang==1', { |
450 'make_global_settings': [ | 487 'make_global_settings': [ |
451 ['CC', '<(clang_dir)/bin/clang'], | 488 ['CC', '<(clang_dir)/bin/clang'], |
452 ['CXX', '<(clang_dir)/bin/clang++'], | 489 ['CXX', '<(clang_dir)/bin/clang++'], |
453 ], | 490 ], |
454 }], | 491 }], |
455 ], | 492 ], |
456 }], # OS=="linux" or OS=="mac" | 493 }], # OS=="linux" or OS=="mac" |
| 494 ['OS=="win"', { |
| 495 'conditions': [ |
| 496 ['clang==1', { |
| 497 'make_global_settings': [ |
| 498 ['CC', '<(clang_dir)/bin/clang-cl'], |
| 499 ], |
| 500 }], |
| 501 ], |
| 502 }], # OS=="win" |
457 ["use_goma==1", { | 503 ["use_goma==1", { |
458 'make_global_settings': [ | 504 'make_global_settings': [ |
459 ['CC_wrapper', '<(gomadir)/gomacc'], | 505 ['CC_wrapper', '<(gomadir)/gomacc'], |
460 ['CXX_wrapper', '<(gomadir)/gomacc'], | 506 ['CXX_wrapper', '<(gomadir)/gomacc'], |
461 ], | 507 ], |
462 }], # use_goma==1 | 508 }], # use_goma==1 |
463 ], | 509 ], |
464 } | 510 } |
OLD | NEW |