diff options
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | gyp/common_conditions.gypi | 24 | ||||
-rw-r--r-- | gyp/common_variables.gypi | 2 |
3 files changed, 27 insertions, 0 deletions
@@ -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)', |