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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts', | 574 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts', |
575 # Set this to true when building with Clang. | 575 # Set this to true when building with Clang. |
576 # See http://code.google.com/p/chromium/wiki/Clang for details. | 576 # See http://code.google.com/p/chromium/wiki/Clang for details. |
577 # If this is set, clang is used as both host and target compiler in | 577 # If this is set, clang is used as both host and target compiler in |
578 # cross-compile builds. | 578 # cross-compile builds. |
579 'clang%': 0, | 579 'clang%': 0, |
580 | 580 |
581 # Use experimental lld linker instead of the platform's default linker. | 581 # Use experimental lld linker instead of the platform's default linker. |
582 'use_lld%': 0, | 582 'use_lld%': 0, |
583 | 583 |
584 # Enable plug-in installation by default. | 584 # Enable plugin installation by default. |
585 'enable_plugin_installation%': 1, | 585 'enable_plugin_installation%': 1, |
586 | 586 |
587 # Specifies whether to use canvas_skia.cc in place of platform | 587 # Specifies whether to use canvas_skia.cc in place of platform |
588 # specific implementations of gfx::Canvas. Affects text drawing in the | 588 # specific implementations of gfx::Canvas. Affects text drawing in the |
589 # Chrome UI. | 589 # Chrome UI. |
590 # TODO(asvitkine): Enable this on all platforms and delete this flag. | 590 # TODO(asvitkine): Enable this on all platforms and delete this flag. |
591 # http://crbug.com/105550 | 591 # http://crbug.com/105550 |
592 'use_canvas_skia%': 0, | 592 'use_canvas_skia%': 0, |
593 | 593 |
594 # Set to "tsan", "memcheck", or "drmemory" to configure the build to work | 594 # Set to "tsan", "memcheck", or "drmemory" to configure the build to work |
595 # with one of those tools. | 595 # with one of those tools. |
596 'build_for_tool%': '', | 596 'build_for_tool%': '', |
597 | 597 |
598 # If no directory is specified then a temporary directory will be used. | 598 # If no directory is specified then a temporary directory will be used. |
599 'test_isolation_outdir%': '', | 599 'test_isolation_outdir%': '', |
600 | 600 |
601 'wix_path%': '<(DEPTH)/third_party/wix', | 601 'wix_path%': '<(DEPTH)/third_party/wix', |
602 | 602 |
603 # Supervised users are enabled by default. | 603 # Supervised users are enabled by default. |
604 'enable_supervised_users%': 1, | 604 'enable_supervised_users%': 1, |
605 | 605 |
606 # Platform natively supports discardable memory. | |
607 'native_discardable_memory%': 0, | |
608 | |
609 # Platform sends memory pressure signals natively. | 606 # Platform sends memory pressure signals natively. |
610 'native_memory_pressure_signals%': 0, | 607 'native_memory_pressure_signals%': 0, |
611 | 608 |
612 'spdy_proxy_auth_property%' : '', | 609 'spdy_proxy_auth_property%' : '', |
613 'spdy_proxy_auth_value%' : '', | 610 'spdy_proxy_auth_value%' : '', |
614 'enable_mdns%' : 0, | 611 'enable_mdns%' : 0, |
615 'enable_service_discovery%': 0, | 612 'enable_service_discovery%': 0, |
616 'enable_wifi_bootstrapping%': 0, | 613 'enable_wifi_bootstrapping%': 0, |
617 'enable_hangout_services_extension%': 0, | 614 'enable_hangout_services_extension%': 0, |
618 | 615 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 | 750 |
754 ['OS=="android"', { | 751 ['OS=="android"', { |
755 'enable_extensions%': 0, | 752 'enable_extensions%': 0, |
756 'enable_google_now%': 0, | 753 'enable_google_now%': 0, |
757 'cld_version%': 1, | 754 'cld_version%': 1, |
758 'enable_spellcheck%': 0, | 755 'enable_spellcheck%': 0, |
759 'enable_themes%': 0, | 756 'enable_themes%': 0, |
760 'remoting%': 0, | 757 'remoting%': 0, |
761 'arm_neon%': 0, | 758 'arm_neon%': 0, |
762 'arm_neon_optional%': 1, | 759 'arm_neon_optional%': 1, |
763 'native_discardable_memory%': 1, | |
764 'native_memory_pressure_signals%': 1, | 760 'native_memory_pressure_signals%': 1, |
765 'enable_basic_printing%': 1, | 761 'enable_basic_printing%': 1, |
766 'enable_print_preview%': 0, | 762 'enable_print_preview%': 0, |
767 'enable_task_manager%':0, | 763 'enable_task_manager%':0, |
768 'video_hole%': 1, | 764 'video_hole%': 1, |
769 }], | 765 }], |
770 | 766 |
771 # Android OS includes support for proprietary codecs regardless of | 767 # Android OS includes support for proprietary codecs regardless of |
772 # building Chromium or Google Chrome. We also ship Google Chrome and | 768 # building Chromium or Google Chrome. We also ship Google Chrome and |
773 # Chromecast with proprietary codecs. | 769 # Chromecast with proprietary codecs. |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 'icu_use_data_file_flag%': '<(icu_use_data_file_flag)', | 1190 'icu_use_data_file_flag%': '<(icu_use_data_file_flag)', |
1195 'gyp_managed_install%': 0, | 1191 'gyp_managed_install%': 0, |
1196 'create_standalone_apk%': 1, | 1192 'create_standalone_apk%': 1, |
1197 'enable_app_list%': '<(enable_app_list)', | 1193 'enable_app_list%': '<(enable_app_list)', |
1198 'use_default_render_theme%': '<(use_default_render_theme)', | 1194 'use_default_render_theme%': '<(use_default_render_theme)', |
1199 'enable_settings_app%': '<(enable_settings_app)', | 1195 'enable_settings_app%': '<(enable_settings_app)', |
1200 'google_api_key%': '<(google_api_key)', | 1196 'google_api_key%': '<(google_api_key)', |
1201 'google_default_client_id%': '<(google_default_client_id)', | 1197 'google_default_client_id%': '<(google_default_client_id)', |
1202 'google_default_client_secret%': '<(google_default_client_secret)', | 1198 'google_default_client_secret%': '<(google_default_client_secret)', |
1203 'enable_supervised_users%': '<(enable_supervised_users)', | 1199 'enable_supervised_users%': '<(enable_supervised_users)', |
1204 'native_discardable_memory%': '<(native_discardable_memory)', | |
1205 'native_memory_pressure_signals%': '<(native_memory_pressure_signals)', | 1200 'native_memory_pressure_signals%': '<(native_memory_pressure_signals)', |
1206 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)', | 1201 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)', |
1207 'spdy_proxy_auth_value%': '<(spdy_proxy_auth_value)', | 1202 'spdy_proxy_auth_value%': '<(spdy_proxy_auth_value)', |
1208 'enable_mdns%' : '<(enable_mdns)', | 1203 'enable_mdns%' : '<(enable_mdns)', |
1209 'enable_service_discovery%' : '<(enable_service_discovery)', | 1204 'enable_service_discovery%' : '<(enable_service_discovery)', |
1210 'enable_wifi_bootstrapping%': '<(enable_wifi_bootstrapping)', | 1205 'enable_wifi_bootstrapping%': '<(enable_wifi_bootstrapping)', |
1211 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension)
', | 1206 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension)
', |
1212 'v8_optimized_debug%': '<(v8_optimized_debug)', | 1207 'v8_optimized_debug%': '<(v8_optimized_debug)', |
1213 'proprietary_codecs%': '<(proprietary_codecs)', | 1208 'proprietary_codecs%': '<(proprietary_codecs)', |
1214 'use_goma%': '<(use_goma)', | 1209 'use_goma%': '<(use_goma)', |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1495 | 1490 |
1496 # Support ChromeOS touchpad gestures with ozone. | 1491 # Support ChromeOS touchpad gestures with ozone. |
1497 'use_evdev_gestures%': 0, | 1492 'use_evdev_gestures%': 0, |
1498 | 1493 |
1499 # Default ozone platform (if no --ozone-platform flag). | 1494 # Default ozone platform (if no --ozone-platform flag). |
1500 'ozone_platform%': "", | 1495 'ozone_platform%': "", |
1501 | 1496 |
1502 # Ozone platforms to include in the build. | 1497 # Ozone platforms to include in the build. |
1503 'ozone_platform_caca%': 0, | 1498 'ozone_platform_caca%': 0, |
1504 'ozone_platform_dri%': 0, | 1499 'ozone_platform_dri%': 0, |
| 1500 'ozone_platform_drm%': 0, |
1505 'ozone_platform_egltest%': 0, | 1501 'ozone_platform_egltest%': 0, |
1506 'ozone_platform_gbm%': 0, | 1502 'ozone_platform_gbm%': 0, |
1507 'ozone_platform_ozonex%': 0, | 1503 'ozone_platform_ozonex%': 0, |
1508 'ozone_platform_test%': 0, | 1504 'ozone_platform_test%': 0, |
1509 | 1505 |
1510 # Whether the browser is non-native (using Views Toolkit) on Mac. | 1506 # Whether the browser is non-native (using Views Toolkit) on Mac. |
1511 'mac_views_browser%': 0, | 1507 'mac_views_browser%': 0, |
1512 | 1508 |
1513 # Experiment: http://crbug.com/426914 | 1509 # Experiment: http://crbug.com/426914 |
1514 'envoy%': 0, | 1510 'envoy%': 0, |
1515 | 1511 |
1516 'conditions': [ | 1512 'conditions': [ |
1517 ['buildtype=="Official"', { | 1513 ['buildtype=="Official"', { |
1518 # Continue to embed build meta data in Official builds, basically the | 1514 # Continue to embed build meta data in Official builds, basically the |
1519 # time it was built. | 1515 # time it was built. |
1520 # TODO(maruel): This decision should be revisited because having an | 1516 # TODO(maruel): This decision should be revisited because having an |
1521 # official deterministic build has high value too but MSVC toolset can't | 1517 # official deterministic build has high value too but MSVC toolset can't |
1522 # generate anything deterministic with WPO enabled AFAIK. | 1518 # generate anything deterministic with WPO enabled AFAIK. |
1523 'dont_embed_build_metadata%': 0, | 1519 'dont_embed_build_metadata%': 0, |
1524 }], | 1520 }], |
1525 # Enable the Syzygy optimization step for the official builds. | 1521 # Enable the Syzygy optimization step for the official builds. |
1526 ['OS=="win" and buildtype=="Official" and syzyasan!=1', { | 1522 ['OS=="win" and buildtype=="Official" and syzyasan!=1 and clang!=1', { |
1527 'syzygy_optimize%': 1, | 1523 'syzygy_optimize%': 1, |
1528 }, { | 1524 }, { |
1529 'syzygy_optimize%': 0, | 1525 'syzygy_optimize%': 0, |
1530 }], | 1526 }], |
1531 # Get binutils version so we can enable debug fission if we can. | 1527 # Get binutils version so we can enable debug fission if we can. |
1532 ['os_posix==1 and OS!="mac" and OS!="ios"', { | 1528 ['os_posix==1 and OS!="mac" and OS!="ios"', { |
1533 'conditions': [ | 1529 'conditions': [ |
1534 # compiler_version doesn't work with clang | 1530 # compiler_version doesn't work with clang |
1535 # TODO(mithro): Land https://codereview.chromium.org/199793014/ so | 1531 # TODO(mithro): Land https://codereview.chromium.org/199793014/ so |
1536 # compiler_version works with clang. | 1532 # compiler_version works with clang. |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1679 # Unfortunately, it is required to use the absolute path to the SDK | 1675 # Unfortunately, it is required to use the absolute path to the SDK |
1680 # because it us passed to ant which uses a different relative path | 1676 # because it us passed to ant which uses a different relative path |
1681 # from GYP. | 1677 # from GYP. |
1682 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_
tools/sdk/', | 1678 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_
tools/sdk/', |
1683 # Similarly, gdbserver and the Android toolchain need to use the | 1679 # Similarly, gdbserver and the Android toolchain need to use the |
1684 # absolute path to the NDK because they are used at different levels | 1680 # absolute path to the NDK because they are used at different levels |
1685 # in the GYP files. | 1681 # in the GYP files. |
1686 'android_ndk_absolute_root%': '<!(cd <(DEPTH) && pwd -P)/third_party
/android_tools/ndk/', | 1682 'android_ndk_absolute_root%': '<!(cd <(DEPTH) && pwd -P)/third_party
/android_tools/ndk/', |
1687 'android_host_arch%': '<!(uname -m)', | 1683 'android_host_arch%': '<!(uname -m)', |
1688 # Android API-level of the SDK used for compilation. | 1684 # Android API-level of the SDK used for compilation. |
1689 'android_sdk_version%': '21', | 1685 'android_sdk_version%': '22', |
1690 'android_sdk_build_tools_version%': '21.0.1', | 1686 'android_sdk_build_tools_version%': '22.0.0', |
1691 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", | 1687 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", |
1692 }, | 1688 }, |
1693 # Copy conditionally-set variables out one scope. | 1689 # Copy conditionally-set variables out one scope. |
1694 'android_ndk_root%': '<(android_ndk_root)', | 1690 'android_ndk_root%': '<(android_ndk_root)', |
1695 'android_ndk_absolute_root%': '<(android_ndk_absolute_root)', | 1691 'android_ndk_absolute_root%': '<(android_ndk_absolute_root)', |
1696 'android_sdk_root%': '<(android_sdk_root)', | 1692 'android_sdk_root%': '<(android_sdk_root)', |
1697 'android_sdk_version%': '<(android_sdk_version)', | 1693 'android_sdk_version%': '<(android_sdk_version)', |
1698 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport', | 1694 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport', |
1699 'host_os%': '<(host_os)', | 1695 'host_os%': '<(host_os)', |
1700 | 1696 |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1948 ['component=="shared_library"', { | 1944 ['component=="shared_library"', { |
1949 'win_use_allocator_shim%': 0, | 1945 'win_use_allocator_shim%': 0, |
1950 },{ | 1946 },{ |
1951 # Turn on multiple dll by default on Windows when in static_library. | 1947 # Turn on multiple dll by default on Windows when in static_library. |
1952 'chrome_multiple_dll%': 1, | 1948 'chrome_multiple_dll%': 1, |
1953 }], | 1949 }], |
1954 ['asan==1 or syzyasan==1', { | 1950 ['asan==1 or syzyasan==1', { |
1955 'win_use_allocator_shim%': 0, | 1951 'win_use_allocator_shim%': 0, |
1956 }], | 1952 }], |
1957 ['syzyasan==1', { | 1953 ['syzyasan==1', { |
1958 'kasko%': 1, | 1954 # Uncomment the following line to enable Kasko for |
| 1955 # SyzyASAN-instrumented releases. |
| 1956 # 'kasko%': 1, |
1959 }], | 1957 }], |
1960 ['component=="shared_library" and "<(GENERATOR)"=="ninja"', { | 1958 ['component=="shared_library" and "<(GENERATOR)"=="ninja"', { |
1961 # Only enabled by default for ninja because it's buggy in VS. | 1959 # Only enabled by default for ninja because it's buggy in VS. |
1962 # Not enabled for component=static_library because some targets | 1960 # Not enabled for component=static_library because some targets |
1963 # are too large and the toolchain fails due to the size of the | 1961 # are too large and the toolchain fails due to the size of the |
1964 # .obj files. | 1962 # .obj files. |
1965 'incremental_chrome_dll%': 1, | 1963 'incremental_chrome_dll%': 1, |
1966 }], | 1964 }], |
1967 # Don't do incremental linking for large modules on 32-bit or when | 1965 # Don't do incremental linking for large modules on 32-bit or when |
1968 # component=static_library as the toolchain fails due to the size of | 1966 # component=static_library as the toolchain fails due to the size of |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2343 'use_brlapi%': 1, | 2341 'use_brlapi%': 1, |
2344 }], | 2342 }], |
2345 | 2343 |
2346 ['use_ozone==1 and ozone_auto_platforms==1', { | 2344 ['use_ozone==1 and ozone_auto_platforms==1', { |
2347 # Use test as the default platform. | 2345 # Use test as the default platform. |
2348 'ozone_platform%': 'test', | 2346 'ozone_platform%': 'test', |
2349 | 2347 |
2350 # Build all platforms whose deps are in install-build-deps.sh. | 2348 # Build all platforms whose deps are in install-build-deps.sh. |
2351 # Only these platforms will be compile tested by buildbots. | 2349 # Only these platforms will be compile tested by buildbots. |
2352 'ozone_platform_dri%': 1, | 2350 'ozone_platform_dri%': 1, |
| 2351 'ozone_platform_drm%': 1, |
2353 'ozone_platform_test%': 1, | 2352 'ozone_platform_test%': 1, |
2354 'ozone_platform_egltest%': 1, | 2353 'ozone_platform_egltest%': 1, |
2355 }], | 2354 }], |
2356 | 2355 |
2357 ['desktop_linux==1 and use_aura==1 and use_x11==1', { | 2356 ['desktop_linux==1 and use_aura==1 and use_x11==1', { |
2358 'use_clipboard_aurax11%': 1, | 2357 'use_clipboard_aurax11%': 1, |
2359 }], | 2358 }], |
2360 | 2359 |
2361 ['OS=="win" and use_goma==1', { | 2360 ['OS=="win" and use_goma==1', { |
2362 # goma doesn't support pch yet. | 2361 # goma doesn't support pch yet. |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2712 }], | 2711 }], |
2713 ['configuration_policy==1', { | 2712 ['configuration_policy==1', { |
2714 'defines': ['ENABLE_CONFIGURATION_POLICY'], | 2713 'defines': ['ENABLE_CONFIGURATION_POLICY'], |
2715 }], | 2714 }], |
2716 ['notifications==1', { | 2715 ['notifications==1', { |
2717 'defines': ['ENABLE_NOTIFICATIONS'], | 2716 'defines': ['ENABLE_NOTIFICATIONS'], |
2718 }], | 2717 }], |
2719 ['enable_hidpi==1', { | 2718 ['enable_hidpi==1', { |
2720 'defines': ['ENABLE_HIDPI=1'], | 2719 'defines': ['ENABLE_HIDPI=1'], |
2721 }], | 2720 }], |
2722 ['native_discardable_memory==1', { | |
2723 'defines': ['DISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY'], | |
2724 }], | |
2725 ['native_memory_pressure_signals==1', { | 2721 ['native_memory_pressure_signals==1', { |
2726 'defines': ['SYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE'], | 2722 'defines': ['SYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE'], |
2727 }], | 2723 }], |
2728 ['use_udev==1', { | 2724 ['use_udev==1', { |
2729 'defines': ['USE_UDEV'], | 2725 'defines': ['USE_UDEV'], |
2730 }], | 2726 }], |
2731 ['fastbuild!=0', { | 2727 ['fastbuild!=0', { |
2732 'xcode_settings': { | 2728 'xcode_settings': { |
2733 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO', | 2729 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO', |
2734 }, | 2730 }, |
(...skipping 3298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6033 # settings in target dicts. SYMROOT is a special case, because many other | 6029 # settings in target dicts. SYMROOT is a special case, because many other |
6034 # Xcode variables depend on it, including variables such as | 6030 # Xcode variables depend on it, including variables such as |
6035 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6031 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
6036 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6032 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
6037 # files to appear (when present) in the UI as actual files and not red | 6033 # files to appear (when present) in the UI as actual files and not red |
6038 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6034 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
6039 # and therefore SYMROOT, needs to be set at the project level. | 6035 # and therefore SYMROOT, needs to be set at the project level. |
6040 'SYMROOT': '<(DEPTH)/xcodebuild', | 6036 'SYMROOT': '<(DEPTH)/xcodebuild', |
6041 }, | 6037 }, |
6042 } | 6038 } |
OLD | NEW |