| OLD | NEW |
| 1 # Copyright 2015 Google Inc. | 1 # Copyright 2015 Google Inc. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 # Gyp file for building opts target. | 5 # Gyp file for building opts target. |
| 6 { | 6 { |
| 7 # Source lists live in opts.gypi. This makes it easier to maintain our Chrome
GYP/GN setup. | 7 # Source lists live in opts.gypi. This makes it easier to maintain our Chrome
GYP/GN setup. |
| 8 # (To be honest, I'm not sure why we need to include common.gypi. I thought i
t was automatic.) | 8 # (To be honest, I'm not sure why we need to include common.gypi. I thought i
t was automatic.) |
| 9 'variables': { | 9 'variables': { |
| 10 'includes': [ 'common.gypi', 'opts.gypi' ], | 10 'includes': [ 'common.gypi', 'opts.gypi' ], |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 'conditions': [ | 41 'conditions': [ |
| 42 [ '(mips_arch_variant == "mips32r2") and (mips_dsp == 1 or mips_dsp
== 2)', { | 42 [ '(mips_arch_variant == "mips32r2") and (mips_dsp == 1 or mips_dsp
== 2)', { |
| 43 'sources': [ '<@(mips_dsp_sources)' ], | 43 'sources': [ '<@(mips_dsp_sources)' ], |
| 44 },{ | 44 },{ |
| 45 'sources': [ '<@(none_sources)' ], | 45 'sources': [ '<@(none_sources)' ], |
| 46 }], | 46 }], |
| 47 ] | 47 ] |
| 48 }], | 48 }], |
| 49 | 49 |
| 50 [ '(skia_arch_type == "arm" and arm_version < 7) \ | 50 [ '(skia_arch_type == "arm" and arm_version < 7) \ |
| 51 or (skia_os == "ios") \ | |
| 52 or (skia_os == "android" \ | 51 or (skia_os == "android" \ |
| 53 and skia_arch_type not in ["x86", "x86_64", "arm", "mips", \ | 52 and skia_arch_type not in ["x86", "x86_64", "arm", "mips", "arm6
4"])', { |
| 54 "arm64"])', { | |
| 55 'sources': [ '<@(none_sources)' ], | 53 'sources': [ '<@(none_sources)' ], |
| 56 }], | 54 }], |
| 57 | 55 |
| 58 [ 'skia_arch_type == "arm" and arm_version >= 7', { | 56 [ 'skia_arch_type == "arm" and arm_version >= 7', { |
| 59 # The assembly uses the frame pointer register (r7 in Thumb/r11 in | 57 # The assembly uses the frame pointer register (r7 in Thumb/r11 in |
| 60 # ARM), the compiler doesn't like that. | 58 # ARM), the compiler doesn't like that. |
| 61 'cflags!': [ '-fno-omit-frame-pointer', '-mapcs-frame', '-mapcs' ], | 59 'cflags!': [ '-fno-omit-frame-pointer', '-mapcs-frame', '-mapcs' ], |
| 62 'cflags': [ '-fomit-frame-pointer' ], | 60 'cflags': [ '-fomit-frame-pointer' ], |
| 63 'variables': { 'arm_neon_optional%': '<(arm_neon_optional>' }, | 61 'variables': { 'arm_neon_optional%': '<(arm_neon_optional>' }, |
| 64 'sources': [ '<@(armv7_sources)' ], | 62 'sources': [ '<@(armv7_sources)' ], |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 ], | 145 ], |
| 148 }], | 146 }], |
| 149 ], | 147 ], |
| 150 'ldflags': [ | 148 'ldflags': [ |
| 151 '-march=armv7-a', | 149 '-march=armv7-a', |
| 152 '-Wl,--fix-cortex-a8', | 150 '-Wl,--fix-cortex-a8', |
| 153 ], | 151 ], |
| 154 }, | 152 }, |
| 155 ], | 153 ], |
| 156 } | 154 } |
| OLD | NEW |