OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium 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 # IMPORTANT: | 5 # IMPORTANT: |
6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
8 { | 8 { |
9 # Variables expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 }], | 536 }], |
537 | 537 |
538 ['(OS=="android" and google_tv!=1) or OS=="ios"', { | 538 ['(OS=="android" and google_tv!=1) or OS=="ios"', { |
539 'enable_plugins%': 0, | 539 'enable_plugins%': 0, |
540 }, { | 540 }, { |
541 'enable_plugins%': 1, | 541 'enable_plugins%': 1, |
542 }], | 542 }], |
543 | 543 |
544 # linux_use_gold_binary: whether to use the binary checked into | 544 # linux_use_gold_binary: whether to use the binary checked into |
545 # third_party/gold. | 545 # third_party/gold. |
546 ['OS=="linux"', { | 546 ['OS=="linux" and target_arch=="x64"', { |
547 'linux_use_gold_binary%': 1, | 547 'linux_use_gold_binary%': 1, |
548 }, { | 548 }, { |
549 'linux_use_gold_binary%': 0, | 549 'linux_use_gold_binary%': 0, |
550 }], | 550 }], |
551 | 551 |
552 # linux_use_gold_flags: whether to use build flags that rely on gold. | 552 # linux_use_gold_flags: whether to use build flags that rely on gold. |
553 # On by default for x64 Linux. Temporarily off for ChromeOS as | 553 # On by default for x64 Linux. Temporarily off for ChromeOS as |
554 # it failed on a buildbot. | 554 # it failed on a buildbot. |
555 ['OS=="linux" and chromeos==0', { | 555 ['OS=="linux" and target_arch=="x64" and chromeos==0', { |
556 'linux_use_gold_flags%': 1, | 556 'linux_use_gold_flags%': 1, |
557 }, { | 557 }, { |
558 'linux_use_gold_flags%': 0, | 558 'linux_use_gold_flags%': 0, |
559 }], | 559 }], |
560 | 560 |
561 ['chromeos==1', { | 561 ['chromeos==1', { |
562 'linux_use_libgps%': 1, | 562 'linux_use_libgps%': 1, |
563 }, { # chromeos==0 | 563 }, { # chromeos==0 |
564 # Do not use libgps on desktop Linux by default, | 564 # Do not use libgps on desktop Linux by default, |
565 # see http://crbug.com/103751. | 565 # see http://crbug.com/103751. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 'enable_settings_app%': 1, | 597 'enable_settings_app%': 1, |
598 }, { | 598 }, { |
599 'enable_settings_app%': 0, | 599 'enable_settings_app%': 0, |
600 }], | 600 }], |
601 | 601 |
602 ['OS=="linux" and target_arch=="arm" and chromeos==0', { | 602 ['OS=="linux" and target_arch=="arm" and chromeos==0', { |
603 # Set some defaults for arm/linux chrome builds | 603 # Set some defaults for arm/linux chrome builds |
604 'armv7%': 1, | 604 'armv7%': 1, |
605 'linux_breakpad%': 0, | 605 'linux_breakpad%': 0, |
606 'linux_use_tcmalloc%': 0, | 606 'linux_use_tcmalloc%': 0, |
607 'linux_use_gold_flags%': 0, | |
608 # sysroot needs to be an absolute path otherwise it generates | 607 # sysroot needs to be an absolute path otherwise it generates |
609 # incorrect results when passed to pkg-config | 608 # incorrect results when passed to pkg-config |
610 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot', | 609 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot', |
611 }], # OS=="linux" and target_arch=="arm" and chromeos==0 | 610 }], # OS=="linux" and target_arch=="arm" and chromeos==0 |
612 | 611 |
613 ['target_arch=="mipsel"', { | 612 ['target_arch=="mipsel"', { |
614 'sysroot': '<!(cd <(DEPTH) && pwd -P)/native_client/toolchain/linux_mi
ps-trusted/sysroot', | 613 'sysroot': '<!(cd <(DEPTH) && pwd -P)/native_client/toolchain/linux_mi
ps-trusted/sysroot', |
615 }], | 614 }], |
616 ], | 615 ], |
617 | 616 |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1029 ['clang==0 and asan==0 and tsan==0', { | 1028 ['clang==0 and asan==0 and tsan==0', { |
1030 # This will set gcc_version to XY if you are running gcc X.Y.*. | 1029 # This will set gcc_version to XY if you are running gcc X.Y.*. |
1031 # This is used to tweak build flags for gcc 4.5. | 1030 # This is used to tweak build flags for gcc 4.5. |
1032 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', | 1031 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', |
1033 }, { | 1032 }, { |
1034 'gcc_version%': 0, | 1033 'gcc_version%': 0, |
1035 }], | 1034 }], |
1036 ['target_arch=="mipsel"', { | 1035 ['target_arch=="mipsel"', { |
1037 'werror%': '', | 1036 'werror%': '', |
1038 'disable_nacl%': 1, | 1037 'disable_nacl%': 1, |
1039 'linux_use_gold_binary%': 0, | |
1040 'linux_use_gold_flags%': 0, | |
1041 'nacl_untrusted_build%': 0, | 1038 'nacl_untrusted_build%': 0, |
1042 'linux_use_tcmalloc%': 0, | 1039 'linux_use_tcmalloc%': 0, |
1043 'linux_breakpad%': 0, | 1040 'linux_breakpad%': 0, |
1044 'sysroot%': '<(sysroot)', | 1041 'sysroot%': '<(sysroot)', |
1045 }], | 1042 }], |
1046 # All Chrome builds have breakpad symbols, but only process the | 1043 # All Chrome builds have breakpad symbols, but only process the |
1047 # symbols from official builds. | 1044 # symbols from official builds. |
1048 ['(branding=="Chrome" and buildtype=="Official")', { | 1045 ['(branding=="Chrome" and buildtype=="Official")', { |
1049 'linux_dump_symbols%': 1, | 1046 'linux_dump_symbols%': 1, |
1050 }], | 1047 }], |
(...skipping 1840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2891 ['linux_breakpad==1', { | 2888 ['linux_breakpad==1', { |
2892 'defines': ['USE_LINUX_BREAKPAD'], | 2889 'defines': ['USE_LINUX_BREAKPAD'], |
2893 }], | 2890 }], |
2894 ['linux_dump_symbols==1', { | 2891 ['linux_dump_symbols==1', { |
2895 'cflags': [ '-g' ], | 2892 'cflags': [ '-g' ], |
2896 'conditions': [ | 2893 'conditions': [ |
2897 ['target_arch=="ia32"', { | 2894 ['target_arch=="ia32"', { |
2898 'target_conditions': [ | 2895 'target_conditions': [ |
2899 ['_toolset=="target"', { | 2896 ['_toolset=="target"', { |
2900 'ldflags': [ | 2897 'ldflags': [ |
2901 # Workaround for linker OOM. http://crbug.com/160253. | 2898 # Workaround for linker OOM. |
2902 '-Wl,--no-keep-files-mapped', | 2899 '-Wl,--no-keep-memory', |
2903 ], | 2900 ], |
2904 }], | 2901 }], |
2905 ], | 2902 ], |
2906 }], | 2903 }], |
2907 ], | 2904 ], |
2908 }], | 2905 }], |
2909 ['linux_use_heapchecker==1', { | 2906 ['linux_use_heapchecker==1', { |
2910 'variables': {'linux_use_tcmalloc%': 1}, | 2907 'variables': {'linux_use_tcmalloc%': 1}, |
2911 'defines': ['USE_HEAPCHECKER'], | 2908 'defines': ['USE_HEAPCHECKER'], |
2912 }], | 2909 }], |
(...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4046 # settings in target dicts. SYMROOT is a special case, because many other | 4043 # settings in target dicts. SYMROOT is a special case, because many other |
4047 # Xcode variables depend on it, including variables such as | 4044 # Xcode variables depend on it, including variables such as |
4048 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4045 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4049 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4046 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4050 # files to appear (when present) in the UI as actual files and not red | 4047 # files to appear (when present) in the UI as actual files and not red |
4051 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4048 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4052 # and therefore SYMROOT, needs to be set at the project level. | 4049 # and therefore SYMROOT, needs to be set at the project level. |
4053 'SYMROOT': '<(DEPTH)/xcodebuild', | 4050 'SYMROOT': '<(DEPTH)/xcodebuild', |
4054 }, | 4051 }, |
4055 } | 4052 } |
OLD | NEW |