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

Side by Side Diff: build/common.gypi

Issue 669813003: Update from chromium https://crrev.com/301725/ (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/build_config.h ('k') | build/config/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 }, { 1001 }, {
998 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/x 86', 1002 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/x 86',
999 }], 1003 }],
1000 1004
1001 # Turn on JNI generation optimizations on non-WebView builds. 1005 # Turn on JNI generation optimizations on non-WebView builds.
1002 ['OS=="android" and android_webview_build==0', { 1006 ['OS=="android" and android_webview_build==0', {
1003 'optimize_jni_generation%': 1, 1007 'optimize_jni_generation%': 1,
1004 }, { 1008 }, {
1005 'optimize_jni_generation%': 0, 1009 'optimize_jni_generation%': 0,
1006 }], 1010 }],
1011
1012 # TODO(baixo): Enable v8_use_external_startup_data
1013 # http://crbug.com/421063
1014 ['android_webview_build==0 and android_webview_telemetry_build==0 and ch romecast==0', {
1015 'v8_use_external_startup_data': 0,
1016 }, {
1017 'v8_use_external_startup_data': 0,
1018 }],
1007 ], 1019 ],
1008 1020
1009 # Set this to 1 to enable use of concatenated impulse responses 1021 # Set this to 1 to enable use of concatenated impulse responses
1010 # for the HRTF panner in WebAudio. 1022 # for the HRTF panner in WebAudio.
1011 'use_concatenated_impulse_responses': 1, 1023 'use_concatenated_impulse_responses': 1,
1012 1024
1013 # You can set the variable 'use_official_google_api_keys' to 1 1025 # You can set the variable 'use_official_google_api_keys' to 1
1014 # to use the Google-internal file containing official API keys 1026 # to use the Google-internal file containing official API keys
1015 # for Google Chrome even in a developer build. Setting this 1027 # for Google Chrome even in a developer build. Setting this
1016 # variable explicitly to 1 will cause your build to fail if the 1028 # variable explicitly to 1 will cause your build to fail if the
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
1101 'win_z7%': '<(win_z7)', 1113 'win_z7%': '<(win_z7)',
1102 'dcheck_always_on%': '<(dcheck_always_on)', 1114 'dcheck_always_on%': '<(dcheck_always_on)',
1103 'tracing_like_official_build%': '<(tracing_like_official_build)', 1115 'tracing_like_official_build%': '<(tracing_like_official_build)',
1104 'arm_version%': '<(arm_version)', 1116 'arm_version%': '<(arm_version)',
1105 'arm_neon%': '<(arm_neon)', 1117 'arm_neon%': '<(arm_neon)',
1106 'arm_neon_optional%': '<(arm_neon_optional)', 1118 'arm_neon_optional%': '<(arm_neon_optional)',
1107 'sysroot%': '<(sysroot)', 1119 'sysroot%': '<(sysroot)',
1108 'chroot_cmd%': '<(chroot_cmd)', 1120 'chroot_cmd%': '<(chroot_cmd)',
1109 'system_libdir%': '<(system_libdir)', 1121 'system_libdir%': '<(system_libdir)',
1110 'component%': '<(component)', 1122 'component%': '<(component)',
1123 'win_analyze%': '<(win_analyze)',
1111 'enable_resource_whitelist_generation%': '<(enable_resource_whitelist_genera tion)', 1124 'enable_resource_whitelist_generation%': '<(enable_resource_whitelist_genera tion)',
1112 'use_titlecase_in_grd%': '<(use_titlecase_in_grd)', 1125 'use_titlecase_in_grd%': '<(use_titlecase_in_grd)',
1113 'use_third_party_translations%': '<(use_third_party_translations)', 1126 'use_third_party_translations%': '<(use_third_party_translations)',
1114 'remoting%': '<(remoting)', 1127 'remoting%': '<(remoting)',
1115 'enable_one_click_signin%': '<(enable_one_click_signin)', 1128 'enable_one_click_signin%': '<(enable_one_click_signin)',
1116 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)', 1129 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)',
1117 'enable_webrtc%': '<(enable_webrtc)', 1130 'enable_webrtc%': '<(enable_webrtc)',
1118 'chromium_win_pch%': '<(chromium_win_pch)', 1131 'chromium_win_pch%': '<(chromium_win_pch)',
1119 'configuration_policy%': '<(configuration_policy)', 1132 'configuration_policy%': '<(configuration_policy)',
1120 'safe_browsing%': '<(safe_browsing)', 1133 'safe_browsing%': '<(safe_browsing)',
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension) ', 1211 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension) ',
1199 'v8_optimized_debug%': '<(v8_optimized_debug)', 1212 'v8_optimized_debug%': '<(v8_optimized_debug)',
1200 'proprietary_codecs%': '<(proprietary_codecs)', 1213 'proprietary_codecs%': '<(proprietary_codecs)',
1201 'use_goma%': '<(use_goma)', 1214 'use_goma%': '<(use_goma)',
1202 'gomadir%': '<(gomadir)', 1215 'gomadir%': '<(gomadir)',
1203 'use_lto%': '<(use_lto)', 1216 'use_lto%': '<(use_lto)',
1204 'use_lto_o2%': '<(use_lto_o2)', 1217 'use_lto_o2%': '<(use_lto_o2)',
1205 'video_hole%': '<(video_hole)', 1218 'video_hole%': '<(video_hole)',
1206 'enable_load_completion_hacks%': '<(enable_load_completion_hacks)', 1219 'enable_load_completion_hacks%': '<(enable_load_completion_hacks)',
1207 'support_pre_M6_history_database%': '<(support_pre_M6_history_database)', 1220 'support_pre_M6_history_database%': '<(support_pre_M6_history_database)',
1221 'v8_use_external_startup_data': '<(v8_use_external_startup_data)',
1208 1222
1209 # Whether or not we are building the Athena shell. 1223 # Whether or not we are building the Athena shell.
1210 'use_athena%': '0', 1224 'use_athena%': '0',
1211 1225
1212 # Use system protobuf instead of bundled one. 1226 # Use system protobuf instead of bundled one.
1213 'use_system_protobuf%': 0, 1227 'use_system_protobuf%': 0,
1214 1228
1215 # Use system yasm instead of bundled one. 1229 # Use system yasm instead of bundled one.
1216 'use_system_yasm%': 0, 1230 'use_system_yasm%': 0,
1217 1231
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 'linux_link_gnome_keyring%': 0, 1361 'linux_link_gnome_keyring%': 0,
1348 # Set to 1 to link against gsettings APIs instead of using dlopen(). 1362 # Set to 1 to link against gsettings APIs instead of using dlopen().
1349 'linux_link_gsettings%': 0, 1363 'linux_link_gsettings%': 0,
1350 1364
1351 # Enable use of OpenMAX DL FFT routines. 1365 # Enable use of OpenMAX DL FFT routines.
1352 'use_openmax_dl_fft%': '<(use_openmax_dl_fft)', 1366 'use_openmax_dl_fft%': '<(use_openmax_dl_fft)',
1353 1367
1354 # Enable new NPDevice API. 1368 # Enable new NPDevice API.
1355 'enable_new_npdevice_api%': 0, 1369 'enable_new_npdevice_api%': 0,
1356 1370
1357 # Enable EGLImage support in OpenMAX
1358 'enable_eglimage%': 1,
1359
1360 # .gyp files or targets should set chromium_code to 1 if they build 1371 # .gyp files or targets should set chromium_code to 1 if they build
1361 # Chromium-specific code, as opposed to external code. This variable is 1372 # Chromium-specific code, as opposed to external code. This variable is
1362 # used to control such things as the set of warnings to enable, and 1373 # used to control such things as the set of warnings to enable, and
1363 # whether warnings are treated as errors. 1374 # whether warnings are treated as errors.
1364 'chromium_code%': 0, 1375 'chromium_code%': 0,
1365 1376
1366 # Disable fatal linker warnings, similarly to how we make it possible 1377 # Disable fatal linker warnings, similarly to how we make it possible
1367 # to disable -Werror (e.g. for different toolchain versions). 1378 # to disable -Werror (e.g. for different toolchain versions).
1368 'disable_fatal_linker_warnings%': 0, 1379 'disable_fatal_linker_warnings%': 0,
1369 1380
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
1453 # Whether we are using the rlz library or not. Platforms like Android send 1464 # Whether we are using the rlz library or not. Platforms like Android send
1454 # rlz codes for searches but do not use the library. 1465 # rlz codes for searches but do not use the library.
1455 'enable_rlz%': 0, 1466 'enable_rlz%': 0,
1456 1467
1457 # Turns on the i18n support in V8. 1468 # Turns on the i18n support in V8.
1458 'v8_enable_i18n_support': 1, 1469 'v8_enable_i18n_support': 1,
1459 1470
1460 # Compile d8 for the host toolset. 1471 # Compile d8 for the host toolset.
1461 'v8_toolset_for_d8': 'host', 1472 'v8_toolset_for_d8': 'host',
1462 1473
1463 # Use the chromium skia by default.
1464 'use_system_skia%': '0',
1465
1466 # Use brlapi from brltty for braille display support. 1474 # Use brlapi from brltty for braille display support.
1467 'use_brlapi%': 0, 1475 'use_brlapi%': 0,
1468 1476
1469 # Relative path to icu.gyp from this file. 1477 # Relative path to icu.gyp from this file.
1470 'icu_gyp_path': '../third_party/icu/icu.gyp', 1478 'icu_gyp_path': '../third_party/icu/icu.gyp',
1471 1479
1472 # IPC fuzzer is disabled by default. 1480 # IPC fuzzer is disabled by default.
1473 'enable_ipc_fuzzer%': 0, 1481 'enable_ipc_fuzzer%': 0,
1474 1482
1475 1483
(...skipping 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after
2746 ['tracing_like_official_build!=0', { 2754 ['tracing_like_official_build!=0', {
2747 'defines': ['TRACING_IS_OFFICIAL_BUILD=1'], 2755 'defines': ['TRACING_IS_OFFICIAL_BUILD=1'],
2748 }], # tracing_like_official_build!=0 2756 }], # tracing_like_official_build!=0
2749 ['win_use_allocator_shim==0', { 2757 ['win_use_allocator_shim==0', {
2750 'conditions': [ 2758 'conditions': [
2751 ['OS=="win"', { 2759 ['OS=="win"', {
2752 'defines': ['NO_TCMALLOC'], 2760 'defines': ['NO_TCMALLOC'],
2753 }], 2761 }],
2754 ], 2762 ],
2755 }], 2763 }],
2756 ['enable_eglimage==1', {
2757 'defines': [
2758 'ENABLE_EGLIMAGE=1',
2759 ],
2760 }],
2761 ['asan==1', { 2764 ['asan==1', {
2762 'defines': [ 2765 'defines': [
2763 'ADDRESS_SANITIZER', 2766 'ADDRESS_SANITIZER',
2764 'MEMORY_TOOL_REPLACES_ALLOCATOR', 2767 'MEMORY_TOOL_REPLACES_ALLOCATOR',
2765 'MEMORY_SANITIZER_INITIAL_SIZE', 2768 'MEMORY_SANITIZER_INITIAL_SIZE',
2766 ], 2769 ],
2767 }], 2770 }],
2768 ['syzyasan==1', { 2771 ['syzyasan==1', {
2769 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs. 2772 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs.
2770 'msvs_settings': { 2773 'msvs_settings': {
(...skipping 26 matching lines...) Expand all
2797 'msvs_settings': { 2800 'msvs_settings': {
2798 # Generates debug info when win_z7=1 2801 # Generates debug info when win_z7=1
2799 # even if fastbuild=1 (that makes GenerateDebugInformation false). 2802 # even if fastbuild=1 (that makes GenerateDebugInformation false).
2800 'VCLinkerTool': { 2803 'VCLinkerTool': {
2801 'GenerateDebugInformation': 'true', 2804 'GenerateDebugInformation': 'true',
2802 }, 2805 },
2803 'VCCLCompilerTool': { 2806 'VCCLCompilerTool': {
2804 'DebugInformationFormat': '1', 2807 'DebugInformationFormat': '1',
2805 } 2808 }
2806 } 2809 }
2807 }], 2810 }], # win_z7!=0
2808 ], # win_z7!=0 2811 ['win_analyze', {
2812 'defines!': [
2813 # This is prohibited when running /analyze.
2814 '_USING_V110_SDK71_',
2815 ],
2816 'msvs_settings': {
2817 'VCCLCompilerTool': {
2818 # Set WarnAsError to false to disable this setting for most
2819 # projects so that compilation continues.
2820 'WarnAsError': 'false',
2821 # When win_analyze is specified add the /analyze switch.
2822 # Also add /WX- to force-disable WarnAsError for projects that
2823 # override WarnAsError.
2824 # Also, disable various noisy warnings that have low value.
2825 'AdditionalOptions': [
2826 '/analyze',
2827 '/WX-',
2828 '/wd6011', # Dereferencing NULL pointer
2829 '/wd6312', # Possible infinite loop: use of the constant
2830 # EXCEPTION_CONTINUE_EXECUTION in the exception-filter
2831 '/wd6326', # Potential comparison of constant with constant
2832 '/wd28159', # Consider using 'GetTickCount64'
2833 '/wd28204', # Inconsistent SAL annotations
2834 '/wd28251', # Inconsistent SAL annotations
2835 '/wd28252', # Inconsistent SAL annotations
2836 '/wd28253', # Inconsistent SAL annotations
2837 '/wd28196', # The precondition is not satisfied
2838 '/wd28301', # Inconsistent SAL annotations
2839 '/wd6340', # Sign mismatch in function parameter
2840 '/wd28182', # Dereferencing NULL pointer
2841 ],
2842 },
2843 },
2844 }], # win_analyze
2845 ],
2809 }], # OS==win 2846 }], # OS==win
2810 ['chromecast==1', { 2847 ['chromecast==1', {
2811 'defines': [ 2848 'defines': [
2812 'LOG_DISABLED=0', 2849 'LOG_DISABLED=0',
2813 ], 2850 ],
2814 'conditions': [ 2851 'conditions': [
2815 ['target_arch=="arm"', { 2852 ['target_arch=="arm"', {
2816 'defines': [ 2853 'defines': [
2817 # TODO(lcwu): Work around an error when building Chromium 2854 # TODO(lcwu): Work around an error when building Chromium
2818 # with gcc-4.5.3 (e.g. v8/src/platform-linux.cc). Remove 2855 # with gcc-4.5.3 (e.g. v8/src/platform-linux.cc). Remove
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
2926 }], 2963 }],
2927 ['enable_ipc_fuzzer==1', { 2964 ['enable_ipc_fuzzer==1', {
2928 'defines': ['ENABLE_IPC_FUZZER=1'], 2965 'defines': ['ENABLE_IPC_FUZZER=1'],
2929 }], 2966 }],
2930 ['video_hole==1', { 2967 ['video_hole==1', {
2931 'defines': ['VIDEO_HOLE=1'], 2968 'defines': ['VIDEO_HOLE=1'],
2932 }], 2969 }],
2933 ['enable_load_completion_hacks==1', { 2970 ['enable_load_completion_hacks==1', {
2934 'defines': ['ENABLE_LOAD_COMPLETION_HACKS=1'], 2971 'defines': ['ENABLE_LOAD_COMPLETION_HACKS=1'],
2935 }], 2972 }],
2973 ['v8_use_external_startup_data==1', {
2974 'defines': ['V8_USE_EXTERNAL_STARTUP_DATA'],
2975 }],
2936 ], # conditions for 'target_defaults' 2976 ], # conditions for 'target_defaults'
2937 'target_conditions': [ 2977 'target_conditions': [
2938 ['<(use_openssl)==1', { 2978 ['<(use_openssl)==1', {
2939 'defines': ['USE_OPENSSL=1'], 2979 'defines': ['USE_OPENSSL=1'],
2940 }], 2980 }],
2941 ['<(use_openssl_certs)==1', { 2981 ['<(use_openssl_certs)==1', {
2942 'defines': ['USE_OPENSSL_CERTS=1'], 2982 'defines': ['USE_OPENSSL_CERTS=1'],
2943 }], 2983 }],
2944 ['>(nacl_untrusted_build)==1', { 2984 ['>(nacl_untrusted_build)==1', {
2945 'defines': [ 2985 'defines': [
(...skipping 2892 matching lines...) Expand 10 before | Expand all | Expand 10 after
5838 # settings in target dicts. SYMROOT is a special case, because many other 5878 # settings in target dicts. SYMROOT is a special case, because many other
5839 # Xcode variables depend on it, including variables such as 5879 # Xcode variables depend on it, including variables such as
5840 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5880 # 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 5881 # 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 5882 # 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, 5883 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5844 # and therefore SYMROOT, needs to be set at the project level. 5884 # and therefore SYMROOT, needs to be set at the project level.
5845 'SYMROOT': '<(DEPTH)/xcodebuild', 5885 'SYMROOT': '<(DEPTH)/xcodebuild',
5846 }, 5886 },
5847 } 5887 }
OLDNEW
« no previous file with comments | « build/build_config.h ('k') | build/config/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698