Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: build/common.gypi

Issue 883253003: Add the mips_dsp_rev build variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust if statement nesting Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | build/config/compiler/BUILD.gn » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 'mips_dsp_rev%': 0,
192
187 'conditions': [ 193 'conditions': [
188 # Ash needs Aura. 194 # Ash needs Aura.
189 ['use_aura==0', { 195 ['use_aura==0', {
190 'use_ash%': 0, 196 'use_ash%': 0,
191 }], 197 }],
192 198
193 # Set default value of toolkit_views based on OS. 199 # Set default value of toolkit_views based on OS.
194 ['OS=="win" or chromeos==1 or use_aura==1', { 200 ['OS=="win" or chromeos==1 or use_aura==1', {
195 'toolkit_views%': 1, 201 'toolkit_views%': 1,
196 }, { 202 }, {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 ], 275 ],
270 }, 276 },
271 277
272 # Copy conditionally-set variables out one scope. 278 # Copy conditionally-set variables out one scope.
273 'chromeos%': '<(chromeos)', 279 'chromeos%': '<(chromeos)',
274 'chromecast%': '<(chromecast)', 280 'chromecast%': '<(chromecast)',
275 'host_arch%': '<(host_arch)', 281 'host_arch%': '<(host_arch)',
276 'target_arch%': '<(target_arch)', 282 'target_arch%': '<(target_arch)',
277 'target_subarch%': '<(target_subarch)', 283 'target_subarch%': '<(target_subarch)',
278 'mips_arch_variant%': '<(mips_arch_variant)', 284 'mips_arch_variant%': '<(mips_arch_variant)',
285 'mips_dsp_rev%': '<(mips_dsp_rev)',
279 'toolkit_views%': '<(toolkit_views)', 286 'toolkit_views%': '<(toolkit_views)',
280 'desktop_linux%': '<(desktop_linux)', 287 'desktop_linux%': '<(desktop_linux)',
281 'use_aura%': '<(use_aura)', 288 'use_aura%': '<(use_aura)',
282 'use_ash%': '<(use_ash)', 289 'use_ash%': '<(use_ash)',
283 'use_cras%': '<(use_cras)', 290 'use_cras%': '<(use_cras)',
284 'use_libpci%': '<(use_libpci)', 291 'use_libpci%': '<(use_libpci)',
285 'use_ozone%': '<(use_ozone)', 292 'use_ozone%': '<(use_ozone)',
286 'use_ozone_evdev%': '<(use_ozone_evdev)', 293 'use_ozone_evdev%': '<(use_ozone_evdev)',
287 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', 294 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)',
288 'embedded%': '<(embedded)', 295 'embedded%': '<(embedded)',
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 # Set to 1 to support old history files 1062 # Set to 1 to support old history files
1056 'support_pre_M6_history_database%': '1', 1063 'support_pre_M6_history_database%': '1',
1057 }, 1064 },
1058 1065
1059 # Copy conditionally-set variables out one scope. 1066 # Copy conditionally-set variables out one scope.
1060 'branding%': '<(branding)', 1067 'branding%': '<(branding)',
1061 'buildtype%': '<(buildtype)', 1068 'buildtype%': '<(buildtype)',
1062 'target_arch%': '<(target_arch)', 1069 'target_arch%': '<(target_arch)',
1063 'target_subarch%': '<(target_subarch)', 1070 'target_subarch%': '<(target_subarch)',
1064 'mips_arch_variant%': '<(mips_arch_variant)', 1071 'mips_arch_variant%': '<(mips_arch_variant)',
1072 'mips_dsp_rev%': '<(mips_dsp_rev)',
1065 'host_arch%': '<(host_arch)', 1073 'host_arch%': '<(host_arch)',
1066 'toolkit_views%': '<(toolkit_views)', 1074 'toolkit_views%': '<(toolkit_views)',
1067 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', 1075 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)',
1068 'use_aura%': '<(use_aura)', 1076 'use_aura%': '<(use_aura)',
1069 'use_ash%': '<(use_ash)', 1077 'use_ash%': '<(use_ash)',
1070 'use_cras%': '<(use_cras)', 1078 'use_cras%': '<(use_cras)',
1071 'use_libpci%': '<(use_libpci)', 1079 'use_libpci%': '<(use_libpci)',
1072 'use_openssl%': '<(use_openssl)', 1080 'use_openssl%': '<(use_openssl)',
1073 'use_openssl_certs%': '<(use_openssl_certs)', 1081 'use_openssl_certs%': '<(use_openssl_certs)',
1074 'use_nss%': '<(use_nss)', 1082 'use_nss%': '<(use_nss)',
(...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after
2275 ], 2283 ],
2276 # Change the default to hard once the armhf transition is complete. 2284 # Change the default to hard once the armhf transition is complete.
2277 'arm_float_abi%': 'softfp', 2285 'arm_float_abi%': 'softfp',
2278 'arm_thumb%': 1, 2286 'arm_thumb%': 1,
2279 }], 2287 }],
2280 2288
2281 # Set default compiler flags depending on MIPS architecture variant. 2289 # Set default compiler flags depending on MIPS architecture variant.
2282 ['target_arch=="mipsel" and mips_arch_variant=="r2" and android_webview_bu ild==0', { 2290 ['target_arch=="mipsel" and mips_arch_variant=="r2" and android_webview_bu ild==0', {
2283 'mips_fpu_mode%': 'fp32', 2291 'mips_fpu_mode%': 'fp32',
2284 }], 2292 }],
2293 ['target_arch=="mipsel" and android_webview_build==0', {
2294 'mips_float_abi%': 'hard',
2295 }],
2285 2296
2286 ['android_webview_build==1', { 2297 ['android_webview_build==1', {
2287 # The WebView build gets its cpu-specific flags from the Android build s ystem. 2298 # The WebView build gets its cpu-specific flags from the Android build s ystem.
2288 'arm_arch%': '', 2299 'arm_arch%': '',
2289 'arm_tune%': '', 2300 'arm_tune%': '',
2290 'arm_fpu%': '', 2301 'arm_fpu%': '',
2291 'arm_float_abi%': '', 2302 'arm_float_abi%': '',
2292 'arm_thumb%': 0, 2303 'arm_thumb%': 0,
2293 'mips_fpu_mode%': '', 2304 'mips_fpu_mode%': '',
2305 'mips_float_abi%': '',
2294 }], 2306 }],
2295 2307
2296 # Enable brlapi by default for chromeos. 2308 # Enable brlapi by default for chromeos.
2297 [ 'chromeos==1', { 2309 [ 'chromeos==1', {
2298 'use_brlapi%': 1, 2310 'use_brlapi%': 1,
2299 }], 2311 }],
2300 2312
2301 ['use_ozone==1 and ozone_auto_platforms==1', { 2313 ['use_ozone==1 and ozone_auto_platforms==1', {
2302 # Use test as the default platform. 2314 # Use test as the default platform.
2303 'ozone_platform%': 'test', 2315 'ozone_platform%': 'test',
(...skipping 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after
4023 ], 4035 ],
4024 }], 4036 }],
4025 ], 4037 ],
4026 }], 4038 }],
4027 ], 4039 ],
4028 }], 4040 }],
4029 ['target_arch=="mipsel"', { 4041 ['target_arch=="mipsel"', {
4030 'target_conditions': [ 4042 'target_conditions': [
4031 ['_toolset=="target"', { 4043 ['_toolset=="target"', {
4032 'conditions': [ 4044 'conditions': [
4033 ['android_webview_build==0 and mips_arch_variant=="r6"', { 4045 ['android_webview_build==0', {
4034 'cflags': ['-mips32r6', '-Wa,-mips32r6'],
4035 'conditions': [ 4046 'conditions': [
4036 ['OS=="android"', { 4047 ['mips_arch_variant=="r6"', {
4037 'ldflags': ['-mips32r6', '-Wl,-melf32ltsmip',], 4048 'cflags': ['-mips32r6', '-Wa,-mips32r6'],
4049 'conditions': [
4050 ['OS=="android"', {
4051 'ldflags': ['-mips32r6', '-Wl,-melf32ltsmip',],
4052 }],
4053 ],
4054 }],
4055 ['mips_arch_variant=="r2"', {
4056 'cflags': ['-mips32r2', '-Wa,-mips32r2'],
4057 'conditions': [
4058 ['mips_fpu_mode!=""', {
4059 'cflags': ['-m<(mips_fpu_mode)'],
4060 }],
4061 ],
4062 }],
4063 ['mips_arch_variant=="r1"', {
4064 'cflags': ['-mips32', '-Wa,-mips32'],
4065 }],
4066 ['mips_dsp_rev==1', {
4067 'cflags': ['-mdsp'],
4068 }],
4069 ['mips_dsp_rev==2', {
4070 'cflags': ['-mdspr2'],
4038 }], 4071 }],
4039 ], 4072 ],
4040 }], 4073 'cflags': [
4041 ['android_webview_build==0 and mips_arch_variant=="r2"', { 4074 '-m<(mips_float_abi)-float'
4042 'cflags': ['-mips32r2', '-Wa,-mips32r2'], 4075 ],
4043 }],
4044 ['android_webview_build==0 and mips_arch_variant=="r1"', {
4045 'cflags': ['-mips32', '-Wa,-mips32'],
4046 }], 4076 }],
4047 ], 4077 ],
4048 'ldflags': [ 4078 'ldflags': [
4049 '-Wl,--no-keep-memory' 4079 '-Wl,--no-keep-memory'
4050 ], 4080 ],
4051 'cflags_cc': [ 4081 'cflags_cc': [
4052 '-Wno-uninitialized', 4082 '-Wno-uninitialized',
4053 ], 4083 ],
4054 }], 4084 }],
4055 ], 4085 ],
4056 }], 4086 }],
4057 ['target_arch=="mips64el"', { 4087 ['target_arch=="mips64el"', {
4058 'target_conditions': [ 4088 'target_conditions': [
4059 ['_toolset=="target"', { 4089 ['_toolset=="target"', {
4060 'conditions': [ 4090 'conditions': [
4061 ['android_webview_build==0 and mips_arch_variant=="r6"', { 4091 ['android_webview_build==0', {
4062 'cflags': ['-mips64r6', '-Wa,-mips64r6'], 4092 'conditions': [
4063 'ldflags': [ '-mips64r6' ], 4093 ['mips_arch_variant=="r6"', {
4064 }], 4094 'cflags': ['-mips64r6', '-Wa,-mips64r6'],
4065 ['android_webview_build==0 and mips_arch_variant=="r2"', { 4095 'ldflags': ['-mips64r6'],
4066 'cflags': ['-mips64r2', '-Wa,-mips64r2'], 4096 }],
4067 'ldflags': [ '-mips64r2' ], 4097 ['mips_arch_variant=="r2"', {
4098 'cflags': ['-mips64r2', '-Wa,-mips64r2'],
4099 'ldflags': ['-mips64r2'],
4100 }],
4101 ],
4068 }], 4102 }],
4069 ], 4103 ],
4070 'cflags_cc': [ 4104 'cflags_cc': [
4071 '-Wno-uninitialized', 4105 '-Wno-uninitialized',
4072 ], 4106 ],
4073 }], 4107 }],
4074 ], 4108 ],
4075 }], 4109 }],
4076 ['linux_fpic==1', { 4110 ['linux_fpic==1', {
4077 'cflags': [ 4111 'cflags': [
(...skipping 1841 matching lines...) Expand 10 before | Expand all | Expand 10 after
5919 # settings in target dicts. SYMROOT is a special case, because many other 5953 # settings in target dicts. SYMROOT is a special case, because many other
5920 # Xcode variables depend on it, including variables such as 5954 # Xcode variables depend on it, including variables such as
5921 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5955 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5922 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5956 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5923 # files to appear (when present) in the UI as actual files and not red 5957 # files to appear (when present) in the UI as actual files and not red
5924 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5958 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5925 # and therefore SYMROOT, needs to be set at the project level. 5959 # and therefore SYMROOT, needs to be set at the project level.
5926 'SYMROOT': '<(DEPTH)/xcodebuild', 5960 'SYMROOT': '<(DEPTH)/xcodebuild',
5927 }, 5961 },
5928 } 5962 }
OLDNEW
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | build/config/compiler/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698