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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 # Use dynamic libraries instrumented by one of the sanitizers | 506 # Use dynamic libraries instrumented by one of the sanitizers |
507 # instead of the standard system libraries. Set this flag to download | 507 # instead of the standard system libraries. Set this flag to download |
508 # prebuilt binaries from GCS. | 508 # prebuilt binaries from GCS. |
509 'use_prebuilt_instrumented_libraries%': 0, | 509 'use_prebuilt_instrumented_libraries%': 0, |
510 | 510 |
511 # Use libc++ (third_party/libc++ and third_party/libc++abi) instead of | 511 # Use libc++ (third_party/libc++ and third_party/libc++abi) instead of |
512 # stdlibc++ as standard library. This is intended to use for instrumented | 512 # stdlibc++ as standard library. This is intended to use for instrumented |
513 # builds. | 513 # builds. |
514 'use_custom_libcxx%': 0, | 514 'use_custom_libcxx%': 0, |
515 | 515 |
516 # Use system libc++ instead of the default C++ library, usually libstdc++. | |
517 # This is intended for iOS builds only. | |
518 'use_system_libcxx%': 0, | |
519 | |
520 # Set to true to instrument the code with function call logger. | 516 # Set to true to instrument the code with function call logger. |
521 # See src/third_party/cygprofile/cyg-profile.cc for details. | 517 # See src/third_party/cygprofile/cyg-profile.cc for details. |
522 'order_profiling%': 0, | 518 'order_profiling%': 0, |
523 | 519 |
524 # Use the provided profiled order file to link Chrome image with it. | 520 # Use the provided profiled order file to link Chrome image with it. |
525 # This makes Chrome faster by better using CPU cache when executing code. | 521 # This makes Chrome faster by better using CPU cache when executing code. |
526 # This is known as PGO (profile guided optimization). | 522 # This is known as PGO (profile guided optimization). |
527 # See https://sites.google.com/a/google.com/chrome-msk/dev/boot-speed-up-e
ffort | 523 # See https://sites.google.com/a/google.com/chrome-msk/dev/boot-speed-up-e
ffort |
528 'order_text_section%' : "", | 524 'order_text_section%' : "", |
529 | 525 |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
867 'enable_print_preview%': 0, | 863 'enable_print_preview%': 0, |
868 'enable_session_service%': 0, | 864 'enable_session_service%': 0, |
869 'enable_spellcheck%': 0, | 865 'enable_spellcheck%': 0, |
870 'enable_themes%': 0, | 866 'enable_themes%': 0, |
871 'enable_webrtc%': 0, | 867 'enable_webrtc%': 0, |
872 'notifications%': 0, | 868 'notifications%': 0, |
873 'remoting%': 0, | 869 'remoting%': 0, |
874 'safe_browsing%': 0, | 870 'safe_browsing%': 0, |
875 'enable_supervised_users%': 0, | 871 'enable_supervised_users%': 0, |
876 'enable_task_manager%': 0, | 872 'enable_task_manager%': 0, |
877 'use_system_libcxx%': 1, | |
878 'enable_media_router%': 0, | 873 'enable_media_router%': 0, |
879 }], | 874 }], |
880 | 875 |
881 # Use GPU accelerated cross process image transport by default | 876 # Use GPU accelerated cross process image transport by default |
882 # on linux builds with the Aura window manager | 877 # on linux builds with the Aura window manager |
883 ['use_aura==1 and OS=="linux"', { | 878 ['use_aura==1 and OS=="linux"', { |
884 'ui_compositor_image_transport%': 1, | 879 'ui_compositor_image_transport%': 1, |
885 }, { | 880 }, { |
886 'ui_compositor_image_transport%': 0, | 881 'ui_compositor_image_transport%': 0, |
887 }], | 882 }], |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1191 'msan_track_origins%': '<(msan_track_origins)', | 1186 'msan_track_origins%': '<(msan_track_origins)', |
1192 'tsan%': '<(tsan)', | 1187 'tsan%': '<(tsan)', |
1193 'tsan_blacklist%': '<(tsan_blacklist)', | 1188 'tsan_blacklist%': '<(tsan_blacklist)', |
1194 'ubsan%': '<(ubsan)', | 1189 'ubsan%': '<(ubsan)', |
1195 'ubsan_blacklist%': '<(ubsan_blacklist)', | 1190 'ubsan_blacklist%': '<(ubsan_blacklist)', |
1196 'ubsan_vptr_blacklist%': '<(ubsan_vptr_blacklist)', | 1191 'ubsan_vptr_blacklist%': '<(ubsan_vptr_blacklist)', |
1197 'ubsan_vptr%': '<(ubsan_vptr)', | 1192 'ubsan_vptr%': '<(ubsan_vptr)', |
1198 'use_instrumented_libraries%': '<(use_instrumented_libraries)', | 1193 'use_instrumented_libraries%': '<(use_instrumented_libraries)', |
1199 'use_prebuilt_instrumented_libraries%': '<(use_prebuilt_instrumented_librari
es)', | 1194 'use_prebuilt_instrumented_libraries%': '<(use_prebuilt_instrumented_librari
es)', |
1200 'use_custom_libcxx%': '<(use_custom_libcxx)', | 1195 'use_custom_libcxx%': '<(use_custom_libcxx)', |
1201 'use_system_libcxx%': '<(use_system_libcxx)', | |
1202 'order_profiling%': '<(order_profiling)', | 1196 'order_profiling%': '<(order_profiling)', |
1203 'order_text_section%': '<(order_text_section)', | 1197 'order_text_section%': '<(order_text_section)', |
1204 'enable_extensions%': '<(enable_extensions)', | 1198 'enable_extensions%': '<(enable_extensions)', |
1205 'enable_pdf%': '<(enable_pdf)', | 1199 'enable_pdf%': '<(enable_pdf)', |
1206 'enable_plugin_installation%': '<(enable_plugin_installation)', | 1200 'enable_plugin_installation%': '<(enable_plugin_installation)', |
1207 'enable_plugins%': '<(enable_plugins)', | 1201 'enable_plugins%': '<(enable_plugins)', |
1208 'enable_session_service%': '<(enable_session_service)', | 1202 'enable_session_service%': '<(enable_session_service)', |
1209 'enable_themes%': '<(enable_themes)', | 1203 'enable_themes%': '<(enable_themes)', |
1210 'enable_autofill_dialog%': '<(enable_autofill_dialog)', | 1204 'enable_autofill_dialog%': '<(enable_autofill_dialog)', |
1211 'enable_prod_wallet_service%': '<(enable_prod_wallet_service)', | 1205 'enable_prod_wallet_service%': '<(enable_prod_wallet_service)', |
(...skipping 4177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5389 }, # target_defaults | 5383 }, # target_defaults |
5390 }], # OS=="mac" | 5384 }], # OS=="mac" |
5391 ['OS=="ios"', { | 5385 ['OS=="ios"', { |
5392 'includes': [ | 5386 'includes': [ |
5393 'ios/coverage.gypi', | 5387 'ios/coverage.gypi', |
5394 ], | 5388 ], |
5395 'target_defaults': { | 5389 'target_defaults': { |
5396 'xcode_settings' : { | 5390 'xcode_settings' : { |
5397 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11', | 5391 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11', |
5398 'ENABLE_BITCODE': 'NO', | 5392 'ENABLE_BITCODE': 'NO', |
| 5393 'CLANG_CXX_LIBRARY': 'libc++', # -stdlib=libc++ |
5399 | 5394 |
5400 'conditions': [ | 5395 'conditions': [ |
5401 # Older Xcodes do not support -Wno-deprecated-register, so pass an | 5396 # Older Xcodes do not support -Wno-deprecated-register, so pass an |
5402 # additional flag to suppress the "unknown compiler option" error. | 5397 # additional flag to suppress the "unknown compiler option" error. |
5403 # Restrict this flag to builds that are either compiling with Xcode | 5398 # Restrict this flag to builds that are either compiling with Xcode |
5404 # or compiling with Xcode's Clang. This will allow Ninja builds to | 5399 # or compiling with Xcode's Clang. This will allow Ninja builds to |
5405 # continue failing on unknown compiler options. | 5400 # continue failing on unknown compiler options. |
5406 # TODO(rohitrao): This flag is temporary and should be removed as | 5401 # TODO(rohitrao): This flag is temporary and should be removed as |
5407 # soon as the iOS bots are updated to use Xcode 5.1. | 5402 # soon as the iOS bots are updated to use Xcode 5.1. |
5408 ['clang_xcode==1', { | 5403 ['clang_xcode==1', { |
(...skipping 10 matching lines...) Expand all Loading... |
5419 # ones (they are used when building for the simulator). | 5414 # ones (they are used when building for the simulator). |
5420 ['target_subarch=="arm32"', { | 5415 ['target_subarch=="arm32"', { |
5421 'VALID_ARCHS': ['armv7', 'i386'], | 5416 'VALID_ARCHS': ['armv7', 'i386'], |
5422 }], | 5417 }], |
5423 ['target_subarch=="arm64"', { | 5418 ['target_subarch=="arm64"', { |
5424 'VALID_ARCHS': ['arm64', 'x86_64'], | 5419 'VALID_ARCHS': ['arm64', 'x86_64'], |
5425 }], | 5420 }], |
5426 ['target_subarch=="both"', { | 5421 ['target_subarch=="both"', { |
5427 'VALID_ARCHS': ['arm64', 'armv7', 'x86_64', 'i386'], | 5422 'VALID_ARCHS': ['arm64', 'armv7', 'x86_64', 'i386'], |
5428 }], | 5423 }], |
5429 ['use_system_libcxx==1', { | |
5430 'target_conditions': [ | |
5431 # Only use libc++ when building target for iOS not when building | |
5432 # tools for the host (OS X) as Mac targets OS X SDK 10.6 which | |
5433 # does not support libc++. | |
5434 ['_toolset=="target"', { | |
5435 'CLANG_CXX_LIBRARY': 'libc++', # -stdlib=libc++ | |
5436 }] | |
5437 ], | |
5438 }, { | |
5439 # The default for deployment target of 7.0+ is libc++, so force | |
5440 # the old behavior unless libc++ is enabled. | |
5441 'CLANG_CXX_LIBRARY': 'libstdc++', # -stdlib=libstdc++ | |
5442 }], | |
5443 ], | 5424 ], |
5444 }, | 5425 }, |
5445 'target_conditions': [ | 5426 'target_conditions': [ |
5446 ['_toolset=="host"', { | 5427 ['_toolset=="host"', { |
5447 'xcode_settings': { | 5428 'xcode_settings': { |
5448 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot | 5429 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot |
5449 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', | 5430 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', |
5450 'VALID_ARCHS': [ | 5431 'VALID_ARCHS': [ |
5451 'x86_64', | 5432 'x86_64', |
5452 ], | 5433 ], |
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6300 # settings in target dicts. SYMROOT is a special case, because many other | 6281 # settings in target dicts. SYMROOT is a special case, because many other |
6301 # Xcode variables depend on it, including variables such as | 6282 # Xcode variables depend on it, including variables such as |
6302 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6283 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
6303 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6284 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
6304 # files to appear (when present) in the UI as actual files and not red | 6285 # files to appear (when present) in the UI as actual files and not red |
6305 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6286 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
6306 # and therefore SYMROOT, needs to be set at the project level. | 6287 # and therefore SYMROOT, needs to be set at the project level. |
6307 'SYMROOT': '<(DEPTH)/xcodebuild', | 6288 'SYMROOT': '<(DEPTH)/xcodebuild', |
6308 }, | 6289 }, |
6309 } | 6290 } |
OLD | NEW |