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

Side by Side Diff: build/common.gypi

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/android/test_runner.py ('k') | build/compiled_action.gni » ('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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 'chromium_win_pch%': 0, 560 'chromium_win_pch%': 0,
561 561
562 # Clang stuff. 562 # Clang stuff.
563 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts', 563 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts',
564 # Set this to true when building with Clang. 564 # Set this to true when building with Clang.
565 # See http://code.google.com/p/chromium/wiki/Clang for details. 565 # See http://code.google.com/p/chromium/wiki/Clang for details.
566 # If this is set, clang is used as both host and target compiler in 566 # If this is set, clang is used as both host and target compiler in
567 # cross-compile builds. 567 # cross-compile builds.
568 'clang%': 0, 568 'clang%': 0,
569 569
570 # Use experimental lld linker instead of the platform's default linker.
571 'use_lld%': 0,
572
570 # Enable plug-in installation by default. 573 # Enable plug-in installation by default.
571 'enable_plugin_installation%': 1, 574 'enable_plugin_installation%': 1,
572 575
573 # Specifies whether to use canvas_skia.cc in place of platform 576 # Specifies whether to use canvas_skia.cc in place of platform
574 # specific implementations of gfx::Canvas. Affects text drawing in the 577 # specific implementations of gfx::Canvas. Affects text drawing in the
575 # Chrome UI. 578 # Chrome UI.
576 # TODO(asvitkine): Enable this on all platforms and delete this flag. 579 # TODO(asvitkine): Enable this on all platforms and delete this flag.
577 # http://crbug.com/105550 580 # http://crbug.com/105550
578 'use_canvas_skia%': 0, 581 'use_canvas_skia%': 0,
579 582
580 # Set to "tsan", "memcheck", or "drmemory" to configure the build to work 583 # Set to "tsan", "memcheck", or "drmemory" to configure the build to work
581 # with one of those tools. 584 # with one of those tools.
582 'build_for_tool%': '', 585 'build_for_tool%': '',
583 586
584 # If no directory is specified then a temporary directory will be used. 587 # If no directory is specified then a temporary directory will be used.
585 'test_isolation_outdir%': '', 588 'test_isolation_outdir%': '',
586 # True if isolate should fail if the isolate files refer to files 589 # True if isolate should fail if the isolate files refer to files
587 # that are missing. 590 # that are missing.
588 'test_isolation_fail_on_missing': 1, 591 'test_isolation_fail_on_missing': 1,
589 592
590 'wix_path%': '<(DEPTH)/third_party/wix', 593 'wix_path%': '<(DEPTH)/third_party/wix',
591 594
592 # Managed users are enabled by default. 595 # Supervised users are enabled by default.
593 'enable_managed_users%': 1, 596 'enable_supervised_users%': 1,
594 597
595 # Platform natively supports discardable memory. 598 # Platform natively supports discardable memory.
596 'native_discardable_memory%': 0, 599 'native_discardable_memory%': 0,
597 600
598 # Platform sends memory pressure signals natively. 601 # Platform sends memory pressure signals natively.
599 'native_memory_pressure_signals%': 0, 602 'native_memory_pressure_signals%': 0,
600 603
601 'spdy_proxy_auth_property%' : '', 604 'spdy_proxy_auth_property%' : '',
602 'spdy_proxy_auth_value%' : '', 605 'spdy_proxy_auth_value%' : '',
603 'enable_mdns%' : 0, 606 'enable_mdns%' : 0,
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 'cld2_table_size%': 0, 794 'cld2_table_size%': 0,
792 'enable_basic_printing%': 0, 795 'enable_basic_printing%': 0,
793 'enable_print_preview%': 0, 796 'enable_print_preview%': 0,
794 'enable_session_service%': 0, 797 'enable_session_service%': 0,
795 'enable_spellcheck%': 0, 798 'enable_spellcheck%': 0,
796 'enable_themes%': 0, 799 'enable_themes%': 0,
797 'enable_webrtc%': 0, 800 'enable_webrtc%': 0,
798 'notifications%': 0, 801 'notifications%': 0,
799 'remoting%': 0, 802 'remoting%': 0,
800 'safe_browsing%': 0, 803 'safe_browsing%': 0,
801 'enable_managed_users%': 0, 804 'enable_supervised_users%': 0,
802 'enable_task_manager%': 0, 805 'enable_task_manager%': 0,
803 'use_system_libcxx%': 1, 806 'use_system_libcxx%': 1,
804 'support_pre_M6_history_database%': 0, 807 'support_pre_M6_history_database%': 0,
805 }], 808 }],
806 809
807 # Use GPU accelerated cross process image transport by default 810 # Use GPU accelerated cross process image transport by default
808 # on linux builds with the Aura window manager 811 # on linux builds with the Aura window manager
809 ['use_aura==1 and OS=="linux"', { 812 ['use_aura==1 and OS=="linux"', {
810 'ui_compositor_image_transport%': 1, 813 'ui_compositor_image_transport%': 1,
811 }, { 814 }, {
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 993
991 # Turn on JNI generation optimizations on non-WebView builds. 994 # Turn on JNI generation optimizations on non-WebView builds.
992 ['OS=="android" and android_webview_build==0', { 995 ['OS=="android" and android_webview_build==0', {
993 'optimize_jni_generation%': 1, 996 'optimize_jni_generation%': 1,
994 }, { 997 }, {
995 'optimize_jni_generation%': 0, 998 'optimize_jni_generation%': 0,
996 }], 999 }],
997 1000
998 # TODO(baixo): Enable v8_use_external_startup_data 1001 # TODO(baixo): Enable v8_use_external_startup_data
999 # http://crbug.com/421063 1002 # http://crbug.com/421063
1000 ['android_webview_build==0 and android_webview_telemetry_build==0 and ch romecast==0 and OS=="android"', { 1003 ['android_webview_build==0 and android_webview_telemetry_build==0 and ch romecast==0 and chromeos==0 and (OS=="android" or OS=="linux" or OS=="mac")', {
1001 'v8_use_external_startup_data': 1, 1004 'v8_use_external_startup_data': 1,
1002 }, { 1005 }, {
1003 'v8_use_external_startup_data': 0, 1006 'v8_use_external_startup_data': 0,
1004 }], 1007 }],
1005 ], 1008 ],
1006 1009
1007 # Set this to 1 to enable use of concatenated impulse responses 1010 # Set this to 1 to enable use of concatenated impulse responses
1008 # for the HRTF panner in WebAudio. 1011 # for the HRTF panner in WebAudio.
1009 'use_concatenated_impulse_responses': 1, 1012 'use_concatenated_impulse_responses': 1,
1010 1013
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 'android_webview_telemetry_build%': '<(android_webview_telemetry_build)', 1182 'android_webview_telemetry_build%': '<(android_webview_telemetry_build)',
1180 'icu_use_data_file_flag%': '<(icu_use_data_file_flag)', 1183 'icu_use_data_file_flag%': '<(icu_use_data_file_flag)',
1181 'gyp_managed_install%': 0, 1184 'gyp_managed_install%': 0,
1182 'create_standalone_apk%': 1, 1185 'create_standalone_apk%': 1,
1183 'enable_app_list%': '<(enable_app_list)', 1186 'enable_app_list%': '<(enable_app_list)',
1184 'use_default_render_theme%': '<(use_default_render_theme)', 1187 'use_default_render_theme%': '<(use_default_render_theme)',
1185 'enable_settings_app%': '<(enable_settings_app)', 1188 'enable_settings_app%': '<(enable_settings_app)',
1186 'google_api_key%': '<(google_api_key)', 1189 'google_api_key%': '<(google_api_key)',
1187 'google_default_client_id%': '<(google_default_client_id)', 1190 'google_default_client_id%': '<(google_default_client_id)',
1188 'google_default_client_secret%': '<(google_default_client_secret)', 1191 'google_default_client_secret%': '<(google_default_client_secret)',
1189 'enable_managed_users%': '<(enable_managed_users)', 1192 'enable_supervised_users%': '<(enable_supervised_users)',
1190 'native_discardable_memory%': '<(native_discardable_memory)', 1193 'native_discardable_memory%': '<(native_discardable_memory)',
1191 'native_memory_pressure_signals%': '<(native_memory_pressure_signals)', 1194 'native_memory_pressure_signals%': '<(native_memory_pressure_signals)',
1192 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)', 1195 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)',
1193 'spdy_proxy_auth_value%': '<(spdy_proxy_auth_value)', 1196 'spdy_proxy_auth_value%': '<(spdy_proxy_auth_value)',
1194 'enable_mdns%' : '<(enable_mdns)', 1197 'enable_mdns%' : '<(enable_mdns)',
1195 'enable_service_discovery%' : '<(enable_service_discovery)', 1198 'enable_service_discovery%' : '<(enable_service_discovery)',
1196 'enable_wifi_bootstrapping%': '<(enable_wifi_bootstrapping)', 1199 'enable_wifi_bootstrapping%': '<(enable_wifi_bootstrapping)',
1197 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension) ', 1200 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension) ',
1198 'v8_optimized_debug%': '<(v8_optimized_debug)', 1201 'v8_optimized_debug%': '<(v8_optimized_debug)',
1199 'proprietary_codecs%': '<(proprietary_codecs)', 1202 'proprietary_codecs%': '<(proprietary_codecs)',
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 1255
1253 # Set to 1 to enable running Android lint on java/class files. 1256 # Set to 1 to enable running Android lint on java/class files.
1254 'android_lint%': 1, 1257 'android_lint%': 1,
1255 1258
1256 # Although base/allocator lets you select a heap library via an 1259 # Although base/allocator lets you select a heap library via an
1257 # environment variable, the libcmt shim it uses sometimes gets in 1260 # environment variable, the libcmt shim it uses sometimes gets in
1258 # the way. To disable it entirely, and switch to normal msvcrt, do e.g. 1261 # the way. To disable it entirely, and switch to normal msvcrt, do e.g.
1259 # 'win_use_allocator_shim': 0, 1262 # 'win_use_allocator_shim': 0,
1260 # 'win_release_RuntimeLibrary': 2 1263 # 'win_release_RuntimeLibrary': 2
1261 # to ~/.gyp/include.gypi, gclient runhooks --force, and do a release build. 1264 # to ~/.gyp/include.gypi, gclient runhooks --force, and do a release build.
1262 'win_use_allocator_shim%': 1, # 1 = shim allocator via libcmt; 0 = msvcrt 1265 'win_use_allocator_shim%': 0, # 1 = shim allocator via libcmt; 0 = msvcrt
1263 1266
1264 # TODO(bradnelson): eliminate this when possible. 1267 # TODO(bradnelson): eliminate this when possible.
1265 # To allow local gyp files to prevent release.vsprops from being included. 1268 # To allow local gyp files to prevent release.vsprops from being included.
1266 # Yes(1) means include release.vsprops. 1269 # Yes(1) means include release.vsprops.
1267 # Once all vsprops settings are migrated into gyp, this can go away. 1270 # Once all vsprops settings are migrated into gyp, this can go away.
1268 'msvs_use_common_release%': 1, 1271 'msvs_use_common_release%': 1,
1269 1272
1270 # TODO(bradnelson): eliminate this when possible. 1273 # TODO(bradnelson): eliminate this when possible.
1271 # To allow local gyp files to override additional linker options for msvs. 1274 # To allow local gyp files to override additional linker options for msvs.
1272 # Yes(1) means set use the common linker options. 1275 # Yes(1) means set use the common linker options.
(...skipping 22 matching lines...) Expand all
1295 1298
1296 # Whether the VS xtree header has been patched to disable warning 4702. If 1299 # Whether the VS xtree header has been patched to disable warning 4702. If
1297 # it has, then we don't need to disable 4702 (unreachable code warning). 1300 # it has, then we don't need to disable 4702 (unreachable code warning).
1298 # The patch is preapplied to the internal toolchain and hence all bots. 1301 # The patch is preapplied to the internal toolchain and hence all bots.
1299 'msvs_xtree_patched%': '<!pymod_do_main(win_is_xtree_patched)', 1302 'msvs_xtree_patched%': '<!pymod_do_main(win_is_xtree_patched)',
1300 1303
1301 # Clang stuff. 1304 # Clang stuff.
1302 'clang%': '<(clang)', 1305 'clang%': '<(clang)',
1303 'host_clang%': '<(host_clang)', 1306 'host_clang%': '<(host_clang)',
1304 'make_clang_dir%': '<(make_clang_dir)', 1307 'make_clang_dir%': '<(make_clang_dir)',
1308 'use_lld%': '<(use_lld)',
1305 1309
1306 # Control which version of clang to use when building for iOS. If set to 1310 # Control which version of clang to use when building for iOS. If set to
1307 # '1', uses the version of clang that ships with Xcode. If set to '0', uses 1311 # '1', uses the version of clang that ships with Xcode. If set to '0', uses
1308 # the version of clang that ships with the Chromium source. This variable 1312 # the version of clang that ships with the Chromium source. This variable
1309 # is automatically set to '1' when using the Xcode generator. 1313 # is automatically set to '1' when using the Xcode generator.
1310 'clang_xcode%': 0, 1314 'clang_xcode%': 0,
1311 1315
1312 # These two variables can be set in GYP_DEFINES while running 1316 # These two variables can be set in GYP_DEFINES while running
1313 # |gclient runhooks| to let clang run a plugin in every compilation. 1317 # |gclient runhooks| to let clang run a plugin in every compilation.
1314 # Only has an effect if 'clang=1' is in GYP_DEFINES as well. 1318 # Only has an effect if 'clang=1' is in GYP_DEFINES as well.
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
1766 # breaking assumptions in the build system that when inputs have changed 1770 # breaking assumptions in the build system that when inputs have changed
1767 # the outputs should always change as well. This is meant purely for 1771 # the outputs should always change as well. This is meant purely for
1768 # developer builds, to avoid spurious re-linking of native files. 1772 # developer builds, to avoid spurious re-linking of native files.
1769 'optimize_jni_generation%': '<(optimize_jni_generation)', 1773 'optimize_jni_generation%': '<(optimize_jni_generation)',
1770 1774
1771 # Always uses openssl. 1775 # Always uses openssl.
1772 'use_openssl%': 1, 1776 'use_openssl%': 1,
1773 'use_openssl_certs%': 1, 1777 'use_openssl_certs%': 1,
1774 1778
1775 'proprietary_codecs%': '<(proprietary_codecs)', 1779 'proprietary_codecs%': '<(proprietary_codecs)',
1776 'safe_browsing%': 1, 1780 'safe_browsing%': 2,
1777 'enable_web_speech%': 0, 1781 'enable_web_speech%': 0,
1778 'java_bridge%': 1, 1782 'java_bridge%': 1,
1779 'build_ffmpegsumo%': 0, 1783 'build_ffmpegsumo%': 0,
1780 'use_allocator%': 'none', 1784 'use_allocator%': 'none',
1781 1785
1782 # Disable Native Client. 1786 # Disable Native Client.
1783 'disable_nacl%': 1, 1787 'disable_nacl%': 1,
1784 1788
1785 # Android does not support background apps. 1789 # Android does not support background apps.
1786 'enable_background%': 0, 1790 'enable_background%': 0,
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
2228 # Build tweaks for DrMemory. 2232 # Build tweaks for DrMemory.
2229 # TODO(rnk): Combine with tsan config to share the builder. 2233 # TODO(rnk): Combine with tsan config to share the builder.
2230 # http://crbug.com/108155 2234 # http://crbug.com/108155
2231 ['build_for_tool=="drmemory"', { 2235 ['build_for_tool=="drmemory"', {
2232 # These runtime checks force initialization of stack vars which blocks 2236 # These runtime checks force initialization of stack vars which blocks
2233 # DrMemory's uninit detection. 2237 # DrMemory's uninit detection.
2234 'win_debug_RuntimeChecks': '0', 2238 'win_debug_RuntimeChecks': '0',
2235 # Iterator debugging is slow. 2239 # Iterator debugging is slow.
2236 'win_debug_disable_iterator_debugging': '1', 2240 'win_debug_disable_iterator_debugging': '1',
2237 # Try to disable optimizations that mess up stacks in a release build. 2241 # Try to disable optimizations that mess up stacks in a release build.
2238 # DrM-i#1054 (http://code.google.com/p/drmemory/issues/detail?id=1054) 2242 # DrM-i#1054 (https://github.com/DynamoRIO/drmemory/issues/1054)
2239 # /O2 and /Ob0 (disable inline) cannot be used together because of a 2243 # /O2 and /Ob0 (disable inline) cannot be used together because of a
2240 # compiler bug, so we use /Ob1 instead. 2244 # compiler bug, so we use /Ob1 instead.
2241 'win_release_InlineFunctionExpansion': '1', 2245 'win_release_InlineFunctionExpansion': '1',
2242 'win_release_OmitFramePointers': '0', 2246 'win_release_OmitFramePointers': '0',
2243 # Ditto for debug, to support bumping win_debug_Optimization. 2247 # Ditto for debug, to support bumping win_debug_Optimization.
2244 'win_debug_InlineFunctionExpansion': 0, 2248 'win_debug_InlineFunctionExpansion': 0,
2245 'win_debug_OmitFramePointers': 0, 2249 'win_debug_OmitFramePointers': 0,
2246 # Keep the code under #ifndef NVALGRIND. 2250 # Keep the code under #ifndef NVALGRIND.
2247 'release_valgrind_build': 1, 2251 'release_valgrind_build': 1,
2248 }], 2252 }],
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
2338 # Do not disable seccomp_bpf anywhere without talking to 2342 # Do not disable seccomp_bpf anywhere without talking to
2339 # security@chromium.org! 2343 # security@chromium.org!
2340 ['((OS=="linux" or OS=="android") and ' 2344 ['((OS=="linux" or OS=="android") and '
2341 '(target_arch=="ia32" or target_arch=="x64" or ' 2345 '(target_arch=="ia32" or target_arch=="x64" or '
2342 'target_arch=="arm" or target_arch=="mipsel" or ' 2346 'target_arch=="arm" or target_arch=="mipsel" or '
2343 'target_arch=="arm64"))', { 2347 'target_arch=="arm64"))', {
2344 'use_seccomp_bpf%': 1, 2348 'use_seccomp_bpf%': 1,
2345 }, { 2349 }, {
2346 'use_seccomp_bpf%': 0, 2350 'use_seccomp_bpf%': 0,
2347 }], 2351 }],
2348
2349 # Set component build with LTO until all tests pass. 2352 # Set component build with LTO until all tests pass.
2350 # This also reduces link time. 2353 # This also reduces link time.
2351 ['use_lto==1', { 2354 ['use_lto==1', {
2352 'component%': "shared_library", 2355 'component%': "shared_library",
2353 }], 2356 }],
2354 ], 2357 ],
2355 2358
2356 # older history files use fts2 instead of fts3 2359 # older history files use fts2 instead of fts3
2357 'sqlite_enable_fts2%': '<(support_pre_M6_history_database)', 2360 'sqlite_enable_fts2%': '<(support_pre_M6_history_database)',
2358 2361
(...skipping 18 matching lines...) Expand all
2377 '<(PRODUCT_DIR)/default_apps/gmail.crx', 2380 '<(PRODUCT_DIR)/default_apps/gmail.crx',
2378 '<(PRODUCT_DIR)/default_apps/search.crx', 2381 '<(PRODUCT_DIR)/default_apps/search.crx',
2379 '<(PRODUCT_DIR)/default_apps/youtube.crx', 2382 '<(PRODUCT_DIR)/default_apps/youtube.crx',
2380 '<(PRODUCT_DIR)/default_apps/drive.crx', 2383 '<(PRODUCT_DIR)/default_apps/drive.crx',
2381 '<(PRODUCT_DIR)/default_apps/docs.crx', 2384 '<(PRODUCT_DIR)/default_apps/docs.crx',
2382 ], 2385 ],
2383 2386
2384 # Whether to allow building of the GPU-related isolates. 2387 # Whether to allow building of the GPU-related isolates.
2385 'archive_gpu_tests%': 0, 2388 'archive_gpu_tests%': 0,
2386 2389
2387 # Whether to allow building of chromoting related isolates. 2390 # Whether to allow building of chromoting related isolates.
2388 'archive_chromoting_tests%': 0, 2391 'archive_chromoting_tests%': 0,
2389 }, 2392 },
2390 'target_defaults': { 2393 'target_defaults': {
2391 'variables': { 2394 'variables': {
2392 # The condition that operates on chromium_code is in a target_conditions 2395 # The condition that operates on chromium_code is in a target_conditions
2393 # section, and will not have access to the default fallback value of 2396 # section, and will not have access to the default fallback value of
2394 # chromium_code at the top of this file, or to the chromium_code 2397 # chromium_code at the top of this file, or to the chromium_code
2395 # variable placed at the root variables scope of .gyp files, because 2398 # variable placed at the root variables scope of .gyp files, because
2396 # those variables are not set at target scope. As a workaround, 2399 # those variables are not set at target scope. As a workaround,
2397 # if chromium_code is not set at target scope, define it in target scope 2400 # if chromium_code is not set at target scope, define it in target scope
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
2937 }], 2940 }],
2938 ['disable_file_support==1', { 2941 ['disable_file_support==1', {
2939 'defines': ['DISABLE_FILE_SUPPORT=1'], 2942 'defines': ['DISABLE_FILE_SUPPORT=1'],
2940 }], 2943 }],
2941 ['disable_ftp_support==1', { 2944 ['disable_ftp_support==1', {
2942 'defines': ['DISABLE_FTP_SUPPORT=1'], 2945 'defines': ['DISABLE_FTP_SUPPORT=1'],
2943 }], 2946 }],
2944 ['use_icu_alternatives_on_android==1', { 2947 ['use_icu_alternatives_on_android==1', {
2945 'defines': ['USE_ICU_ALTERNATIVES_ON_ANDROID=1'], 2948 'defines': ['USE_ICU_ALTERNATIVES_ON_ANDROID=1'],
2946 }], 2949 }],
2947 ['enable_managed_users==1', { 2950 ['enable_supervised_users==1', {
2948 'defines': ['ENABLE_MANAGED_USERS=1'], 2951 'defines': ['ENABLE_SUPERVISED_USERS=1'],
2949 }], 2952 }],
2950 ['spdy_proxy_auth_property != ""', { 2953 ['spdy_proxy_auth_property != ""', {
2951 'defines': ['SPDY_PROXY_AUTH_PROPERTY="<(spdy_proxy_auth_property)"'], 2954 'defines': ['SPDY_PROXY_AUTH_PROPERTY="<(spdy_proxy_auth_property)"'],
2952 }], 2955 }],
2953 ['spdy_proxy_auth_value != ""', { 2956 ['spdy_proxy_auth_value != ""', {
2954 'defines': ['SPDY_PROXY_AUTH_VALUE="<(spdy_proxy_auth_value)"'], 2957 'defines': ['SPDY_PROXY_AUTH_VALUE="<(spdy_proxy_auth_value)"'],
2955 }], 2958 }],
2956 ['enable_mdns==1', { 2959 ['enable_mdns==1', {
2957 'defines': ['ENABLE_MDNS=1'], 2960 'defines': ['ENABLE_MDNS=1'],
2958 }], 2961 }],
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
3405 'DYNAMIC_ANNOTATIONS_ENABLED=0', 3408 'DYNAMIC_ANNOTATIONS_ENABLED=0',
3406 ], 3409 ],
3407 }, { 3410 }, {
3408 'defines': [ 3411 'defines': [
3409 'MEMORY_TOOL_REPLACES_ALLOCATOR', 3412 'MEMORY_TOOL_REPLACES_ALLOCATOR',
3410 'MEMORY_SANITIZER_INITIAL_SIZE', 3413 'MEMORY_SANITIZER_INITIAL_SIZE',
3411 'DYNAMIC_ANNOTATIONS_ENABLED=1', 3414 'DYNAMIC_ANNOTATIONS_ENABLED=1',
3412 'WTF_USE_DYNAMIC_ANNOTATIONS=1', 3415 'WTF_USE_DYNAMIC_ANNOTATIONS=1',
3413 ], 3416 ],
3414 }], 3417 }],
3415 ['win_use_allocator_shim==0', { 3418 ['OS=="win" and win_use_allocator_shim==0', {
3416 'defines': ['NO_TCMALLOC'], 3419 'defines': ['NO_TCMALLOC'],
3417 }], 3420 }],
3418 # _FORTIFY_SOURCE isn't really supported by Clang now, see 3421 # _FORTIFY_SOURCE isn't really supported by Clang now, see
3419 # http://llvm.org/bugs/show_bug.cgi?id=16821. 3422 # http://llvm.org/bugs/show_bug.cgi?id=16821.
3420 # It seems to work fine with Ubuntu 12 headers though, so use it 3423 # It seems to work fine with Ubuntu 12 headers though, so use it
3421 # in official builds. 3424 # in official builds.
3422 ['os_posix==1 and (asan!=1 and msan!=1 and tsan!=1 and lsan!=1 and ubs an!=1) and (OS!="linux" or clang!=1 or buildtype=="Official")', { 3425 ['os_posix==1 and (asan!=1 and msan!=1 and tsan!=1 and lsan!=1 and ubs an!=1) and (OS!="linux" or clang!=1 or buildtype=="Official")', {
3423 'target_conditions': [ 3426 'target_conditions': [
3424 ['chromium_code==1', { 3427 ['chromium_code==1', {
3425 # Non-chromium code is not guaranteed to compile cleanly 3428 # Non-chromium code is not guaranteed to compile cleanly
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
3622 }], 3625 }],
3623 ['OS=="linux" and target_arch=="ia32"', { 3626 ['OS=="linux" and target_arch=="ia32"', {
3624 'ldflags': [ 3627 'ldflags': [
3625 '-Wl,--no-as-needed', 3628 '-Wl,--no-as-needed',
3626 ], 3629 ],
3627 }], 3630 }],
3628 ['debug_unwind_tables==1', { 3631 ['debug_unwind_tables==1', {
3629 'cflags': ['-funwind-tables'], 3632 'cflags': ['-funwind-tables'],
3630 }, { 3633 }, {
3631 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'], 3634 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'],
3635 'defines': ['NO_UNWIND_TABLES'],
3632 }], 3636 }],
3633 # TODO(mostynb): shuffle clang/gcc_version/binutils_version 3637 # TODO(mostynb): shuffle clang/gcc_version/binutils_version
3634 # definitions in to the right scope to use them when setting 3638 # definitions in to the right scope to use them when setting
3635 # linux_use_debug_fission, so it can be used here alone. 3639 # linux_use_debug_fission, so it can be used here alone.
3636 ['linux_use_debug_fission==1 and linux_use_gold_flags==1 and (clan g==1 or gcc_version>=48) and binutils_version>=223', { 3640 ['linux_use_debug_fission==1 and linux_use_gold_flags==1 and (clan g==1 or gcc_version>=48) and binutils_version>=223', {
3637 'cflags': ['-gsplit-dwarf'], 3641 'cflags': ['-gsplit-dwarf'],
3638 }], 3642 }],
3639 ], 3643 ],
3640 }, 3644 },
3641 'Release_Base': { 3645 'Release_Base': {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
3703 '-fno-inline', 3707 '-fno-inline',
3704 '-fno-optimize-sibling-calls', 3708 '-fno-optimize-sibling-calls',
3705 ], 3709 ],
3706 }], 3710 }],
3707 ], 3711 ],
3708 }], 3712 }],
3709 ['release_unwind_tables==1', { 3713 ['release_unwind_tables==1', {
3710 'cflags': ['-funwind-tables'], 3714 'cflags': ['-funwind-tables'],
3711 }, { 3715 }, {
3712 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'], 3716 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'],
3717 'defines': ['NO_UNWIND_TABLES'],
3713 }], 3718 }],
3714 ], 3719 ],
3715 }, 3720 },
3716 }, 3721 },
3717 'conditions': [ 3722 'conditions': [
3718 ['target_arch=="ia32"', { 3723 ['target_arch=="ia32"', {
3719 'target_conditions': [ 3724 'target_conditions': [
3720 ['_toolset=="target"', { 3725 ['_toolset=="target"', {
3721 'asflags': [ 3726 'asflags': [
3722 # Needed so that libs with .s files (e.g. libicudata.a) 3727 # Needed so that libs with .s files (e.g. libicudata.a)
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
4265 'WTF_USE_LEAK_SANITIZER=1', 4270 'WTF_USE_LEAK_SANITIZER=1',
4266 ], 4271 ],
4267 }], 4272 }],
4268 ], 4273 ],
4269 }], 4274 }],
4270 ['tsan==1', { 4275 ['tsan==1', {
4271 'target_conditions': [ 4276 'target_conditions': [
4272 ['_toolset=="target"', { 4277 ['_toolset=="target"', {
4273 'cflags': [ 4278 'cflags': [
4274 '-fsanitize=thread', 4279 '-fsanitize=thread',
4275 '-fPIC',
4276 '-fsanitize-blacklist=<(tsan_blacklist)', 4280 '-fsanitize-blacklist=<(tsan_blacklist)',
4277 ], 4281 ],
4278 'ldflags': [ 4282 'ldflags': [
4279 '-fsanitize=thread', 4283 '-fsanitize=thread',
4280 ], 4284 ],
4281 'defines': [ 4285 'defines': [
4282 'THREAD_SANITIZER', 4286 'THREAD_SANITIZER',
4283 'DYNAMIC_ANNOTATIONS_EXTERNAL_IMPL=1', 4287 'DYNAMIC_ANNOTATIONS_EXTERNAL_IMPL=1',
4284 'WTF_USE_DYNAMIC_ANNOTATIONS_NOIMPL=1', 4288 'WTF_USE_DYNAMIC_ANNOTATIONS_NOIMPL=1',
4285 ], 4289 ],
4286 'target_conditions': [
4287 ['_type=="executable"', {
4288 'ldflags': [
4289 '-pie',
4290 ],
4291 }],
4292 ],
4293 }], 4290 }],
4294 ], 4291 ],
4295 }], 4292 }],
4296 ['msan==1', { 4293 ['msan==1', {
4297 'target_conditions': [ 4294 'target_conditions': [
4298 ['_toolset=="target"', { 4295 ['_toolset=="target"', {
4299 'cflags': [ 4296 'cflags': [
4300 '-fsanitize=memory', 4297 '-fsanitize=memory',
4301 '-fsanitize-memory-track-origins=<(msan_track_origins)', 4298 '-fsanitize-memory-track-origins=<(msan_track_origins)',
4302 '-fPIC',
4303 '-fsanitize-blacklist=<(msan_blacklist)', 4299 '-fsanitize-blacklist=<(msan_blacklist)',
4304 ], 4300 ],
4305 'ldflags': [ 4301 'ldflags': [
4306 '-fsanitize=memory', 4302 '-fsanitize=memory',
4307 ], 4303 ],
4308 'defines': [ 4304 'defines': [
4309 'MEMORY_SANITIZER', 4305 'MEMORY_SANITIZER',
4310 ], 4306 ],
4311 'target_conditions': [
4312 ['_type=="executable"', {
4313 'ldflags': [
4314 '-pie',
4315 ],
4316 }],
4317 ],
4318 }], 4307 }],
4319 ], 4308 ],
4320 }], 4309 }],
4321 ['use_instrumented_libraries==1', { 4310 ['use_instrumented_libraries==1', {
4322 'dependencies': [ 4311 'dependencies': [
4323 '<(DEPTH)/third_party/instrumented_libraries/instrumented_librarie s.gyp:instrumented_libraries', 4312 '<(DEPTH)/third_party/instrumented_libraries/instrumented_librarie s.gyp:instrumented_libraries',
4324 ], 4313 ],
4325 }], 4314 }],
4326 ['use_custom_libcxx==1', { 4315 ['use_custom_libcxx==1', {
4327 'dependencies': [ 4316 'dependencies': [
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
4641 # to say that it does. Define them here instead. 4630 # to say that it does. Define them here instead.
4642 'HAVE_SYS_UIO_H', 4631 'HAVE_SYS_UIO_H',
4643 ], 4632 ],
4644 'cflags': [ 4633 'cflags': [
4645 '--sysroot=<(android_ndk_sysroot)', 4634 '--sysroot=<(android_ndk_sysroot)',
4646 ], 4635 ],
4647 'ldflags': [ 4636 'ldflags': [
4648 '--sysroot=<(android_ndk_sysroot)', 4637 '--sysroot=<(android_ndk_sysroot)',
4649 '-nostdlib', 4638 '-nostdlib',
4650 ], 4639 ],
4651 'variables': {
4652 'conditions': [
4653 ['target_arch=="arm" and arm_thumb==1', {
4654 'thumb_option%': '-mthumb',
4655 }, {
4656 'thumb_option%': '',
4657 }],
4658 ],
4659 },
4660 'libraries': [ 4640 'libraries': [
4661 '-l<(android_stlport_library)', 4641 '-l<(android_stlport_library)',
4662 # Manually link the libgcc.a that the cross compiler uses. 4642 # Manually link the libgcc.a that the cross compiler uses.
4663 '<!(<(android_toolchain)/*-gcc <(thumb_option) -print-libgcc-f ile-name)', 4643 '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)',
4664 '-lc', 4644 '-lc',
4665 '-ldl', 4645 '-ldl',
4666 '-lm', 4646 '-lm',
4667 ], 4647 ],
4668 }], 4648 }],
4669 ['android_webview_build==1', { 4649 ['android_webview_build==1', {
4670 'cflags': [ 4650 'cflags': [
4671 # Android predefines this as 1; undefine it here so Chromium 4651 # Android predefines this as 1; undefine it here so Chromium
4672 # can redefine it later to be 2 for chromium code and unset 4652 # can redefine it later to be 2 for chromium code and unset
4673 # for third party code. This works because cflags are added 4653 # for third party code. This works because cflags are added
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
4718 # NOTE: The stlport header include paths below are specified in 4698 # NOTE: The stlport header include paths below are specified in
4719 # cflags rather than include_dirs because they need to come 4699 # cflags rather than include_dirs because they need to come
4720 # after include_dirs. Think of them like system headers, but 4700 # after include_dirs. Think of them like system headers, but
4721 # don't use '-isystem' because the arm-linux-androideabi-4.4.3 4701 # don't use '-isystem' because the arm-linux-androideabi-4.4.3
4722 # toolchain (circa Gingerbread) will exhibit strange errors. 4702 # toolchain (circa Gingerbread) will exhibit strange errors.
4723 # The include ordering here is important; change with caution. 4703 # The include ordering here is important; change with caution.
4724 ['android_webview_build==0', { 4704 ['android_webview_build==0', {
4725 'cflags': [ 4705 'cflags': [
4726 '-isystem<(android_stlport_include)', 4706 '-isystem<(android_stlport_include)',
4727 ], 4707 ],
4728 'conditions': [ 4708 'ldflags': [
4729 ['target_arch=="arm" and arm_thumb==1', { 4709 '-L<(android_stlport_libs_dir)',
4730 'ldflags': [ '-L<(android_stlport_libs_dir)/thumb' ]
4731 }, {
4732 'ldflags': [ '-L<(android_stlport_libs_dir)' ]
4733 }],
4734 ], 4710 ],
4735 }, { # else: android_webview_build!=0 4711 }, { # else: android_webview_build!=0
4736 'aosp_build_settings': { 4712 'aosp_build_settings': {
4737 # Specify that we want to statically link stlport from the 4713 # Specify that we want to statically link stlport from the
4738 # NDK. This will provide all the include and library paths 4714 # NDK. This will provide all the include and library paths
4739 # automatically at build time, and link the right library. 4715 # automatically at build time, and link the right library.
4740 'LOCAL_NDK_STL_VARIANT': 'stlport_static', 4716 'LOCAL_NDK_STL_VARIANT': 'stlport_static',
4741 }, 4717 },
4742 }], 4718 }],
4743 ['target_arch=="ia32"', { 4719 ['target_arch=="ia32"', {
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
5729 ['CC.host', '$(CC)'], 5705 ['CC.host', '$(CC)'],
5730 ['CXX.host', '$(CXX)'], 5706 ['CXX.host', '$(CXX)'],
5731 ], 5707 ],
5732 }], 5708 }],
5733 ['clang==1 and OS=="win"', { 5709 ['clang==1 and OS=="win"', {
5734 'make_global_settings': [ 5710 'make_global_settings': [
5735 # On Windows, gyp's ninja generator only looks at CC. 5711 # On Windows, gyp's ninja generator only looks at CC.
5736 ['CC', '<(make_clang_dir)/bin/clang-cl'], 5712 ['CC', '<(make_clang_dir)/bin/clang-cl'],
5737 ], 5713 ],
5738 }], 5714 }],
5715 ['use_lld==1 and OS=="win"', {
5716 'make_global_settings': [
5717 # Limited to Windows because lld-link is the driver that is compatible
5718 # to link.exe.
5719 ['LD', '<(make_clang_dir)/bin/lld-link'],
5720 ],
5721 }],
5739 ['OS=="android" and clang==0', { 5722 ['OS=="android" and clang==0', {
5740 # Hardcode the compiler names in the Makefile so that 5723 # Hardcode the compiler names in the Makefile so that
5741 # it won't depend on the environment at make time. 5724 # it won't depend on the environment at make time.
5742 'make_global_settings': [ 5725 'make_global_settings': [
5743 ['CC', '<!(/bin/echo -n <(android_toolchain)/*-gcc)'], 5726 ['CC', '<!(/bin/echo -n <(android_toolchain)/*-gcc)'],
5744 ['CXX', '<!(/bin/echo -n <(android_toolchain)/*-g++)'], 5727 ['CXX', '<!(/bin/echo -n <(android_toolchain)/*-g++)'],
5745 ['CC.host', '<(host_cc)'], 5728 ['CC.host', '<(host_cc)'],
5746 ['CXX.host', '<(host_cxx)'], 5729 ['CXX.host', '<(host_cxx)'],
5747 ], 5730 ],
5748 }], 5731 }],
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
5862 # settings in target dicts. SYMROOT is a special case, because many other 5845 # settings in target dicts. SYMROOT is a special case, because many other
5863 # Xcode variables depend on it, including variables such as 5846 # Xcode variables depend on it, including variables such as
5864 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5847 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5865 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5848 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5866 # files to appear (when present) in the UI as actual files and not red 5849 # files to appear (when present) in the UI as actual files and not red
5867 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5850 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5868 # and therefore SYMROOT, needs to be set at the project level. 5851 # and therefore SYMROOT, needs to be set at the project level.
5869 'SYMROOT': '<(DEPTH)/xcodebuild', 5852 'SYMROOT': '<(DEPTH)/xcodebuild',
5870 }, 5853 },
5871 } 5854 }
OLDNEW
« no previous file with comments | « build/android/test_runner.py ('k') | build/compiled_action.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698