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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 'use_libjpeg_turbo%': 1, | 339 'use_libjpeg_turbo%': 1, |
340 | 340 |
341 # Use system libjpeg. Note that the system's libjepg will be used even if | 341 # Use system libjpeg. Note that the system's libjepg will be used even if |
342 # use_libjpeg_turbo is set. | 342 # use_libjpeg_turbo is set. |
343 'use_system_libjpeg%': 0, | 343 'use_system_libjpeg%': 0, |
344 | 344 |
345 # By default, component is set to static_library and it can be overriden | 345 # By default, component is set to static_library and it can be overriden |
346 # by the GYP command line or by ~/.gyp/include.gypi. | 346 # by the GYP command line or by ~/.gyp/include.gypi. |
347 'component%': 'static_library', | 347 'component%': 'static_library', |
348 | 348 |
| 349 # /analyze is off by default on Windows because it is very slow and noisy. |
| 350 # Enable with GYP_DEFINES=win_analyze=1 |
| 351 'win_analyze%': 0, |
| 352 |
349 # Set to select the Title Case versions of strings in GRD files. | 353 # Set to select the Title Case versions of strings in GRD files. |
350 'use_titlecase_in_grd%': 0, | 354 'use_titlecase_in_grd%': 0, |
351 | 355 |
352 # Use translations provided by volunteers at launchpad.net. This | 356 # Use translations provided by volunteers at launchpad.net. This |
353 # currently only works on Linux. | 357 # currently only works on Linux. |
354 'use_third_party_translations%': 0, | 358 'use_third_party_translations%': 0, |
355 | 359 |
356 # Remoting compilation is enabled by default. Set to 0 to disable. | 360 # Remoting compilation is enabled by default. Set to 0 to disable. |
357 'remoting%': 1, | 361 'remoting%': 1, |
358 | 362 |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 'win_z7%': '<(win_z7)', | 1105 'win_z7%': '<(win_z7)', |
1102 'dcheck_always_on%': '<(dcheck_always_on)', | 1106 'dcheck_always_on%': '<(dcheck_always_on)', |
1103 'tracing_like_official_build%': '<(tracing_like_official_build)', | 1107 'tracing_like_official_build%': '<(tracing_like_official_build)', |
1104 'arm_version%': '<(arm_version)', | 1108 'arm_version%': '<(arm_version)', |
1105 'arm_neon%': '<(arm_neon)', | 1109 'arm_neon%': '<(arm_neon)', |
1106 'arm_neon_optional%': '<(arm_neon_optional)', | 1110 'arm_neon_optional%': '<(arm_neon_optional)', |
1107 'sysroot%': '<(sysroot)', | 1111 'sysroot%': '<(sysroot)', |
1108 'chroot_cmd%': '<(chroot_cmd)', | 1112 'chroot_cmd%': '<(chroot_cmd)', |
1109 'system_libdir%': '<(system_libdir)', | 1113 'system_libdir%': '<(system_libdir)', |
1110 'component%': '<(component)', | 1114 'component%': '<(component)', |
| 1115 'win_analyze%': '<(win_analyze)', |
1111 'enable_resource_whitelist_generation%': '<(enable_resource_whitelist_genera
tion)', | 1116 'enable_resource_whitelist_generation%': '<(enable_resource_whitelist_genera
tion)', |
1112 'use_titlecase_in_grd%': '<(use_titlecase_in_grd)', | 1117 'use_titlecase_in_grd%': '<(use_titlecase_in_grd)', |
1113 'use_third_party_translations%': '<(use_third_party_translations)', | 1118 'use_third_party_translations%': '<(use_third_party_translations)', |
1114 'remoting%': '<(remoting)', | 1119 'remoting%': '<(remoting)', |
1115 'enable_one_click_signin%': '<(enable_one_click_signin)', | 1120 'enable_one_click_signin%': '<(enable_one_click_signin)', |
1116 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)', | 1121 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)', |
1117 'enable_webrtc%': '<(enable_webrtc)', | 1122 'enable_webrtc%': '<(enable_webrtc)', |
1118 'chromium_win_pch%': '<(chromium_win_pch)', | 1123 'chromium_win_pch%': '<(chromium_win_pch)', |
1119 'configuration_policy%': '<(configuration_policy)', | 1124 'configuration_policy%': '<(configuration_policy)', |
1120 'safe_browsing%': '<(safe_browsing)', | 1125 'safe_browsing%': '<(safe_browsing)', |
(...skipping 1676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2797 'msvs_settings': { | 2802 'msvs_settings': { |
2798 # Generates debug info when win_z7=1 | 2803 # Generates debug info when win_z7=1 |
2799 # even if fastbuild=1 (that makes GenerateDebugInformation false). | 2804 # even if fastbuild=1 (that makes GenerateDebugInformation false). |
2800 'VCLinkerTool': { | 2805 'VCLinkerTool': { |
2801 'GenerateDebugInformation': 'true', | 2806 'GenerateDebugInformation': 'true', |
2802 }, | 2807 }, |
2803 'VCCLCompilerTool': { | 2808 'VCCLCompilerTool': { |
2804 'DebugInformationFormat': '1', | 2809 'DebugInformationFormat': '1', |
2805 } | 2810 } |
2806 } | 2811 } |
2807 }], | 2812 }], # win_z7!=0 |
2808 ], # win_z7!=0 | 2813 ['win_analyze', { |
| 2814 'defines!': [ |
| 2815 # This is prohibited when running /analyze. |
| 2816 '_USING_V110_SDK71_', |
| 2817 ], |
| 2818 'msvs_settings': { |
| 2819 'VCCLCompilerTool': { |
| 2820 # Set WarnAsError to false to disable this setting for most |
| 2821 # projects so that compilation continues. |
| 2822 'WarnAsError': 'false', |
| 2823 # When win_analyze is specified add the /analyze switch. |
| 2824 # Also add /WX- to force-disable WarnAsError for projects that |
| 2825 # override WarnAsError. |
| 2826 # Also, disable various noisy warnings that have low value. |
| 2827 'AdditionalOptions': [ |
| 2828 '/analyze', |
| 2829 '/WX-', |
| 2830 '/wd6011', # Dereferencing NULL pointer |
| 2831 '/wd6312', # Possible infinite loop: use of the constant |
| 2832 # EXCEPTION_CONTINUE_EXECUTION in the exception-filter |
| 2833 '/wd6326', # Potential comparison of constant with constant |
| 2834 '/wd28159', # Consider using 'GetTickCount64' |
| 2835 '/wd28204', # Inconsistent SAL annotations |
| 2836 '/wd28251', # Inconsistent SAL annotations |
| 2837 '/wd28252', # Inconsistent SAL annotations |
| 2838 '/wd28253', # Inconsistent SAL annotations |
| 2839 '/wd28196', # The precondition is not satisfied |
| 2840 '/wd28301', # Inconsistent SAL annotations |
| 2841 '/wd6340', # Sign mismatch in function parameter |
| 2842 '/wd28182', # Dereferencing NULL pointer |
| 2843 ], |
| 2844 }, |
| 2845 }, |
| 2846 }], # win_analyze |
| 2847 ], |
2809 }], # OS==win | 2848 }], # OS==win |
2810 ['chromecast==1', { | 2849 ['chromecast==1', { |
2811 'defines': [ | 2850 'defines': [ |
2812 'LOG_DISABLED=0', | 2851 'LOG_DISABLED=0', |
2813 ], | 2852 ], |
2814 'conditions': [ | 2853 'conditions': [ |
2815 ['target_arch=="arm"', { | 2854 ['target_arch=="arm"', { |
2816 'defines': [ | 2855 'defines': [ |
2817 # TODO(lcwu): Work around an error when building Chromium | 2856 # TODO(lcwu): Work around an error when building Chromium |
2818 # with gcc-4.5.3 (e.g. v8/src/platform-linux.cc). Remove | 2857 # with gcc-4.5.3 (e.g. v8/src/platform-linux.cc). Remove |
(...skipping 3019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5838 # settings in target dicts. SYMROOT is a special case, because many other | 5877 # settings in target dicts. SYMROOT is a special case, because many other |
5839 # Xcode variables depend on it, including variables such as | 5878 # Xcode variables depend on it, including variables such as |
5840 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5879 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5841 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5880 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5842 # files to appear (when present) in the UI as actual files and not red | 5881 # files to appear (when present) in the UI as actual files and not red |
5843 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5882 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5844 # and therefore SYMROOT, needs to be set at the project level. | 5883 # and therefore SYMROOT, needs to be set at the project level. |
5845 'SYMROOT': '<(DEPTH)/xcodebuild', | 5884 'SYMROOT': '<(DEPTH)/xcodebuild', |
5846 }, | 5885 }, |
5847 } | 5886 } |
OLD | NEW |