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

Unified Diff: build/common.gypi

Issue 24227003: [MIPS] Add support to gyp files to build Native Client inside of Chromium (Closed) Base URL: http://git.chromium.org/native_client/src/native_client.git@master
Patch Set: Created 7 years, 3 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
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 665e46e7c57ec61da07beb045aacc46b35bd961d..cb2efd9154c2bf5aa89be6cb49ef04adca6c689a 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -204,6 +204,14 @@
'NACL_TARGET_SUBARCH=32',
],
}],
+ ['target_arch=="mipsel"', {
+ 'defines': [
+ 'NACL_BUILD_ARCH=mipsel',
Mark Seaborn 2013/09/20 23:11:17 Why not "mips" instead of "mipsel"? Then we don't
petarj 2013/09/23 17:49:24 Done.
+ 'NACL_BUILD_SUBARCH=32',
+ 'NACL_TARGET_ARCH=mipsel',
+ 'NACL_TARGET_SUBARCH=32',
+ ],
+ }],
['linux2==1', {
'defines': ['LINUX2=1'],
}],
@@ -337,7 +345,18 @@
],
}],
],
- }, { # else: target_arch != "arm"
+ }],
+ ['target_arch=="mipsel"', {
+ # Copied from chromium build/common.gypi
+ 'conditions': [
+ ['mips_arch_variant=="mips32r2"', {
+ 'cflags': ['-mips32r2'],
Mark Seaborn 2013/09/20 23:11:17 Indent by 1 fewer space (i.e. 2 spaces per indenta
petarj 2013/09/23 17:49:24 Done.
+ }, {
+ 'cflags': ['-mips32'],
Mark Seaborn 2013/09/20 23:11:17 Same here
petarj 2013/09/23 17:49:24 Done.
+ }],
+ ],
+ }],
+ ['target_arch=="ia32" or target_arch=="x64"', {
'conditions': [
['target_arch=="x64"', {
'variables': {

Powered by Google App Engine
This is Rietveld 408576698