From aaf1df632d8d24f797678aebf3332ac67c3de3b5 Mon Sep 17 00:00:00 2001 From: "djordje.pesut" Date: Fri, 6 Jun 2014 14:09:12 -0700 Subject: [PATCH] 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 --- AUTHORS | 1 + gyp/common_conditions.gypi | 24 ++++++++++++++++++++++++ gyp/common_variables.gypi | 2 ++ 3 files changed, 27 insertions(+) diff --git a/AUTHORS b/AUTHORS index 84a769e..96f53ce 100644 --- a/AUTHORS +++ b/AUTHORS @@ -18,6 +18,7 @@ Google Inc. <*@google.com> Igalia <*@igalia.com> Intel <*@intel.com> Jacek Caban +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 cf46ed2..0c004e5 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 c8b069c..f0c065f 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)', -- 2.7.4