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

Side by Side Diff: build/standalone.gypi

Issue 1680943003: Support pdfium compilation with xcode 10.11 and higher (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comment and rebase Created 4 years, 10 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 | « build/gyp/tools/mac_find_sdk.py ('k') | 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 }, 409 },
410 }], 410 }],
411 ], 411 ],
412 }], # OS=="win" 412 }], # OS=="win"
413 ['OS=="mac"', { 413 ['OS=="mac"', {
414 'target_conditions': [ 414 'target_conditions': [
415 ['_type!="static_library"', { 415 ['_type!="static_library"', {
416 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, 416 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
417 }], 417 }],
418 ], # target_conditions 418 ], # target_conditions
419 'variables': {
420 'mac_sdk_min': '10.10',
421 'mac_sdk%': '<!(python <(DEPTH)/build/gyp/tools/mac_find_sdk.py <(mac_ sdk_min))',
422 },
423 'xcode_settings': {
424 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot
425 # See comment in Chromium's common.gypi for why this is needed.
426 'SYMROOT': '<(DEPTH)/xcodebuild',
427 },
419 }], # OS=="mac" 428 }], # OS=="mac"
420 ['v8_use_external_startup_data==1', { 429 ['v8_use_external_startup_data==1', {
421 'defines': [ 430 'defines': [
422 'V8_USE_EXTERNAL_STARTUP_DATA', 431 'V8_USE_EXTERNAL_STARTUP_DATA',
423 ], 432 ],
424 }], # v8_use_external_startup_data==1 433 }], # v8_use_external_startup_data==1
425 ['clang==1 or host_clang==1', { 434 ['clang==1 or host_clang==1', {
426 # This is here so that all files get recompiled after a clang roll and 435 # This is here so that all files get recompiled after a clang roll and
427 # when turning clang on or off. 436 # when turning clang on or off.
428 # (defines are passed via the command line, and build systems rebuild 437 # (defines are passed via the command line, and build systems rebuild
429 # things when their commandline changes). Nothing should ever read this 438 # things when their commandline changes). Nothing should ever read this
430 # define. 439 # define.
431 'defines': ['CR_CLANG_REVISION=<!(python <(DEPTH)/tools/clang/scripts/up date.py --print-revision)'], 440 'defines': ['CR_CLANG_REVISION=<!(python <(DEPTH)/tools/clang/scripts/up date.py --print-revision)'],
432 }], 441 }],
433 ], 442 ],
434 }, 443 },
435 'xcode_settings': {
436 'SDKROOT': 'macosx10.10', # -isysroot
437 # See comment in Chromium's common.gypi for why this is needed.
438 'SYMROOT': '<(DEPTH)/xcodebuild',
439 },
440 'conditions': [ 444 'conditions': [
441 ['OS=="linux" or OS=="mac"', { 445 ['OS=="linux" or OS=="mac"', {
442 'conditions': [ 446 'conditions': [
443 ['clang==1', { 447 ['clang==1', {
444 'make_global_settings': [ 448 'make_global_settings': [
445 ['CC', '<(clang_dir)/bin/clang'], 449 ['CC', '<(clang_dir)/bin/clang'],
446 ['CXX', '<(clang_dir)/bin/clang++'], 450 ['CXX', '<(clang_dir)/bin/clang++'],
447 ], 451 ],
448 }], 452 }],
449 ], 453 ],
450 }], # OS=="linux" or OS=="mac" 454 }], # OS=="linux" or OS=="mac"
451 ["use_goma==1", { 455 ["use_goma==1", {
452 'make_global_settings': [ 456 'make_global_settings': [
453 ['CC_wrapper', '<(gomadir)/gomacc'], 457 ['CC_wrapper', '<(gomadir)/gomacc'],
454 ['CXX_wrapper', '<(gomadir)/gomacc'], 458 ['CXX_wrapper', '<(gomadir)/gomacc'],
455 ], 459 ],
456 }], # use_goma==1 460 }], # use_goma==1
457 ], 461 ],
458 } 462 }
OLDNEW
« no previous file with comments | « build/gyp/tools/mac_find_sdk.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698