Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Unified Diff: gyp/common_conditions.gypi

Issue 304903003: MIPS: modified gypi files to support build (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: MIPS: modified gypi files to support build Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « AUTHORS ('k') | gyp/common_variables.gypi » ('j') | gyp/common_variables.gypi » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/common_conditions.gypi
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi
index 75b89b7bf235a58244b14e660420fb08801645fc..bdb8490eb537ec8db790cbd1347b3ab6171fa0cd 100644
--- a/gyp/common_conditions.gypi
+++ b/gyp/common_conditions.gypi
@@ -244,6 +244,57 @@
}],
],
}],
+ [ 'skia_arch_type == "mips"', {
+ 'cflags': [
+ '-mips32r2',
+ '-EL',
+ ],
+ 'defines': [
+ 'SK_CPU_MIPS',
+ 'SK_CPU_LENDIAN',
+ ],
+ 'conditions': [
+ [ 'mips_dsp == 1', {
+ 'defines': [
+ '__MIPS_HAVE_DSP',
+ ],
+ 'variables': {
+ 'SK_MIPS_DSP_REV%': '1',
+ },
+ 'cflags': [
+ '-mdsp',
+ ],
+ }],
+ [ 'mips_dspr2 == 1', {
+ 'defines': [
+ '__MIPS_HAVE_DSP',
+ '__MIPS_HAVE_DSPR2',
+ ],
+ 'variables': {
+ 'SK_MIPS_DSP_REV%': '2',
+ },
+ 'cflags': [
+ '-mdspr2',
+ ],
+ }],
+ [ 'mips_dsp_optional == 1', {
+ 'defines': [
+ '__MIPS_HAVE_OPTIONAL_DSP_SUPPORT',
+ ],
+ 'variables': {
+ 'SK_MIPS_DSP_REV%': '1',
+ },
+ }],
+ [ 'mips_dspr2_optional == 1', {
+ 'defines': [
+ '__MIPS_HAVE_OPTIONAL_DSP_SUPPORT',
+ ],
+ 'variables': {
+ 'SK_MIPS_DSP_REV%': '2',
+ },
+ }],
+ ],
+ }],
],
},
],
« no previous file with comments | « AUTHORS ('k') | gyp/common_variables.gypi » ('j') | gyp/common_variables.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698