| 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 (current_cpu == "arm") { | 8 if (current_cpu == "arm") { |
| 9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
| 10 } | 10 } |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 "simd/jfss2int-64.asm", | 66 "simd/jfss2int-64.asm", |
| 67 "simd/jfsseflt-64.asm", | 67 "simd/jfsseflt-64.asm", |
| 68 "simd/jiss2flt-64.asm", | 68 "simd/jiss2flt-64.asm", |
| 69 "simd/jiss2fst-64.asm", | 69 "simd/jiss2fst-64.asm", |
| 70 "simd/jiss2int-64.asm", | 70 "simd/jiss2int-64.asm", |
| 71 "simd/jiss2red-64.asm", | 71 "simd/jiss2red-64.asm", |
| 72 ] | 72 ] |
| 73 defines += [ "__x86_64__" ] | 73 defines += [ "__x86_64__" ] |
| 74 } | 74 } |
| 75 | 75 |
| 76 if (is_win) { | 76 if (is_mac) { |
| 77 defines += [ "MSVC" ] | |
| 78 include_dirs = [ "win" ] | |
| 79 if (current_cpu == "x86") { | |
| 80 defines += [ "WIN32" ] | |
| 81 } else { | |
| 82 defines += [ "WIN64" ] | |
| 83 } | |
| 84 } else if (is_mac) { | |
| 85 defines += [ "MACHO" ] | 77 defines += [ "MACHO" ] |
| 86 include_dirs = [ "mac" ] | 78 include_dirs = [ "mac" ] |
| 87 } else if (is_linux || is_android) { | 79 } else if (is_linux || is_android) { |
| 88 defines += [ "ELF" ] | 80 defines += [ "ELF" ] |
| 89 include_dirs = [ "linux" ] | 81 include_dirs = [ "linux" ] |
| 90 } | 82 } |
| 91 } | 83 } |
| 92 } | 84 } |
| 93 | 85 |
| 94 source_set("simd") { | 86 source_set("simd") { |
| 95 if (current_cpu == "x86") { | 87 if (current_cpu == "x86") { |
| 96 deps = [ | 88 deps = [ |
| 97 ":simd_asm", | 89 ":simd_asm", |
| 98 ] | 90 ] |
| 99 sources = [ | 91 sources = [ |
| 100 "simd/jsimd_i386.c", | 92 "simd/jsimd_i386.c", |
| 101 ] | 93 ] |
| 102 if (is_win) { | |
| 103 cflags = [ "/wd4245" ] | |
| 104 } | |
| 105 } else if (current_cpu == "x64") { | 94 } else if (current_cpu == "x64") { |
| 106 deps = [ | 95 deps = [ |
| 107 ":simd_asm", | 96 ":simd_asm", |
| 108 ] | 97 ] |
| 109 sources = [ | 98 sources = [ |
| 110 "simd/jsimd_x86_64.c", | 99 "simd/jsimd_x86_64.c", |
| 111 ] | 100 ] |
| 112 } else if (current_cpu == "arm" && arm_version >= 7 && | 101 } else if (current_cpu == "arm" && arm_version >= 7 && |
| 113 (arm_use_neon || arm_optionally_use_neon)) { | 102 (arm_use_neon || arm_optionally_use_neon)) { |
| 114 sources = [ | 103 sources = [ |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 if (is_msan || is_linux) { | 191 if (is_msan || is_linux) { |
| 203 sources += [ "jsimd_none.c" ] | 192 sources += [ "jsimd_none.c" ] |
| 204 } else { | 193 } else { |
| 205 deps = [ | 194 deps = [ |
| 206 ":simd", | 195 ":simd", |
| 207 ] | 196 ] |
| 208 } | 197 } |
| 209 | 198 |
| 210 # TODO(GYP): Compile the .asm files with YASM as GYP does. | 199 # TODO(GYP): Compile the .asm files with YASM as GYP does. |
| 211 } | 200 } |
| OLD | NEW |