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. |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 100 | 100 |
| 101 # Default architecture we're building for is the architecture we're | 101 # Default architecture we're building for is the architecture we're |
| 102 # building on. | 102 # building on. |
| 103 'target_arch%': '<(host_arch)', | 103 'target_arch%': '<(host_arch)', |
| 104 | 104 |
| 105 # Sets whether we're building with the Android SDK/NDK (and hence with | 105 # Sets whether we're building with the Android SDK/NDK (and hence with |
| 106 # Ant, value 0), or as part of the Android system (and hence with the | 106 # Ant, value 0), or as part of the Android system (and hence with the |
| 107 # Android build system, value 1). | 107 # Android build system, value 1). |
| 108 'android_build_type%': 0, | 108 'android_build_type%': 0, |
| 109 | 109 |
| 110 # Sets whether Android uses ARM FFT. Default is no. | |
| 111 'use_arm_fft%': 0, | |
| 112 | |
| 110 # Sets whether chrome is built for google tv device. | 113 # Sets whether chrome is built for google tv device. |
| 111 'google_tv%': 0, | 114 'google_tv%': 0, |
| 112 | 115 |
| 113 'conditions': [ | 116 'conditions': [ |
| 114 # Set default value of toolkit_views based on OS. | 117 # Set default value of toolkit_views based on OS. |
| 115 ['OS=="win" or chromeos==1 or use_aura==1', { | 118 ['OS=="win" or chromeos==1 or use_aura==1', { |
| 116 'toolkit_views%': 1, | 119 'toolkit_views%': 1, |
| 117 }, { | 120 }, { |
| 118 'toolkit_views%': 0, | 121 'toolkit_views%': 0, |
| 119 }], | 122 }], |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 170 'enable_hidpi%': '<(enable_hidpi)', | 173 'enable_hidpi%': '<(enable_hidpi)', |
| 171 'enable_touch_ui%': '<(enable_touch_ui)', | 174 'enable_touch_ui%': '<(enable_touch_ui)', |
| 172 'android_build_type%': '<(android_build_type)', | 175 'android_build_type%': '<(android_build_type)', |
| 173 'google_tv%': '<(google_tv)', | 176 'google_tv%': '<(google_tv)', |
| 174 'enable_app_list%': '<(enable_app_list)', | 177 'enable_app_list%': '<(enable_app_list)', |
| 175 'enable_message_center%': '<(enable_message_center)', | 178 'enable_message_center%': '<(enable_message_center)', |
| 176 'use_default_render_theme%': '<(use_default_render_theme)', | 179 'use_default_render_theme%': '<(use_default_render_theme)', |
| 177 'enable_web_intents%': 0, # TODO(thakis): Remove, http://crbug.com/173194 | 180 'enable_web_intents%': 0, # TODO(thakis): Remove, http://crbug.com/173194 |
| 178 'buildtype%': '<(buildtype)', | 181 'buildtype%': '<(buildtype)', |
| 179 | 182 |
| 183 'use_arm_fft%': '<(use_arm_fft)', | |
| 184 | |
| 180 # We used to provide a variable for changing how libraries were built. | 185 # We used to provide a variable for changing how libraries were built. |
| 181 # This variable remains until we can clean up all the users. | 186 # This variable remains until we can clean up all the users. |
| 182 # This needs to be one nested variables dict in so that dependent | 187 # This needs to be one nested variables dict in so that dependent |
| 183 # gyp files can make use of it in their outer variables. (Yikes!) | 188 # gyp files can make use of it in their outer variables. (Yikes!) |
| 184 # http://code.google.com/p/chromium/issues/detail?id=83308 | 189 # http://code.google.com/p/chromium/issues/detail?id=83308 |
| 185 'library%': 'static_library', | 190 'library%': 'static_library', |
| 186 | 191 |
| 187 # Override branding to select the desired branding flavor. | 192 # Override branding to select the desired branding flavor. |
| 188 'branding%': 'Chromium', | 193 'branding%': 'Chromium', |
| 189 | 194 |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 598 # where possible to reduce ROM size. | 603 # where possible to reduce ROM size. |
| 599 'use_system_libjpeg%': '<(android_build_type)', | 604 'use_system_libjpeg%': '<(android_build_type)', |
| 600 }], | 605 }], |
| 601 | 606 |
| 602 # Enable Settings App only on Windows. | 607 # Enable Settings App only on Windows. |
| 603 ['enable_app_list==1 and OS=="win"', { | 608 ['enable_app_list==1 and OS=="win"', { |
| 604 'enable_settings_app%': 1, | 609 'enable_settings_app%': 1, |
| 605 }, { | 610 }, { |
| 606 'enable_settings_app%': 0, | 611 'enable_settings_app%': 0, |
| 607 }], | 612 }], |
| 608 | |
| 609 ['OS=="linux" and target_arch=="arm" and chromeos==0', { | 613 ['OS=="linux" and target_arch=="arm" and chromeos==0', { |
| 610 # Set some defaults for arm/linux chrome builds | 614 # Set some defaults for arm/linux chrome builds |
| 611 'armv7%': 1, | 615 'armv7%': 1, |
| 612 'linux_breakpad%': 0, | 616 'linux_breakpad%': 0, |
| 613 'linux_use_tcmalloc%': 0, | 617 'linux_use_tcmalloc%': 0, |
| 614 'linux_use_gold_flags%': 0, | 618 'linux_use_gold_flags%': 0, |
| 615 # sysroot needs to be an absolute path otherwise it generates | 619 # sysroot needs to be an absolute path otherwise it generates |
| 616 # incorrect results when passed to pkg-config | 620 # incorrect results when passed to pkg-config |
| 617 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot', | 621 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot', |
| 618 }], # OS=="linux" and target_arch=="arm" and chromeos==0 | 622 }], # OS=="linux" and target_arch=="arm" and chromeos==0 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 748 'google_default_client_id%': '<(google_default_client_id)', | 752 'google_default_client_id%': '<(google_default_client_id)', |
| 749 'google_default_client_secret%': '<(google_default_client_secret)', | 753 'google_default_client_secret%': '<(google_default_client_secret)', |
| 750 'enable_managed_users%': '<(enable_managed_users)', | 754 'enable_managed_users%': '<(enable_managed_users)', |
| 751 | 755 |
| 752 # Use system mesa instead of bundled one. | 756 # Use system mesa instead of bundled one. |
| 753 'use_system_mesa%': 0, | 757 'use_system_mesa%': 0, |
| 754 | 758 |
| 755 # Use system nspr instead of the bundled one. | 759 # Use system nspr instead of the bundled one. |
| 756 'use_system_nspr%': 0, | 760 'use_system_nspr%': 0, |
| 757 | 761 |
| 762 # Use ARM FFT if requested | |
| 763 'use_arm_fft%': '<(use_arm_fft)', | |
| 764 | |
| 758 # Use system protobuf instead of bundled one. | 765 # Use system protobuf instead of bundled one. |
| 759 'use_system_protobuf%': 0, | 766 'use_system_protobuf%': 0, |
| 760 | 767 |
| 761 # Use system yasm instead of bundled one. | 768 # Use system yasm instead of bundled one. |
| 762 'use_system_yasm%': 0, | 769 'use_system_yasm%': 0, |
| 763 | 770 |
| 764 # Default to enabled PIE; this is important for ASLR but we may need to be | 771 # Default to enabled PIE; this is important for ASLR but we may need to be |
| 765 # able to turn it off for various reasons. | 772 # able to turn it off for various reasons. |
| 766 'linux_disable_pie%': 0, | 773 'linux_disable_pie%': 0, |
| 767 | 774 |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1150 # Location of the "strip" binary, used by both gyp and scripts. | 1157 # Location of the "strip" binary, used by both gyp and scripts. |
| 1151 'android_strip%' : '<!(/bin/echo -n <(android_toolchain)/*-strip)', | 1158 'android_strip%' : '<!(/bin/echo -n <(android_toolchain)/*-strip)', |
| 1152 | 1159 |
| 1153 # Provides an absolute path to PRODUCT_DIR (e.g. out/Release). Used | 1160 # Provides an absolute path to PRODUCT_DIR (e.g. out/Release). Used |
| 1154 # to specify the output directory for Ant in the Android build. | 1161 # to specify the output directory for Ant in the Android build. |
| 1155 'ant_build_out': '`cd <(PRODUCT_DIR) && pwd -P`', | 1162 'ant_build_out': '`cd <(PRODUCT_DIR) && pwd -P`', |
| 1156 | 1163 |
| 1157 # Always uses openssl. | 1164 # Always uses openssl. |
| 1158 'use_openssl%': 1, | 1165 'use_openssl%': 1, |
| 1159 | 1166 |
| 1167 'use_arm_fft%': '<(use_arm_fft)', | |
|
Paweł Hajdan Jr.
2013/02/27 17:56:58
Why so many deep repetitions?
Isn't it sufficient
| |
| 1160 'proprietary_codecs%': '<(proprietary_codecs)', | 1168 'proprietary_codecs%': '<(proprietary_codecs)', |
| 1161 'enable_task_manager%': 0, | 1169 'enable_task_manager%': 0, |
| 1162 'safe_browsing%': 2, | 1170 'safe_browsing%': 2, |
| 1163 'configuration_policy%': 0, | 1171 'configuration_policy%': 0, |
| 1164 'input_speech%': 0, | 1172 'input_speech%': 0, |
| 1165 'enable_automation%': 0, | 1173 'enable_automation%': 0, |
| 1166 'java_bridge%': 1, | 1174 'java_bridge%': 1, |
| 1167 'build_ffmpegsumo%': 0, | 1175 'build_ffmpegsumo%': 0, |
| 1168 'linux_use_tcmalloc%': 0, | 1176 'linux_use_tcmalloc%': 0, |
| 1169 | 1177 |
| (...skipping 2870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4040 # settings in target dicts. SYMROOT is a special case, because many other | 4048 # settings in target dicts. SYMROOT is a special case, because many other |
| 4041 # Xcode variables depend on it, including variables such as | 4049 # Xcode variables depend on it, including variables such as |
| 4042 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4050 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 4043 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4051 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 4044 # files to appear (when present) in the UI as actual files and not red | 4052 # files to appear (when present) in the UI as actual files and not red |
| 4045 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4053 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 4046 # and therefore SYMROOT, needs to be set at the project level. | 4054 # and therefore SYMROOT, needs to be set at the project level. |
| 4047 'SYMROOT': '<(DEPTH)/xcodebuild', | 4055 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 4048 }, | 4056 }, |
| 4049 } | 4057 } |
| OLD | NEW |