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

Unified 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, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « AUTHORS ('k') | default_targets.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common.gypi
diff --git a/common.gypi b/common.gypi
index ffdd5a423cd615672d32e7534cb09510836b54d8..17ea1386c8641f8ffb6b1a2e15fc588d81957f70 100644
--- a/common.gypi
+++ b/common.gypi
@@ -253,6 +253,96 @@
},
},
+ 'dartino_mips': {
+ 'abstract': 1,
+
+ 'defines': [
+ 'DARTINO32',
+ 'DARTINO_TARGET_MIPS',
+ ],
+
+ 'cflags_cc': [
+ '-Wno-unused-variable',
+ '-mips32r2',
+ '-EL',
+ ],
+
+ 'cflags_c':[
+ '-Wno-unused-variable',
+ '-mips32r2',
+ '-EL',
+ ],
+
+ 'ldflags': [
+ '-EL',
+ ],
+
+ },
+
+ 'dartino_xmips': {
+ 'abstract': 1,
+
+ 'defines': [
+ 'DARTINO32',
+ 'DARTINO_TARGET_MIPS',
+ ],
+
+ 'target_conditions': [
+ ['_toolset=="target"', {
+ 'defines': [
+ # Fake define intercepted by cc_wrapper.py to change the
+ # compiler binary to a MIPS cross compiler. This is only
+ # needed on linux.
+ 'DARTINO_MIPS',
+ ],
+
+ 'cflags_cc': [
+ '-Wno-unused-variable',
+ '-mips32r2',
+ '-EL',
+ ],
+
+ 'cflags_c':[
+ '-Wno-unused-variable',
+ '-mips32r2',
+ '-EL',
+ ],
+
+ 'ldflags': [
+ # Fake define intercepted by cc_wrapper.py.
+ '-L/DARTINO_MIPS',
+ '-EL',
+ ],
+
+ 'variables': {
+ 'ldso_path%': '<!(/bin/echo -n $LDSO_PATH)',
+ 'ld_r_path%': '<!(/bin/echo -n $LD_R_PATH)',
+ },
+
+ 'conditions': [
+ ['ldso_path!=""', {
+ 'ldflags': ['-Wl,--dynamic-linker=<(ldso_path)'],
+ }],
+ ['ld_r_path!=""', {
+ 'ldflags': ['-Wl,--rpath=<(ld_r_path)'],
+ }],
+ ],
+ }],
+
+ ['_toolset=="host"', {
+ # Compile host targets as IA32, to get same word size.
+ 'inherit_from': [ 'dartino_ia32' ],
+
+ # The 'dartino_ia32' target will define IA32 as the target. Since
+ # the host should still target MIPS, undefine it.
+ 'defines!': [
+ 'DARTINO_TARGET_IA32',
+ ],
+ }],
+ ],
+
+ },
+
'dartino_x64': {
'abstract': 1,
« 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