aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar djordje.pesut <djordje.pesut@imgtec.com>2014-06-06 14:09:12 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-06-06 14:09:12 -0700
commitaaf1df632d8d24f797678aebf3332ac67c3de3b5 (patch)
tree9fbbe4e8e5afb473d97e61d8d17216cea2bd1bd0
parentd78a2fac37c1ee68420600542d3c02bff599655f (diff)
MIPS: modified gypi files to support build
R=teodora.petrovic@gmail.com, djsollen@google.com Author: djordje.pesut@imgtec.com Review URL: https://codereview.chromium.org/304903003
-rw-r--r--AUTHORS1
-rw-r--r--gyp/common_conditions.gypi24
-rw-r--r--gyp/common_variables.gypi2
3 files changed, 27 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
index 84a769e119..96f53cefe6 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -18,6 +18,7 @@ Google Inc. <*@google.com>
Igalia <*@igalia.com>
Intel <*@intel.com>
Jacek Caban <cjacek@gmail.com>
+MIPS <*@imgtec.com>
NVIDIA <*@nvidia.com>
Opera Software ASA <*@opera.com>
Samsung <*@samsung.com>
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi
index cf46ed21d9..0c004e5ca5 100644
--- a/gyp/common_conditions.gypi
+++ b/gyp/common_conditions.gypi
@@ -244,6 +244,30 @@
}],
],
}],
+ [ 'skia_arch_type == "mips"', {
+ 'cflags': [
+ '-EL',
+ ],
+ 'conditions': [
+ [ 'mips_arch_variant == "mips32r2"', {
+ 'cflags': [
+ '-march=mips32r2',
+ ],
+ 'conditions': [
+ [ 'mips_dsp == 1', {
+ 'cflags': [
+ '-mdsp',
+ ],
+ }],
+ [ 'mips_dsp == 2', {
+ 'cflags': [
+ '-mdspr2',
+ ],
+ }],
+ ],
+ }],
+ ],
+ }],
],
},
],
diff --git a/gyp/common_variables.gypi b/gyp/common_variables.gypi
index c8b069ce68..f0c065f79b 100644
--- a/gyp/common_variables.gypi
+++ b/gyp/common_variables.gypi
@@ -189,6 +189,8 @@
'arm_version%': '<(arm_version)',
'arm_neon%': '<(arm_neon)',
'arm_neon_optional%': 0,
+ 'mips_arch_variant%': 'mips32',
+ 'mips_dsp%': 0,
'skia_os%': '<(skia_os)',
'os_posix%': '<(os_posix)',