MIPS: modified gypi files to support build
authordjordje.pesut <djordje.pesut@imgtec.com>
Fri, 6 Jun 2014 21:09:12 +0000 (14:09 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 6 Jun 2014 21:09:12 +0000 (14:09 -0700)
R=teodora.petrovic@gmail.com, djsollen@google.com

Author: djordje.pesut@imgtec.com

Review URL: https://codereview.chromium.org/304903003

AUTHORS
gyp/common_conditions.gypi
gyp/common_variables.gypi

diff --git a/AUTHORS b/AUTHORS
index 84a769e..96f53ce 100644 (file)
--- 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>
index cf46ed2..0c004e5 100644 (file)
               }],
             ],
           }],
+          [ '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',
+                    ],
+                  }],
+                ],
+              }],
+            ],
+          }],
         ],
       },
     ],
index c8b069c..f0c065f 100644 (file)
     '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)',