| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # Do not use the targets in this file unless you need a certain libjpeg | 5 # Do not use the targets in this file unless you need a certain libjpeg |
| 6 # implementation. Use the meta target //third_party:jpeg instead. | 6 # implementation. Use the meta target //third_party:jpeg instead. |
| 7 | 7 |
| 8 if (cpu_arch == "arm") { | 8 if (cpu_arch == "arm") { |
| 9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
| 10 } | 10 } |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 } | 106 } |
| 107 | 107 |
| 108 } | 108 } |
| 109 | 109 |
| 110 source_set("simd") { | 110 source_set("simd") { |
| 111 if (cpu_arch == "x86") { | 111 if (cpu_arch == "x86") { |
| 112 deps = [ ":simd_asm" ] | 112 deps = [ ":simd_asm" ] |
| 113 sources = [ | 113 sources = [ |
| 114 "simd/jsimd_i386.c", | 114 "simd/jsimd_i386.c", |
| 115 ] | 115 ] |
| 116 if (is_win) { |
| 117 cflags = [ "/wd4245" ] |
| 118 } |
| 116 } else if (cpu_arch == "x64") { | 119 } else if (cpu_arch == "x64") { |
| 117 deps = [ ":simd_asm" ] | 120 deps = [ ":simd_asm" ] |
| 118 sources = [ | 121 sources = [ |
| 119 "simd/jsimd_x86_64.c", | 122 "simd/jsimd_x86_64.c", |
| 120 ] | 123 ] |
| 121 } else if (cpu_arch == "arm" && arm_version >= 7 && | 124 } else if (cpu_arch == "arm" && arm_version >= 7 && |
| 122 (arm_use_neon || arm_optionally_use_neon)) { | 125 (arm_use_neon || arm_optionally_use_neon)) { |
| 123 sources = [ | 126 sources = [ |
| 124 "simd/jsimd_arm.c", | 127 "simd/jsimd_arm.c", |
| 125 "simd/jsimd_arm_neon.S", | 128 "simd/jsimd_arm_neon.S", |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 # MSan builds for now. | 210 # MSan builds for now. |
| 208 # TODO: Enable on Linux when .asm files are recognized. | 211 # TODO: Enable on Linux when .asm files are recognized. |
| 209 if (is_msan || is_linux) { | 212 if (is_msan || is_linux) { |
| 210 sources += [ "jsimd_none.c" ] | 213 sources += [ "jsimd_none.c" ] |
| 211 } else { | 214 } else { |
| 212 deps = [ ":simd" ] | 215 deps = [ ":simd" ] |
| 213 } | 216 } |
| 214 | 217 |
| 215 # TODO(GYP): Compile the .asm files with YASM as GYP does. | 218 # TODO(GYP): Compile the .asm files with YASM as GYP does. |
| 216 } | 219 } |
| OLD | NEW |