| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 defines += [ | 96 defines += [ |
| 97 "MACHO", | 97 "MACHO", |
| 98 ] | 98 ] |
| 99 include_dirs = [ "mac" ] | 99 include_dirs = [ "mac" ] |
| 100 } else if (is_linux) { | 100 } else if (is_linux) { |
| 101 defines += [ | 101 defines += [ |
| 102 "ELF", | 102 "ELF", |
| 103 ] | 103 ] |
| 104 include_dirs = [ "linux" ] | 104 include_dirs = [ "linux" ] |
| 105 } | 105 } |
| 106 | |
| 107 } | 106 } |
| 108 | 107 |
| 109 } | 108 } |
| 110 | 109 |
| 111 source_set("simd") { | 110 source_set("simd") { |
| 112 if (cpu_arch == "x86") { | 111 if (cpu_arch == "x86") { |
| 113 deps = [ ":simd_asm" ] | 112 deps = [ ":simd_asm" ] |
| 114 sources = [ | 113 sources = [ |
| 115 "simd/jsimd_i386.c", | 114 "simd/jsimd_i386.c", |
| 116 ] | 115 ] |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 # MSan builds for now. | 207 # MSan builds for now. |
| 209 # TODO: Enable on Linux when .asm files are recognized. | 208 # TODO: Enable on Linux when .asm files are recognized. |
| 210 if (is_msan || is_linux) { | 209 if (is_msan || is_linux) { |
| 211 sources += [ "jsimd_none.c" ] | 210 sources += [ "jsimd_none.c" ] |
| 212 } else { | 211 } else { |
| 213 deps = [ ":simd" ] | 212 deps = [ ":simd" ] |
| 214 } | 213 } |
| 215 | 214 |
| 216 # TODO(GYP): Compile the .asm files with YASM as GYP does. | 215 # TODO(GYP): Compile the .asm files with YASM as GYP does. |
| 217 } | 216 } |
| OLD | NEW |