Chromium Code Reviews| 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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 407 }, | 407 }, |
| 408 }], | 408 }], |
| 409 ], | 409 ], |
| 410 }], # OS=="win" | 410 }], # OS=="win" |
| 411 ['OS=="mac"', { | 411 ['OS=="mac"', { |
| 412 'target_conditions': [ | 412 'target_conditions': [ |
| 413 ['_type!="static_library"', { | 413 ['_type!="static_library"', { |
| 414 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 414 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
| 415 }], | 415 }], |
| 416 ], # target_conditions | 416 ], # target_conditions |
| 417 'variables': { | |
| 418 'mac_sdk_min': '10.10', | |
| 419 'mac_sdk%': '<!(python <(DEPTH)/build/gyp/tools/mac_find_sdk.py <(mac_ sdk_min))', | |
|
Nico
2016/02/23 19:04:52
this will silently use the newest sdk on the bots;
Wei Li
2016/02/23 20:00:35
Will bot use the same file as the mac_find_sdk in
| |
| 420 }, | |
| 421 'xcode_settings': { | |
| 422 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot | |
| 423 # See comment in Chromium's common.gypi for why this is needed. | |
| 424 'SYMROOT': '<(DEPTH)/xcodebuild', | |
| 425 }, | |
| 417 }], # OS=="mac" | 426 }], # OS=="mac" |
| 418 ['v8_use_external_startup_data==1', { | 427 ['v8_use_external_startup_data==1', { |
| 419 'defines': [ | 428 'defines': [ |
| 420 'V8_USE_EXTERNAL_STARTUP_DATA', | 429 'V8_USE_EXTERNAL_STARTUP_DATA', |
| 421 ], | 430 ], |
| 422 }], # v8_use_external_startup_data==1 | 431 }], # v8_use_external_startup_data==1 |
| 423 ['clang==1 or host_clang==1', { | 432 ['clang==1 or host_clang==1', { |
| 424 # This is here so that all files get recompiled after a clang roll and | 433 # This is here so that all files get recompiled after a clang roll and |
| 425 # when turning clang on or off. | 434 # when turning clang on or off. |
| 426 # (defines are passed via the command line, and build systems rebuild | 435 # (defines are passed via the command line, and build systems rebuild |
| 427 # things when their commandline changes). Nothing should ever read this | 436 # things when their commandline changes). Nothing should ever read this |
| 428 # define. | 437 # define. |
| 429 'defines': ['CR_CLANG_REVISION=<!(python <(DEPTH)/tools/clang/scripts/up date.py --print-revision)'], | 438 'defines': ['CR_CLANG_REVISION=<!(python <(DEPTH)/tools/clang/scripts/up date.py --print-revision)'], |
| 430 }], | 439 }], |
| 431 ], | 440 ], |
| 432 }, | 441 }, |
| 433 'xcode_settings': { | |
| 434 'SDKROOT': 'macosx10.10', # -isysroot | |
| 435 # See comment in Chromium's common.gypi for why this is needed. | |
| 436 'SYMROOT': '<(DEPTH)/xcodebuild', | |
| 437 }, | |
| 438 'conditions': [ | 442 'conditions': [ |
| 439 ['OS=="linux" or OS=="mac"', { | 443 ['OS=="linux" or OS=="mac"', { |
| 440 'conditions': [ | 444 'conditions': [ |
| 441 ['clang==1', { | 445 ['clang==1', { |
| 442 'make_global_settings': [ | 446 'make_global_settings': [ |
| 443 ['CC', '<(clang_dir)/bin/clang'], | 447 ['CC', '<(clang_dir)/bin/clang'], |
| 444 ['CXX', '<(clang_dir)/bin/clang++'], | 448 ['CXX', '<(clang_dir)/bin/clang++'], |
| 445 ], | 449 ], |
| 446 }], | 450 }], |
| 447 ], | 451 ], |
| 448 }], # OS=="linux" or OS=="mac" | 452 }], # OS=="linux" or OS=="mac" |
| 449 ["use_goma==1", { | 453 ["use_goma==1", { |
| 450 'make_global_settings': [ | 454 'make_global_settings': [ |
| 451 ['CC_wrapper', '<(gomadir)/gomacc'], | 455 ['CC_wrapper', '<(gomadir)/gomacc'], |
| 452 ['CXX_wrapper', '<(gomadir)/gomacc'], | 456 ['CXX_wrapper', '<(gomadir)/gomacc'], |
| 453 ], | 457 ], |
| 454 }], # use_goma==1 | 458 }], # use_goma==1 |
| 455 ], | 459 ], |
| 456 } | 460 } |
| OLD | NEW |