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

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: Upload again. Created 7 years, 2 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 | « build/build_nexe.py ('k') | build/nacl_core_sdk.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 665e46e7c57ec61da07beb045aacc46b35bd961d..0034a140470524ad7b1f5984143daf8c04dff47d 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -204,6 +204,14 @@
'NACL_TARGET_SUBARCH=32',
],
}],
+ ['target_arch=="mipsel"', {
+ 'defines': [
+ 'NACL_BUILD_ARCH=mips',
+ 'NACL_BUILD_SUBARCH=32',
+ 'NACL_TARGET_ARCH=mips',
+ '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'],
+ }, {
+ 'cflags': ['-mips32'],
+ }],
+ ],
+ }],
+ ['target_arch=="ia32" or target_arch=="x64"', {
'conditions': [
['target_arch=="x64"', {
'variables': {
« no previous file with comments | « build/build_nexe.py ('k') | build/nacl_core_sdk.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698