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

Side by Side Diff: common.gypi

Issue 2006403003: [mips] Initial framework support for MIPS32 (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Code changes per review. Created 4 years, 6 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 | « AUTHORS ('k') | default_targets.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file 1 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE.md file. 3 # BSD-style license that can be found in the LICENSE.md file.
4 4
5 # TODO(ahe): Move this file elsewhere? 5 # TODO(ahe): Move this file elsewhere?
6 6
7 { 7 {
8 'variables': { 8 'variables': {
9 'clang%': '0', 9 'clang%': '0',
10 10
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 246
247 'ldflags': [ 247 'ldflags': [
248 '-m32', 248 '-m32',
249 ], 249 ],
250 250
251 'xcode_settings': { # And ninja. 251 'xcode_settings': { # And ninja.
252 'ARCHS': [ 'i386' ], 252 'ARCHS': [ 'i386' ],
253 }, 253 },
254 }, 254 },
255 255
256 'dartino_mips': {
257 'abstract': 1,
258
259 'defines': [
260 'DARTINO32',
261 'DARTINO_TARGET_MIPS',
262 ],
263
264 'cflags_cc': [
265 '-Wno-unused-variable',
266 '-mips32r2',
267 '-EL',
268 ],
269
270 'cflags_c':[
271 '-Wno-unused-variable',
272 '-mips32r2',
273 '-EL',
274 ],
275
276 'ldflags': [
277 '-EL',
278 ],
279
280 },
281
282 'dartino_xmips': {
283 'abstract': 1,
284
285 'defines': [
286 'DARTINO32',
287 'DARTINO_TARGET_MIPS',
288 ],
289
290 'target_conditions': [
291 ['_toolset=="target"', {
292 'defines': [
293 # Fake define intercepted by cc_wrapper.py to change the
294 # compiler binary to a MIPS cross compiler. This is only
295 # needed on linux.
296 'DARTINO_MIPS',
297 ],
298
299 'cflags_cc': [
300 '-Wno-unused-variable',
301 '-mips32r2',
302 '-EL',
303 ],
304
305 'cflags_c':[
306 '-Wno-unused-variable',
307 '-mips32r2',
308 '-EL',
309 ],
310
311 'ldflags': [
312 # Fake define intercepted by cc_wrapper.py.
313 '-L/DARTINO_MIPS',
314 '-EL',
315 ],
316
317 'variables': {
318 'ldso_path%': '<!(/bin/echo -n $LDSO_PATH)',
319 'ld_r_path%': '<!(/bin/echo -n $LD_R_PATH)',
320 },
321
322 'conditions': [
323 ['ldso_path!=""', {
324 'ldflags': ['-Wl,--dynamic-linker=<(ldso_path)'],
325 }],
326 ['ld_r_path!=""', {
327 'ldflags': ['-Wl,--rpath=<(ld_r_path)'],
328 }],
329 ],
330 }],
331
332 ['_toolset=="host"', {
333 # Compile host targets as IA32, to get same word size.
334 'inherit_from': [ 'dartino_ia32' ],
335
336 # The 'dartino_ia32' target will define IA32 as the target. Since
337 # the host should still target MIPS, undefine it.
338 'defines!': [
339 'DARTINO_TARGET_IA32',
340 ],
341 }],
342 ],
343
344 },
345
256 'dartino_x64': { 346 'dartino_x64': {
257 'abstract': 1, 347 'abstract': 1,
258 348
259 'defines': [ 349 'defines': [
260 'DARTINO64', 350 'DARTINO64',
261 'DARTINO_TARGET_X64', 351 'DARTINO_TARGET_X64',
262 ], 352 ],
263 353
264 # Shared libraries on x64 require compilation with position 354 # Shared libraries on x64 require compilation with position
265 # independent code. Load-time relocation is not supported on 355 # independent code. Load-time relocation is not supported on
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 'dartino_disable_print_interceptors': { 908 'dartino_disable_print_interceptors': {
819 'abstract': 1, 909 'abstract': 1,
820 910
821 'defines!': [ 911 'defines!': [
822 'DARTINO_ENABLE_PRINT_INTERCEPTORS', 912 'DARTINO_ENABLE_PRINT_INTERCEPTORS',
823 ], 913 ],
824 }, 914 },
825 }, 915 },
826 }, 916 },
827 } 917 }
OLDNEW
« no previous file with comments | « AUTHORS ('k') | default_targets.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698