Chromium Code Reviews| 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. |
| 11 'variables': { | 11 'variables': { |
| 12 # Putting a variables dict inside another variables dict looks kind of | 12 # Putting a variables dict inside another variables dict looks kind of |
| 13 # weird. This is done so that 'host_arch', 'chromeos', etc are defined as | 13 # weird. This is done so that 'host_arch', 'chromeos', etc are defined as |
| 14 # variables within the outer variables dict here. This is necessary | 14 # variables within the outer variables dict here. This is necessary |
| 15 # to get these variables defined for the conditions within this variables | 15 # to get these variables defined for the conditions within this variables |
| 16 # dict that operate on these variables. | 16 # dict that operate on these variables. |
| 17 'variables': { | 17 'variables': { |
| 18 'variables': { | 18 'variables': { |
| 19 'variables': { | 19 'variables': { |
| 20 'variables': { | 20 'variables': { |
| 21 # Whether we're building a ChromeOS build. | 21 # Whether we're building a ChromeOS build. |
| 22 'chromeos%': 0, | 22 'chromeos%': 0, |
| 23 | 23 |
| 24 # Whether we're building the cast (chromecast) shell | |
| 25 'chromecast%': 0, | |
| 26 | |
| 24 # Whether or not we are using the Aura windowing framework. | 27 # Whether or not we are using the Aura windowing framework. |
| 25 'use_aura%': 0, | 28 'use_aura%': 0, |
| 26 | 29 |
| 27 # Whether or not we are building the Ash shell. | 30 # Whether or not we are building the Ash shell. |
| 28 'use_ash%': 0, | 31 'use_ash%': 0, |
| 29 | 32 |
| 30 # Whether or not we are using CRAS, the ChromeOS Audio Server. | 33 # Whether or not we are using CRAS, the ChromeOS Audio Server. |
| 31 'use_cras%': 0, | 34 'use_cras%': 0, |
| 32 | 35 |
| 33 # Use a raw surface abstraction. | 36 # Use a raw surface abstraction. |
| 34 'use_ozone%': 0, | 37 'use_ozone%': 0, |
| 35 | 38 |
| 36 # Configure the build for small devices. See crbug.com/318413 | 39 # Configure the build for small devices. See crbug.com/318413 |
| 37 'embedded%': 0, | 40 'embedded%': 0, |
| 38 | 41 |
| 39 'conditions': [ | 42 'conditions': [ |
| 40 # Compute the architecture that we're building on. | 43 # Compute the architecture that we're building on. |
| 41 ['OS=="win" or OS=="mac" or OS=="ios"', { | 44 ['OS=="win" or OS=="mac" or OS=="ios"', { |
| 42 'host_arch%': 'ia32', | 45 'host_arch%': 'ia32', |
| 43 }, { | 46 }, { |
| 44 'host_arch%': '<!(python <(DEPTH)/build/linux/detect_host_arch.p y)', | 47 'host_arch%': '<!(python <(DEPTH)/build/linux/detect_host_arch.p y)', |
| 45 }], | 48 }], |
| 46 ], | 49 ], |
| 47 }, | 50 }, |
| 48 # Copy conditionally-set variables out one scope. | 51 # Copy conditionally-set variables out one scope. |
| 49 'chromeos%': '<(chromeos)', | 52 'chromeos%': '<(chromeos)', |
| 53 'chromecast%': '<(chromecast)', | |
| 50 'use_aura%': '<(use_aura)', | 54 'use_aura%': '<(use_aura)', |
| 51 'use_ash%': '<(use_ash)', | 55 'use_ash%': '<(use_ash)', |
| 52 'use_cras%': '<(use_cras)', | 56 'use_cras%': '<(use_cras)', |
| 53 'use_ozone%': '<(use_ozone)', | 57 'use_ozone%': '<(use_ozone)', |
| 54 'embedded%': '<(embedded)', | 58 'embedded%': '<(embedded)', |
| 55 'host_arch%': '<(host_arch)', | 59 'host_arch%': '<(host_arch)', |
| 56 | 60 |
| 57 # Whether we are using Views Toolkit | 61 # Whether we are using Views Toolkit |
| 58 'toolkit_views%': 0, | 62 'toolkit_views%': 0, |
| 59 | 63 |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 90 ['chromeos==1 or OS=="win"', { | 94 ['chromeos==1 or OS=="win"', { |
| 91 'use_ash%': 1, | 95 'use_ash%': 1, |
| 92 'use_aura%': 1, | 96 'use_aura%': 1, |
| 93 }], | 97 }], |
| 94 | 98 |
| 95 # Ozone uses Aura. | 99 # Ozone uses Aura. |
| 96 ['use_ozone==1', { | 100 ['use_ozone==1', { |
| 97 'use_aura%': 1, | 101 'use_aura%': 1, |
| 98 }], | 102 }], |
| 99 | 103 |
| 100 # ToT Linux should be aura. | 104 # ToT Linux should be aura (except for chromecast builds). |
| 101 # | 105 # |
| 102 # TODO(erg): Merge this into the previous block once compiling with | 106 # TODO(erg): Merge this into the previous block once compiling with |
| 103 # aura safely implies including ash capabilities. | 107 # aura safely implies including ash capabilities. |
| 104 ['OS=="linux"', { | 108 ['OS=="linux" and chromecast==0', { |
| 105 'use_aura%': 1, | 109 'use_aura%': 1, |
| 106 }], | 110 }], |
| 107 | 111 |
| 108 # Whether we're a traditional desktop unix. | 112 # Whether we're a traditional desktop unix. |
| 109 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") a nd chromeos==0', { | 113 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") a nd chromeos==0', { |
| 110 'desktop_linux%': 1, | 114 'desktop_linux%': 1, |
| 111 }, { | 115 }, { |
| 112 'desktop_linux%': 0, | 116 'desktop_linux%': 0, |
| 113 }], | 117 }], |
| 114 | 118 |
| 115 # Embedded implies ozone. | 119 # Embedded implies ozone. |
| 116 ['embedded==1', { | 120 ['embedded==1', { |
| 117 'use_ozone%': 1, | 121 'use_ozone%': 1, |
| 118 }], | 122 }], |
| 119 | 123 |
| 120 ['embedded==1', { | 124 ['embedded==1 or chromecast==1', { |
| 121 'use_system_fontconfig%': 0, | 125 'use_system_fontconfig%': 0, |
| 122 }, { | 126 }, { |
| 123 'use_system_fontconfig%': 1, | 127 'use_system_fontconfig%': 1, |
| 124 }], | 128 }], |
| 125 | 129 |
| 126 ['OS=="android"', { | 130 ['OS=="android"', { |
| 127 'target_arch%': 'arm', | 131 'target_arch%': 'arm', |
| 128 }, { | 132 }, { |
| 129 # Default architecture we're building for is the architecture we'r e | 133 # Default architecture we're building for is the architecture we'r e |
| 130 # building on, and possibly sub-architecture (for iOS builds). | 134 # building on, and possibly sub-architecture (for iOS builds). |
| 131 'target_arch%': '<(host_arch)', | 135 'target_arch%': '<(host_arch)', |
| 132 }], | 136 }], |
| 133 ], | 137 ], |
| 134 }, | 138 }, |
| 135 # Copy conditionally-set variables out one scope. | 139 # Copy conditionally-set variables out one scope. |
| 136 'chromeos%': '<(chromeos)', | 140 'chromeos%': '<(chromeos)', |
| 141 'chromecast%': '<(chromecast)', | |
| 137 'desktop_linux%': '<(desktop_linux)', | 142 'desktop_linux%': '<(desktop_linux)', |
| 138 'use_aura%': '<(use_aura)', | 143 'use_aura%': '<(use_aura)', |
| 139 'use_ash%': '<(use_ash)', | 144 'use_ash%': '<(use_ash)', |
| 140 'use_cras%': '<(use_cras)', | 145 'use_cras%': '<(use_cras)', |
| 141 'use_ozone%': '<(use_ozone)', | 146 'use_ozone%': '<(use_ozone)', |
| 142 'embedded%': '<(embedded)', | 147 'embedded%': '<(embedded)', |
| 143 'use_openssl%': '<(use_openssl)', | 148 'use_openssl%': '<(use_openssl)', |
| 144 'use_openssl_certs%': '<(use_openssl_certs)', | 149 'use_openssl_certs%': '<(use_openssl_certs)', |
| 145 'use_system_fontconfig%': '<(use_system_fontconfig)', | 150 'use_system_fontconfig%': '<(use_system_fontconfig)', |
| 146 'enable_viewport%': '<(enable_viewport)', | 151 'enable_viewport%': '<(enable_viewport)', |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 174 'sysroot%': '', | 179 'sysroot%': '', |
| 175 'chroot_cmd%': '', | 180 'chroot_cmd%': '', |
| 176 | 181 |
| 177 'conditions': [ | 182 'conditions': [ |
| 178 # Ash needs Aura. | 183 # Ash needs Aura. |
| 179 ['use_aura==0', { | 184 ['use_aura==0', { |
| 180 'use_ash%': 0, | 185 'use_ash%': 0, |
| 181 }], | 186 }], |
| 182 | 187 |
| 183 # Set default value of toolkit_views based on OS. | 188 # Set default value of toolkit_views based on OS. |
| 184 ['OS=="win" or chromeos==1 or use_aura==1', { | 189 ['OS=="win" or chromeos==1 or use_aura==1 or chromecast==1', { |
| 185 'toolkit_views%': 1, | 190 'toolkit_views%': 1, |
| 186 }, { | 191 }, { |
| 187 'toolkit_views%': 0, | 192 'toolkit_views%': 0, |
| 188 }], | 193 }], |
| 189 | 194 |
| 190 # Embedded builds use aura without ash or views. | 195 # Embedded builds use aura without ash or views. |
| 191 ['embedded==1', { | 196 ['embedded==1', { |
| 192 'use_aura%': 1, | 197 'use_aura%': 1, |
| 193 'use_ash%': 0, | 198 'use_ash%': 0, |
| 194 'toolkit_views%': 0, | 199 'toolkit_views%': 0, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 235 # TODO(sdefresne): set the "target_arch" to "arm" once compilation | 240 # TODO(sdefresne): set the "target_arch" to "arm" once compilation |
| 236 # of skia has been fixed for simulator. http://crbug.com/342377 | 241 # of skia has been fixed for simulator. http://crbug.com/342377 |
| 237 ['OS=="ios"', { | 242 ['OS=="ios"', { |
| 238 'target_subarch%': 'arm32', | 243 'target_subarch%': 'arm32', |
| 239 }], | 244 }], |
| 240 ], | 245 ], |
| 241 }, | 246 }, |
| 242 | 247 |
| 243 # Copy conditionally-set variables out one scope. | 248 # Copy conditionally-set variables out one scope. |
| 244 'chromeos%': '<(chromeos)', | 249 'chromeos%': '<(chromeos)', |
| 250 'chromecast%': '<(chromecast)', | |
| 245 'host_arch%': '<(host_arch)', | 251 'host_arch%': '<(host_arch)', |
| 246 'target_arch%': '<(target_arch)', | 252 'target_arch%': '<(target_arch)', |
| 247 'target_subarch%': '<(target_subarch)', | 253 'target_subarch%': '<(target_subarch)', |
| 248 'toolkit_views%': '<(toolkit_views)', | 254 'toolkit_views%': '<(toolkit_views)', |
| 249 'desktop_linux%': '<(desktop_linux)', | 255 'desktop_linux%': '<(desktop_linux)', |
| 250 'use_aura%': '<(use_aura)', | 256 'use_aura%': '<(use_aura)', |
| 251 'use_ash%': '<(use_ash)', | 257 'use_ash%': '<(use_ash)', |
| 252 'use_cras%': '<(use_cras)', | 258 'use_cras%': '<(use_cras)', |
| 253 'use_ozone%': '<(use_ozone)', | 259 'use_ozone%': '<(use_ozone)', |
| 254 'use_ozone_evdev%': '<(use_ozone_evdev)', | 260 'use_ozone_evdev%': '<(use_ozone_evdev)', |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 566 | 572 |
| 567 # When OpenSSL is used for SSL and crypto on Unix-like systems, use | 573 # When OpenSSL is used for SSL and crypto on Unix-like systems, use |
| 568 # OpenSSL's certificate definition. | 574 # OpenSSL's certificate definition. |
| 569 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u se_openssl==1', { | 575 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u se_openssl==1', { |
| 570 'use_openssl_certs%': 1, | 576 'use_openssl_certs%': 1, |
| 571 }, { | 577 }, { |
| 572 'use_openssl_certs%': 0, | 578 'use_openssl_certs%': 0, |
| 573 }], | 579 }], |
| 574 | 580 |
| 575 # libudev usage. This currently only affects the content layer. | 581 # libudev usage. This currently only affects the content layer. |
| 576 ['OS=="linux" and embedded==0', { | 582 ['OS=="linux" and embedded==0 and chromecast==0', { |
| 577 'use_udev%': 1, | 583 'use_udev%': 1, |
| 578 }, { | 584 }, { |
| 579 'use_udev%': 0, | 585 'use_udev%': 0, |
| 580 }], | 586 }], |
| 581 | 587 |
| 582 # Flags to use X11 on non-Mac POSIX platforms. | 588 # Flags to use X11 on non-Mac POSIX platforms. |
| 583 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1', { | 589 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1 o r chromecast==1', { |
| 584 'use_x11%': 0, | 590 'use_x11%': 0, |
| 585 }, { | 591 }, { |
| 586 'use_x11%': 1, | 592 'use_x11%': 1, |
| 587 }], | 593 }], |
| 588 | 594 |
| 589 # Flags to use glib. | 595 # Flags to use glib. |
| 590 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or embedded==1', { | 596 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or embedded==1 or chromecast==1', { |
| 591 'use_glib%': 0, | 597 'use_glib%': 0, |
| 592 }, { | 598 }, { |
| 593 'use_glib%': 1, | 599 'use_glib%': 1, |
| 594 }], | 600 }], |
| 595 | 601 |
| 596 # Flags to use pango and cairo. | 602 # Flags to use pango and cairo. |
| 597 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or embedded==1', { | 603 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or embedded==1 or chromecast==1', { |
| 598 'use_pango%': 0, | 604 'use_pango%': 0, |
| 599 'use_cairo%': 0, | 605 'use_cairo%': 0, |
| 600 }, { | 606 }, { |
| 601 'use_pango%': 1, | 607 'use_pango%': 1, |
| 602 'use_cairo%': 1, | 608 'use_cairo%': 1, |
| 603 }], | 609 }], |
| 604 | 610 |
| 605 # DBus usage. | 611 # DBus usage. |
| 606 ['OS=="linux" and embedded==0', { | 612 ['OS=="linux" and embedded==0 and chromecast==0', { |
| 607 'use_dbus%': 1, | 613 'use_dbus%': 1, |
| 608 }, { | 614 }, { |
| 609 'use_dbus%': 0, | 615 'use_dbus%': 0, |
| 610 }], | 616 }], |
| 611 | 617 |
| 612 # We always use skia text rendering in Aura on Windows, since GDI | 618 # We always use skia text rendering in Aura on Windows, since GDI |
| 613 # doesn't agree with our BackingStore. | 619 # doesn't agree with our BackingStore. |
| 614 # TODO(beng): remove once skia text rendering is on by default. | 620 # TODO(beng): remove once skia text rendering is on by default. |
| 615 ['use_aura==1 and OS=="win"', { | 621 ['use_aura==1 and OS=="win"', { |
| 616 'enable_skia_text%': 1, | 622 'enable_skia_text%': 1, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 655 'native_discardable_memory%': 1, | 661 'native_discardable_memory%': 1, |
| 656 'native_memory_pressure_signals%': 1, | 662 'native_memory_pressure_signals%': 1, |
| 657 'enable_printing%': 2, | 663 'enable_printing%': 2, |
| 658 'enable_task_manager%':0, | 664 'enable_task_manager%':0, |
| 659 # Set to 1 once we have a notification system for Android. | 665 # Set to 1 once we have a notification system for Android. |
| 660 # http://crbug.com/115320 | 666 # http://crbug.com/115320 |
| 661 'notifications%': 0, | 667 'notifications%': 0, |
| 662 }], | 668 }], |
| 663 | 669 |
| 664 # Android OS includes support for proprietary codecs regardless of | 670 # Android OS includes support for proprietary codecs regardless of |
| 665 # building Chromium or Google Chrome. We also ship Google Chrome with | 671 # building Chromium or Google Chrome. We also ship Google Chrome and |
| 666 # proprietary codecs. | 672 # Chromecast with proprietary codecs. |
| 667 ['OS=="android" or branding=="Chrome"', { | 673 ['OS=="android" or branding=="Chrome" or chromecast==1', { |
| 668 'proprietary_codecs%': 1, | 674 'proprietary_codecs%': 1, |
| 669 }, { | 675 }, { |
| 670 'proprietary_codecs%': 0, | 676 'proprietary_codecs%': 0, |
| 671 }], | 677 }], |
| 672 | 678 |
| 673 ['OS=="mac" or OS=="ios"', { | 679 ['OS=="mac" or OS=="ios"', { |
| 674 'native_discardable_memory%': 1, | 680 'native_discardable_memory%': 1, |
| 675 'native_memory_pressure_signals%': 1, | 681 'native_memory_pressure_signals%': 1, |
| 676 }], | 682 }], |
| 677 | 683 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 713 ['OS=="win" and buildtype!="Official"', { | 719 ['OS=="win" and buildtype!="Official"', { |
| 714 'chromium_win_pch%': 1 | 720 'chromium_win_pch%': 1 |
| 715 }], | 721 }], |
| 716 | 722 |
| 717 ['chromeos==1 or OS=="android" or OS=="ios"', { | 723 ['chromeos==1 or OS=="android" or OS=="ios"', { |
| 718 'enable_plugin_installation%': 0, | 724 'enable_plugin_installation%': 0, |
| 719 }, { | 725 }, { |
| 720 'enable_plugin_installation%': 1, | 726 'enable_plugin_installation%': 1, |
| 721 }], | 727 }], |
| 722 | 728 |
| 723 ['OS=="android" or OS=="ios" or embedded==1', { | 729 ['OS=="android" or OS=="ios" or embedded==1 or chromecast==1', { |
| 724 'enable_plugins%': 0, | 730 'enable_plugins%': 0, |
| 725 }, { | 731 }, { |
| 726 'enable_plugins%': 1, | 732 'enable_plugins%': 1, |
| 727 }], | 733 }], |
| 728 | 734 |
| 729 # linux_use_bundled_gold: whether to use the gold linker binary checked | 735 # linux_use_bundled_gold: whether to use the gold linker binary checked |
| 730 # into third_party/binutils. Force this off via GYP_DEFINES when you | 736 # into third_party/binutils. Force this off via GYP_DEFINES when you |
| 731 # are using a custom toolchain and need to control -B in ldflags. | 737 # are using a custom toolchain and need to control -B in ldflags. |
| 732 # Gold is not used for 32-bit linux builds as it runs out of address | 738 # Gold is not used for 32-bit linux builds as it runs out of address |
| 733 # space. | 739 # space. |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 851 # Turns on compiler optimizations in V8 in Debug build, except | 857 # Turns on compiler optimizations in V8 in Debug build, except |
| 852 # on android_clang, where we're hitting a weird linker error. | 858 # on android_clang, where we're hitting a weird linker error. |
| 853 # TODO(dpranke): http://crbug.com/266155 . | 859 # TODO(dpranke): http://crbug.com/266155 . |
| 854 ['OS=="android"', { | 860 ['OS=="android"', { |
| 855 'v8_optimized_debug%': 1, | 861 'v8_optimized_debug%': 1, |
| 856 }, { | 862 }, { |
| 857 'v8_optimized_debug%': 2, | 863 'v8_optimized_debug%': 2, |
| 858 }], | 864 }], |
| 859 | 865 |
| 860 # Disable various features by default on embedded. | 866 # Disable various features by default on embedded. |
| 861 ['embedded==1', { | 867 ['embedded==1 or chromecast==1', { |
| 862 'remoting%': 0, | 868 'remoting%': 0, |
| 863 'enable_printing%': 0, | 869 'enable_printing%': 0, |
| 864 }], | 870 }], |
| 865 | 871 |
| 866 # By default, use ICU data file (icudtl.dat) on all platforms | 872 # By default, use ICU data file (icudtl.dat) on all platforms |
| 867 # except when building Android WebView. | 873 # except when building Android WebView or Chromecast. |
| 868 # TODO(jshin): Handle 'use_system_icu' on Linux (Chromium). | 874 # TODO(jshin): Handle 'use_system_icu' on Linux (Chromium). |
| 869 ['android_webview_build==0', { | 875 ['android_webview_build==0 and chromecast==0', { |
| 870 'icu_use_data_file_flag%' : 1, | 876 'icu_use_data_file_flag%' : 1, |
| 871 }, { | 877 }, { |
| 872 'icu_use_data_file_flag%' : 0, | 878 'icu_use_data_file_flag%' : 0, |
| 873 }], | 879 }], |
| 874 ], | 880 ], |
| 875 | 881 |
| 876 # Set this to 1 to enable use of concatenated impulse responses | 882 # Set this to 1 to enable use of concatenated impulse responses |
| 877 # for the HRTF panner in WebAudio. | 883 # for the HRTF panner in WebAudio. |
| 878 'use_concatenated_impulse_responses': 1, | 884 'use_concatenated_impulse_responses': 1, |
| 879 | 885 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 946 'use_cairo%': '<(use_cairo)', | 952 'use_cairo%': '<(use_cairo)', |
| 947 'use_ozone%': '<(use_ozone)', | 953 'use_ozone%': '<(use_ozone)', |
| 948 'use_ozone_evdev%': '<(use_ozone_evdev)', | 954 'use_ozone_evdev%': '<(use_ozone_evdev)', |
| 949 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', | 955 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', |
| 950 'use_system_fontconfig%': '<(use_system_fontconfig)', | 956 'use_system_fontconfig%': '<(use_system_fontconfig)', |
| 951 'desktop_linux%': '<(desktop_linux)', | 957 'desktop_linux%': '<(desktop_linux)', |
| 952 'use_x11%': '<(use_x11)', | 958 'use_x11%': '<(use_x11)', |
| 953 'use_gnome_keyring%': '<(use_gnome_keyring)', | 959 'use_gnome_keyring%': '<(use_gnome_keyring)', |
| 954 'linux_fpic%': '<(linux_fpic)', | 960 'linux_fpic%': '<(linux_fpic)', |
| 955 'chromeos%': '<(chromeos)', | 961 'chromeos%': '<(chromeos)', |
| 962 'chromecast%': '<(chromecast)', | |
| 956 'enable_viewport%': '<(enable_viewport)', | 963 'enable_viewport%': '<(enable_viewport)', |
| 957 'enable_hidpi%': '<(enable_hidpi)', | 964 'enable_hidpi%': '<(enable_hidpi)', |
| 958 'use_xi2_mt%':'<(use_xi2_mt)', | 965 'use_xi2_mt%':'<(use_xi2_mt)', |
| 959 'image_loader_extension%': '<(image_loader_extension)', | 966 'image_loader_extension%': '<(image_loader_extension)', |
| 960 'fastbuild%': '<(fastbuild)', | 967 'fastbuild%': '<(fastbuild)', |
| 961 'win_z7%': '<(win_z7)', | 968 'win_z7%': '<(win_z7)', |
| 962 'dcheck_always_on%': '<(dcheck_always_on)', | 969 'dcheck_always_on%': '<(dcheck_always_on)', |
| 963 'tracing_like_official_build%': '<(tracing_like_official_build)', | 970 'tracing_like_official_build%': '<(tracing_like_official_build)', |
| 964 'arm_version%': '<(arm_version)', | 971 'arm_version%': '<(arm_version)', |
| 965 'arm_neon%': '<(arm_neon)', | 972 'arm_neon%': '<(arm_neon)', |
| (...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1625 # where possible to reduce ROM size. | 1632 # where possible to reduce ROM size. |
| 1626 # TODO(steveblock): Investigate using the system version of sqlite. | 1633 # TODO(steveblock): Investigate using the system version of sqlite. |
| 1627 'use_system_sqlite%': 0, # '<(android_webview_build)', | 1634 'use_system_sqlite%': 0, # '<(android_webview_build)', |
| 1628 'use_system_expat%': '<(android_webview_build)', | 1635 'use_system_expat%': '<(android_webview_build)', |
| 1629 'use_system_icu%': '<(android_webview_build)', | 1636 'use_system_icu%': '<(android_webview_build)', |
| 1630 'use_system_stlport%': '<(android_webview_build)', | 1637 'use_system_stlport%': '<(android_webview_build)', |
| 1631 | 1638 |
| 1632 # Copy it out one scope. | 1639 # Copy it out one scope. |
| 1633 'android_webview_build%': '<(android_webview_build)', | 1640 'android_webview_build%': '<(android_webview_build)', |
| 1634 }], # OS=="android" | 1641 }], # OS=="android" |
| 1642 ['chromecast==1', { | |
| 1643 'safe_browsing%': 0, | |
| 1644 'ffmpeg_branding%': 'Chrome', | |
| 1645 'conditions': [ | |
| 1646 ['target_arch=="arm"', { | |
| 1647 'arm_arch%': '', | |
| 1648 'arm_tune%': 'cortex-a9', | |
| 1649 'arm_thumb%': 1, | |
| 1650 'cast_uses_directfb%': 0, | |
| 1651 'enable_mpeg2ts_stream_parser%': 1, | |
| 1652 'video_hole%': 1, | |
| 1653 }, { | |
| 1654 'cast_uses_directfb%': 1, | |
| 1655 }], | |
| 1656 ], | |
| 1657 }], | |
| 1635 ['android_webview_build==1', { | 1658 ['android_webview_build==1', { |
| 1636 # When building the WebView in the Android tree, jarjar will remap all | 1659 # When building the WebView in the Android tree, jarjar will remap all |
| 1637 # the class names, so the JNI generator needs to know this. | 1660 # the class names, so the JNI generator needs to know this. |
| 1638 'jni_generator_jarjar_file': '../android_webview/build/jarjar-rules.txt' , | 1661 'jni_generator_jarjar_file': '../android_webview/build/jarjar-rules.txt' , |
| 1639 }], | 1662 }], |
| 1640 ['OS=="mac"', { | 1663 ['OS=="mac"', { |
| 1641 'conditions': [ | 1664 'conditions': [ |
| 1642 # All Chrome builds have breakpad symbols, but only process the | 1665 # All Chrome builds have breakpad symbols, but only process the |
| 1643 # symbols from official builds. | 1666 # symbols from official builds. |
| 1644 ['(branding=="Chrome" and buildtype=="Official")', { | 1667 ['(branding=="Chrome" and buildtype=="Official")', { |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1752 'secure_atl%': 1, | 1775 'secure_atl%': 1, |
| 1753 }], | 1776 }], |
| 1754 ], | 1777 ], |
| 1755 'nacl_win64_defines': [ | 1778 'nacl_win64_defines': [ |
| 1756 # This flag is used to minimize dependencies when building | 1779 # This flag is used to minimize dependencies when building |
| 1757 # Native Client loader for 64-bit Windows. | 1780 # Native Client loader for 64-bit Windows. |
| 1758 'NACL_WIN64', | 1781 'NACL_WIN64', |
| 1759 ], | 1782 ], |
| 1760 }], | 1783 }], |
| 1761 | 1784 |
| 1762 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios"', { | 1785 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios" and chromeca st==0', { |
| 1763 'use_cups%': 1, | 1786 'use_cups%': 1, |
| 1764 }, { | 1787 }, { |
| 1765 'use_cups%': 0, | 1788 'use_cups%': 0, |
| 1766 }], | 1789 }], |
| 1767 | 1790 |
| 1768 ['enable_plugins==1 and (OS=="linux" or OS=="mac" or OS=="win")', { | 1791 ['enable_plugins==1 and (OS=="linux" or OS=="mac" or OS=="win")', { |
| 1769 'enable_pepper_cdms%': 1, | 1792 'enable_pepper_cdms%': 1, |
| 1770 }, { | 1793 }, { |
| 1771 'enable_pepper_cdms%': 0, | 1794 'enable_pepper_cdms%': 0, |
| 1772 }], | 1795 }], |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2138 # variable placed at the root variables scope of .gyp files, because | 2161 # variable placed at the root variables scope of .gyp files, because |
| 2139 # those variables are not set at target scope. As a workaround, | 2162 # those variables are not set at target scope. As a workaround, |
| 2140 # if chromium_code is not set at target scope, define it in target scope | 2163 # if chromium_code is not set at target scope, define it in target scope |
| 2141 # to contain whatever value it has during early variable expansion. | 2164 # to contain whatever value it has during early variable expansion. |
| 2142 # That's enough to make it available during target conditional | 2165 # That's enough to make it available during target conditional |
| 2143 # processing. | 2166 # processing. |
| 2144 'chromium_code%': '<(chromium_code)', | 2167 'chromium_code%': '<(chromium_code)', |
| 2145 | 2168 |
| 2146 'component%': '<(component)', | 2169 'component%': '<(component)', |
| 2147 | 2170 |
| 2171 'chromecast%': '<(chromecast)', | |
| 2172 | |
| 2148 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx | 2173 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx |
| 2149 'win_release_Optimization%': '2', # 2 = /Os | 2174 'win_release_Optimization%': '2', # 2 = /Os |
| 2150 'win_debug_Optimization%': '0', # 0 = /Od | 2175 'win_debug_Optimization%': '0', # 0 = /Od |
| 2151 | 2176 |
| 2152 # See http://msdn.microsoft.com/en-us/library/2kxx5t2c(v=vs.80).aspx | 2177 # See http://msdn.microsoft.com/en-us/library/2kxx5t2c(v=vs.80).aspx |
| 2153 # Tri-state: blank is default, 1 on, 0 off | 2178 # Tri-state: blank is default, 1 on, 0 off |
| 2154 'win_release_OmitFramePointers%': '0', | 2179 'win_release_OmitFramePointers%': '0', |
| 2155 # Tri-state: blank is default, 1 on, 0 off | 2180 # Tri-state: blank is default, 1 on, 0 off |
| 2156 'win_debug_OmitFramePointers%': '', | 2181 'win_debug_OmitFramePointers%': '', |
| 2157 | 2182 |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2495 'VCLinkerTool': { | 2520 'VCLinkerTool': { |
| 2496 'GenerateDebugInformation': 'true', | 2521 'GenerateDebugInformation': 'true', |
| 2497 }, | 2522 }, |
| 2498 'VCCLCompilerTool': { | 2523 'VCCLCompilerTool': { |
| 2499 'DebugInformationFormat': '1', | 2524 'DebugInformationFormat': '1', |
| 2500 } | 2525 } |
| 2501 } | 2526 } |
| 2502 }], | 2527 }], |
| 2503 ], # win_z7!=0 | 2528 ], # win_z7!=0 |
| 2504 }], # OS==win | 2529 }], # OS==win |
| 2530 ['chromecast==1', { | |
| 2531 'defines': [ | |
| 2532 'LOG_DISABLED=0', | |
| 2533 ], | |
| 2534 'conditions': [ | |
| 2535 ['target_arch=="arm"', { | |
| 2536 'defines': [ | |
| 2537 # Work around an error when compiling v8/src/platform-linux.cc | |
| 2538 # with gcc-4.5. | |
| 2539 '__SOFTFP', | |
| 2540 ], | |
| 2541 }], | |
| 2542 ], | |
| 2543 }], | |
| 2505 ['enable_task_manager==1', { | 2544 ['enable_task_manager==1', { |
| 2506 'defines': [ | 2545 'defines': [ |
| 2507 'ENABLE_TASK_MANAGER=1', | 2546 'ENABLE_TASK_MANAGER=1', |
| 2508 ], | 2547 ], |
| 2509 }], | 2548 }], |
| 2510 ['enable_extensions==1', { | 2549 ['enable_extensions==1', { |
| 2511 'defines': [ | 2550 'defines': [ |
| 2512 'ENABLE_EXTENSIONS=1', | 2551 'ENABLE_EXTENSIONS=1', |
| 2513 ], | 2552 ], |
| 2514 }], | 2553 }], |
| (...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3477 '-B<(PRODUCT_DIR)/../../build/android/arm-linux-androi deabi-gold', | 3516 '-B<(PRODUCT_DIR)/../../build/android/arm-linux-androi deabi-gold', |
| 3478 ], | 3517 ], |
| 3479 }], | 3518 }], |
| 3480 ['asan==1', { | 3519 ['asan==1', { |
| 3481 'cflags': [ | 3520 'cflags': [ |
| 3482 '-marm', # Required for frame pointer based stack trac es. | 3521 '-marm', # Required for frame pointer based stack trac es. |
| 3483 ], | 3522 ], |
| 3484 }], | 3523 }], |
| 3485 ], | 3524 ], |
| 3486 }], | 3525 }], |
| 3526 ['chromecast==1', { | |
| 3527 'cflags': [ | |
| 3528 # We set arm_arch to "" so that -march compiler option | |
| 3529 # is not set. Otherwise a gcc bug that would complain | |
| 3530 # about it conflicting with '-mcpu=cortex-a9'. The flag | |
| 3531 # '-march=armv7-a' is actually redundant anyway because | |
| 3532 # it is enabled by default when we built the toolchain. | |
| 3533 # And using '-mcpu=cortex-a9' should be sufficient. | |
| 3534 '-mcpu=cortex-a9', | |
| 3535 '-funwind-tables', | |
| 3536 # Breakpad requires symbols with debugging information | |
| 3537 '-g', | |
| 3538 ], | |
| 3539 'ldflags': [ | |
| 3540 # We want to statically link libstdc++/libgcc_s. | |
| 3541 '-static-libstdc++', | |
| 3542 '-static-libgcc', | |
| 3543 ], | |
| 3544 'cflags!': [ | |
| 3545 # Some components in Chormium (e.g. v8) define their own | |
|
jam
2014/04/24 15:38:16
nit: spelling
| |
| 3546 # cflags that are not desirable. Remove them explicitly | |
|
jam
2014/04/24 15:38:16
hmm, it seems that the proper solution here is to
| |
| 3547 # here. | |
| 3548 '-march=armv7-a', | |
| 3549 '-mtune=cortex-a8', | |
| 3550 ], | |
| 3551 }], | |
| 3487 ], | 3552 ], |
| 3488 }], | 3553 }], |
| 3489 ], | 3554 ], |
| 3490 }], | 3555 }], |
| 3491 ['target_arch=="arm64"', { | 3556 ['target_arch=="arm64"', { |
| 3492 'target_conditions': [ | 3557 'target_conditions': [ |
| 3493 ['_toolset=="target"', { | 3558 ['_toolset=="target"', { |
| 3494 'conditions': [ | 3559 'conditions': [ |
| 3495 ['OS=="android"', { | 3560 ['OS=="android"', { |
| 3496 'cflags!': [ | 3561 'cflags!': [ |
| (...skipping 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5203 # settings in target dicts. SYMROOT is a special case, because many other | 5268 # settings in target dicts. SYMROOT is a special case, because many other |
| 5204 # Xcode variables depend on it, including variables such as | 5269 # Xcode variables depend on it, including variables such as |
| 5205 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5270 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 5206 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5271 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 5207 # files to appear (when present) in the UI as actual files and not red | 5272 # files to appear (when present) in the UI as actual files and not red |
| 5208 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5273 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 5209 # and therefore SYMROOT, needs to be set at the project level. | 5274 # and therefore SYMROOT, needs to be set at the project level. |
| 5210 'SYMROOT': '<(DEPTH)/xcodebuild', | 5275 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 5211 }, | 5276 }, |
| 5212 } | 5277 } |
| OLD | NEW |