diff options
author | djordje.pesut <djordje.pesut@imgtec.com> | 2014-06-06 14:09:12 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-06-06 14:09:12 -0700 |
commit | aaf1df632d8d24f797678aebf3332ac67c3de3b5 (patch) | |
tree | 9fbbe4e8e5afb473d97e61d8d17216cea2bd1bd0 /gyp | |
parent | d78a2fac37c1ee68420600542d3c02bff599655f (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
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/common_conditions.gypi | 24 | ||||
-rw-r--r-- | gyp/common_variables.gypi | 2 |
2 files changed, 26 insertions, 0 deletions
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)', |