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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
177 'sysroot%': '', | 177 'sysroot%': '', |
178 'chroot_cmd%': '', | 178 'chroot_cmd%': '', |
179 | 179 |
180 # The system libdir used for this ABI. | 180 # The system libdir used for this ABI. |
181 'system_libdir%': 'lib', | 181 'system_libdir%': 'lib', |
182 | 182 |
183 # Default MIPS arch variant. This is set in the conditions block | 183 # Default MIPS arch variant. This is set in the conditions block |
184 # below for MIPS targets. | 184 # below for MIPS targets. |
185 'mips_arch_variant%': '', | 185 'mips_arch_variant%': '', |
186 | 186 |
187 # MIPS DSP ASE revision. Possible values are: | |
188 # 0: unavailable | |
189 # 1: revision 1 | |
190 # 2: revision 2 | |
191 # Default: 0. | |
192 'mips_dsp_rev%': 0, | |
193 | |
187 'conditions': [ | 194 'conditions': [ |
188 # Ash needs Aura. | 195 # Ash needs Aura. |
189 ['use_aura==0', { | 196 ['use_aura==0', { |
190 'use_ash%': 0, | 197 'use_ash%': 0, |
191 }], | 198 }], |
192 | 199 |
193 # Set default value of toolkit_views based on OS. | 200 # Set default value of toolkit_views based on OS. |
194 ['OS=="win" or chromeos==1 or use_aura==1', { | 201 ['OS=="win" or chromeos==1 or use_aura==1', { |
195 'toolkit_views%': 1, | 202 'toolkit_views%': 1, |
196 }, { | 203 }, { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
269 ], | 276 ], |
270 }, | 277 }, |
271 | 278 |
272 # Copy conditionally-set variables out one scope. | 279 # Copy conditionally-set variables out one scope. |
273 'chromeos%': '<(chromeos)', | 280 'chromeos%': '<(chromeos)', |
274 'chromecast%': '<(chromecast)', | 281 'chromecast%': '<(chromecast)', |
275 'host_arch%': '<(host_arch)', | 282 'host_arch%': '<(host_arch)', |
276 'target_arch%': '<(target_arch)', | 283 'target_arch%': '<(target_arch)', |
277 'target_subarch%': '<(target_subarch)', | 284 'target_subarch%': '<(target_subarch)', |
278 'mips_arch_variant%': '<(mips_arch_variant)', | 285 'mips_arch_variant%': '<(mips_arch_variant)', |
286 'mips_dsp_rev%': '<(mips_dsp_rev)', | |
279 'toolkit_views%': '<(toolkit_views)', | 287 'toolkit_views%': '<(toolkit_views)', |
280 'desktop_linux%': '<(desktop_linux)', | 288 'desktop_linux%': '<(desktop_linux)', |
281 'use_aura%': '<(use_aura)', | 289 'use_aura%': '<(use_aura)', |
282 'use_ash%': '<(use_ash)', | 290 'use_ash%': '<(use_ash)', |
283 'use_cras%': '<(use_cras)', | 291 'use_cras%': '<(use_cras)', |
284 'use_libpci%': '<(use_libpci)', | 292 'use_libpci%': '<(use_libpci)', |
285 'use_ozone%': '<(use_ozone)', | 293 'use_ozone%': '<(use_ozone)', |
286 'use_ozone_evdev%': '<(use_ozone_evdev)', | 294 'use_ozone_evdev%': '<(use_ozone_evdev)', |
287 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', | 295 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', |
288 'embedded%': '<(embedded)', | 296 'embedded%': '<(embedded)', |
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1052 # Set to 1 to support old history files | 1060 # Set to 1 to support old history files |
1053 'support_pre_M6_history_database%': '1', | 1061 'support_pre_M6_history_database%': '1', |
1054 }, | 1062 }, |
1055 | 1063 |
1056 # Copy conditionally-set variables out one scope. | 1064 # Copy conditionally-set variables out one scope. |
1057 'branding%': '<(branding)', | 1065 'branding%': '<(branding)', |
1058 'buildtype%': '<(buildtype)', | 1066 'buildtype%': '<(buildtype)', |
1059 'target_arch%': '<(target_arch)', | 1067 'target_arch%': '<(target_arch)', |
1060 'target_subarch%': '<(target_subarch)', | 1068 'target_subarch%': '<(target_subarch)', |
1061 'mips_arch_variant%': '<(mips_arch_variant)', | 1069 'mips_arch_variant%': '<(mips_arch_variant)', |
1070 'mips_dsp_rev%': '<(mips_dsp_rev)', | |
1062 'host_arch%': '<(host_arch)', | 1071 'host_arch%': '<(host_arch)', |
1063 'toolkit_views%': '<(toolkit_views)', | 1072 'toolkit_views%': '<(toolkit_views)', |
1064 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', | 1073 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', |
1065 'use_aura%': '<(use_aura)', | 1074 'use_aura%': '<(use_aura)', |
1066 'use_ash%': '<(use_ash)', | 1075 'use_ash%': '<(use_ash)', |
1067 'use_cras%': '<(use_cras)', | 1076 'use_cras%': '<(use_cras)', |
1068 'use_libpci%': '<(use_libpci)', | 1077 'use_libpci%': '<(use_libpci)', |
1069 'use_openssl%': '<(use_openssl)', | 1078 'use_openssl%': '<(use_openssl)', |
1070 'use_openssl_certs%': '<(use_openssl_certs)', | 1079 'use_openssl_certs%': '<(use_openssl_certs)', |
1071 'use_nss%': '<(use_nss)', | 1080 'use_nss%': '<(use_nss)', |
(...skipping 1211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2283 'arm_fpu%': 'vfpv3-d16', | 2292 'arm_fpu%': 'vfpv3-d16', |
2284 }], | 2293 }], |
2285 ], | 2294 ], |
2286 # Change the default to hard once the armhf transition is complete. | 2295 # Change the default to hard once the armhf transition is complete. |
2287 'arm_float_abi%': 'softfp', | 2296 'arm_float_abi%': 'softfp', |
2288 'arm_thumb%': 1, | 2297 'arm_thumb%': 1, |
2289 }], | 2298 }], |
2290 | 2299 |
2291 # Set default compiler flags depending on MIPS architecture variant. | 2300 # Set default compiler flags depending on MIPS architecture variant. |
2292 ['target_arch=="mipsel" and mips_arch_variant=="r2" and android_webview_bu ild==0', { | 2301 ['target_arch=="mipsel" and mips_arch_variant=="r2" and android_webview_bu ild==0', { |
2293 'mips_fpu_mode%': 'fp32', | 2302 'mips_fpu_mode%': 'fp32', |
wtc
2015/02/03 22:49:46
Petar: is the mips_fpu_mode build variable being u
petarj
2015/02/05 16:54:44
We should copy the code that sets cflags based mip
wtc
2015/02/20 01:58:56
Done.
| |
2294 }], | 2303 }], |
2295 | 2304 |
2296 ['android_webview_build==1', { | 2305 ['android_webview_build==1', { |
2297 # The WebView build gets its cpu-specific flags from the Android build s ystem. | 2306 # The WebView build gets its cpu-specific flags from the Android build s ystem. |
2298 'arm_arch%': '', | 2307 'arm_arch%': '', |
2299 'arm_tune%': '', | 2308 'arm_tune%': '', |
2300 'arm_fpu%': '', | 2309 'arm_fpu%': '', |
2301 'arm_float_abi%': '', | 2310 'arm_float_abi%': '', |
2302 'arm_thumb%': 0, | 2311 'arm_thumb%': 0, |
2303 'mips_fpu_mode%': '', | 2312 'mips_fpu_mode%': '', |
(...skipping 1755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4059 'ldflags': ['-mips32r6', '-Wl,-melf32ltsmip',], | 4068 'ldflags': ['-mips32r6', '-Wl,-melf32ltsmip',], |
4060 }], | 4069 }], |
4061 ], | 4070 ], |
4062 }], | 4071 }], |
4063 ['android_webview_build==0 and mips_arch_variant=="r2"', { | 4072 ['android_webview_build==0 and mips_arch_variant=="r2"', { |
4064 'cflags': ['-mips32r2', '-Wa,-mips32r2'], | 4073 'cflags': ['-mips32r2', '-Wa,-mips32r2'], |
4065 }], | 4074 }], |
4066 ['android_webview_build==0 and mips_arch_variant=="r1"', { | 4075 ['android_webview_build==0 and mips_arch_variant=="r1"', { |
4067 'cflags': ['-mips32', '-Wa,-mips32'], | 4076 'cflags': ['-mips32', '-Wa,-mips32'], |
4068 }], | 4077 }], |
4078 ['android_webview_build==0 and mips_dsp_rev==1', { | |
4079 'cflags': ['-mdsp'], | |
4080 }], | |
4081 ['android_webview_build==0 and mips_dsp_rev==2', { | |
4082 'cflags': ['-mdspr2'], | |
4083 }], | |
4069 ], | 4084 ], |
4070 'ldflags': [ | 4085 'ldflags': [ |
4071 '-Wl,--no-keep-memory' | 4086 '-Wl,--no-keep-memory' |
4072 ], | 4087 ], |
4073 'cflags_cc': [ | 4088 'cflags_cc': [ |
4074 '-Wno-uninitialized', | 4089 '-Wno-uninitialized', |
4075 ], | 4090 ], |
4076 }], | 4091 }], |
4077 ], | 4092 ], |
4078 }], | 4093 }], |
(...skipping 1810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5889 # settings in target dicts. SYMROOT is a special case, because many other | 5904 # settings in target dicts. SYMROOT is a special case, because many other |
5890 # Xcode variables depend on it, including variables such as | 5905 # Xcode variables depend on it, including variables such as |
5891 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5906 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5892 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5907 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5893 # files to appear (when present) in the UI as actual files and not red | 5908 # files to appear (when present) in the UI as actual files and not red |
5894 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5909 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5895 # and therefore SYMROOT, needs to be set at the project level. | 5910 # and therefore SYMROOT, needs to be set at the project level. |
5896 'SYMROOT': '<(DEPTH)/xcodebuild', | 5911 'SYMROOT': '<(DEPTH)/xcodebuild', |
5897 }, | 5912 }, |
5898 } | 5913 } |
OLD | NEW |