| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 and skia_arch_type not in ["x86", "x86_64", "arm", "mips", \ | 54 and skia_arch_type not in ["x86", "x86_64", "arm", "mips", \ |
| 55 "arm64"])', { | 55 "arm64"])', { |
| 56 'sources': [ '<@(none_sources)' ], | 56 'sources': [ '<@(none_sources)' ], |
| 57 }], | 57 }], |
| 58 | 58 |
| 59 [ 'skia_arch_type == "arm" and arm_version >= 7', { | 59 [ 'skia_arch_type == "arm" and arm_version >= 7', { |
| 60 # The assembly uses the frame pointer register (r7 in Thumb/r11 in | 60 # The assembly uses the frame pointer register (r7 in Thumb/r11 in |
| 61 # ARM), the compiler doesn't like that. | 61 # ARM), the compiler doesn't like that. |
| 62 'cflags!': [ '-fno-omit-frame-pointer', '-mapcs-frame', '-mapcs' ], | 62 'cflags!': [ '-fno-omit-frame-pointer', '-mapcs-frame', '-mapcs' ], |
| 63 'cflags': [ '-fomit-frame-pointer' ], | 63 'cflags': [ '-fomit-frame-pointer' ], |
| 64 'variables': { 'arm_neon_optional%': '<(arm_neon_optional>' }, | |
| 65 'sources': [ '<@(armv7_sources)' ], | 64 'sources': [ '<@(armv7_sources)' ], |
| 66 'conditions': [ | 65 'conditions': [ |
| 67 [ 'arm_neon == 1 or arm_neon_optional == 1', { | 66 [ 'arm_neon == 1', { |
| 68 'dependencies': [ 'opts_neon' ] | 67 'dependencies': [ 'opts_neon' ] |
| 69 }], | 68 }], |
| 70 ], | 69 ], |
| 71 }], | 70 }], |
| 72 | 71 |
| 73 [ 'skia_arch_type == "arm64"', { | 72 [ 'skia_arch_type == "arm64"', { |
| 74 'sources': [ '<@(arm64_sources)' ], | 73 'sources': [ '<@(arm64_sources)' ], |
| 75 }], | 74 }], |
| 76 | 75 |
| 77 [ 'skia_android_framework', { | 76 [ 'skia_android_framework', { |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 ], | 201 ], |
| 203 }], | 202 }], |
| 204 ], | 203 ], |
| 205 'ldflags': [ | 204 'ldflags': [ |
| 206 '-march=armv7-a', | 205 '-march=armv7-a', |
| 207 '-Wl,--fix-cortex-a8', | 206 '-Wl,--fix-cortex-a8', |
| 208 ], | 207 ], |
| 209 }, | 208 }, |
| 210 ], | 209 ], |
| 211 } | 210 } |
| OLD | NEW |