| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # This gyp file contains the platform-specific optimizations for Skia | 5 # This gyp file contains the platform-specific optimizations for Skia |
| 6 { | 6 { |
| 7 'variables': { | 7 'variables': { |
| 8 'skia_src_path': '../third_party/skia/src', | 8 'skia_src_path': '../third_party/skia/src', |
| 9 'includes': [ '../third_party/skia/gyp/opts.gypi' ], | 9 'includes': [ '../third_party/skia/gyp/opts.gypi' ], |
| 10 'include_dirs': [ | 10 'include_dirs': [ |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 [ 'target_arch != "arm" and target_arch != "mipsel" and \ | 57 [ 'target_arch != "arm" and target_arch != "mipsel" and \ |
| 58 target_arch != "arm64" and target_arch != "mips64el"', { | 58 target_arch != "arm64" and target_arch != "mips64el"', { |
| 59 'sources': [ '<@(sse2_sources)' ], | 59 'sources': [ '<@(sse2_sources)' ], |
| 60 'dependencies': [ | 60 'dependencies': [ |
| 61 'skia_opts_ssse3', | 61 'skia_opts_ssse3', |
| 62 'skia_opts_sse41', | 62 'skia_opts_sse41', |
| 63 ], | 63 ], |
| 64 }], | 64 }], |
| 65 [ 'target_arch == "arm"', { | 65 [ 'target_arch == "arm"', { |
| 66 'conditions': [ | 66 'conditions': [ |
| 67 [ 'arm_version >= 7', { |
| 68 'sources': [ '<@(armv7_sources)' ], |
| 69 }, { # arm_version < 7 |
| 70 'sources': [ '<@(none_sources)' ], |
| 71 }], |
| 67 [ 'arm_version >= 7 and (arm_neon == 1 or arm_neon_optional == 1)',
{ | 72 [ 'arm_version >= 7 and (arm_neon == 1 or arm_neon_optional == 1)',
{ |
| 68 'dependencies': [ | 73 'dependencies': [ |
| 69 'skia_opts_neon', | 74 'skia_opts_neon', |
| 70 ] | 75 ] |
| 71 }], | 76 }], |
| 72 ], | 77 ], |
| 73 # The assembly uses the frame pointer register (r7 in Thumb/r11 in | 78 # The assembly uses the frame pointer register (r7 in Thumb/r11 in |
| 74 # ARM), the compiler doesn't like that. Explicitly remove the | 79 # ARM), the compiler doesn't like that. Explicitly remove the |
| 75 # -fno-omit-frame-pointer flag for Android, as that gets added to all | 80 # -fno-omit-frame-pointer flag for Android, as that gets added to all |
| 76 # targets via common.gypi. | 81 # targets via common.gypi. |
| 77 'cflags!': [ | 82 'cflags!': [ |
| 78 '-fno-omit-frame-pointer', | 83 '-fno-omit-frame-pointer', |
| 79 '-marm', | 84 '-marm', |
| 80 '-mapcs-frame', | 85 '-mapcs-frame', |
| 81 ], | 86 ], |
| 82 'cflags': [ | 87 'cflags': [ |
| 83 '-fomit-frame-pointer', | 88 '-fomit-frame-pointer', |
| 84 ], | 89 ], |
| 85 }], | 90 }], |
| 86 [ 'target_arch == "arm" and arm_version < 7', { | 91 [ 'target_arch == "mipsel"',{ |
| 87 'sources': [ '<@(none_sources)' ], | 92 'cflags': [ '-fomit-frame-pointer' ], |
| 93 'conditions': [ |
| 94 [ 'mips_dsp_rev >= 1', { |
| 95 'sources': [ '<@(mips_dsp_sources)' ], |
| 96 }, { # mips_dsp_rev == 0 |
| 97 'sources': [ '<@(none_sources)' ], |
| 98 }], |
| 99 ], |
| 88 }], | 100 }], |
| 89 [ 'target_arch == "arm" and arm_version >= 7', { | 101 [ 'target_arch == "mips64el"',{ |
| 90 'sources': [ '<@(armv7_sources)' ], | |
| 91 }], | |
| 92 [ 'target_arch == "mipsel" or target_arch == "mips64el"',{ | |
| 93 'cflags': [ '-fomit-frame-pointer' ], | 102 'cflags': [ '-fomit-frame-pointer' ], |
| 94 'sources': [ '<@(none_sources)' ], | 103 'sources': [ '<@(none_sources)' ], |
| 95 }], | 104 }], |
| 96 [ 'target_arch == "arm64"', { | 105 [ 'target_arch == "arm64"', { |
| 97 'sources': [ '<@(arm64_sources)' ], | 106 'sources': [ '<@(arm64_sources)' ], |
| 98 }], | 107 }], |
| 99 ], | 108 ], |
| 100 }, | 109 }, |
| 101 # For the same lame reasons as what is done for skia_opts, we have to | 110 # For the same lame reasons as what is done for skia_opts, we have to |
| 102 # create another target specifically for SSSE3 code as we would not want | 111 # create another target specifically for SSSE3 code as we would not want |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 'ldflags': [ | 220 'ldflags': [ |
| 212 '-march=armv7-a', | 221 '-march=armv7-a', |
| 213 '-Wl,--fix-cortex-a8', | 222 '-Wl,--fix-cortex-a8', |
| 214 ], | 223 ], |
| 215 'sources': [ '<@(neon_sources)' ], | 224 'sources': [ '<@(neon_sources)' ], |
| 216 }, | 225 }, |
| 217 ], | 226 ], |
| 218 }], | 227 }], |
| 219 ], | 228 ], |
| 220 } | 229 } |
| OLD | NEW |