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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 # This is here so that all files get recompiled after a clang roll and | 424 # This is here so that all files get recompiled after a clang roll and |
425 # when turning clang on or off. | 425 # when turning clang on or off. |
426 # (defines are passed via the command line, and build systems rebuild | 426 # (defines are passed via the command line, and build systems rebuild |
427 # things when their commandline changes). Nothing should ever read this | 427 # things when their commandline changes). Nothing should ever read this |
428 # define. | 428 # define. |
429 'defines': ['CR_CLANG_REVISION=<!(python <(DEPTH)/tools/clang/scripts/up
date.py --print-revision)'], | 429 'defines': ['CR_CLANG_REVISION=<!(python <(DEPTH)/tools/clang/scripts/up
date.py --print-revision)'], |
430 }], | 430 }], |
431 ], | 431 ], |
432 }, | 432 }, |
433 'xcode_settings': { | 433 'xcode_settings': { |
| 434 'SDKROOT': 'macosx10.10' # -isysroot |
434 # See comment in Chromium's common.gypi for why this is needed. | 435 # See comment in Chromium's common.gypi for why this is needed. |
435 'SYMROOT': '<(DEPTH)/xcodebuild', | 436 'SYMROOT': '<(DEPTH)/xcodebuild', |
436 }, | 437 }, |
437 'conditions': [ | 438 'conditions': [ |
438 ['OS=="linux" or OS=="mac"', { | 439 ['OS=="linux" or OS=="mac"', { |
439 'conditions': [ | 440 'conditions': [ |
440 ['clang==1', { | 441 ['clang==1', { |
441 'make_global_settings': [ | 442 'make_global_settings': [ |
442 ['CC', '<(clang_dir)/bin/clang'], | 443 ['CC', '<(clang_dir)/bin/clang'], |
443 ['CXX', '<(clang_dir)/bin/clang++'], | 444 ['CXX', '<(clang_dir)/bin/clang++'], |
444 ], | 445 ], |
445 }], | 446 }], |
446 ], | 447 ], |
447 }], # OS=="linux" or OS=="mac" | 448 }], # OS=="linux" or OS=="mac" |
448 ["use_goma==1", { | 449 ["use_goma==1", { |
449 'make_global_settings': [ | 450 'make_global_settings': [ |
450 ['CC_wrapper', '<(gomadir)/gomacc'], | 451 ['CC_wrapper', '<(gomadir)/gomacc'], |
451 ['CXX_wrapper', '<(gomadir)/gomacc'], | 452 ['CXX_wrapper', '<(gomadir)/gomacc'], |
452 ], | 453 ], |
453 }], # use_goma==1 | 454 }], # use_goma==1 |
454 ], | 455 ], |
455 } | 456 } |
OLD | NEW |