| 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 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
| 9 if (current_cpu == "arm") { | 9 if (current_cpu == "arm") { |
| 10 import("//build/config/arm.gni") | 10 import("//build/config/arm.gni") |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 } else if (is_mac || is_ios) { | 93 } else if (is_mac || is_ios) { |
| 94 defines += [ "MACHO" ] | 94 defines += [ "MACHO" ] |
| 95 include_dirs = [ "mac" ] | 95 include_dirs = [ "mac" ] |
| 96 } else if (is_linux || is_android) { | 96 } else if (is_linux || is_android) { |
| 97 defines += [ "ELF" ] | 97 defines += [ "ELF" ] |
| 98 include_dirs = [ "linux" ] | 98 include_dirs = [ "linux" ] |
| 99 } | 99 } |
| 100 } | 100 } |
| 101 } | 101 } |
| 102 | 102 |
| 103 source_set("simd") { | 103 static_library("simd") { |
| 104 if (current_cpu == "x86") { | 104 if (current_cpu == "x86") { |
| 105 deps = [ | 105 deps = [ |
| 106 ":simd_asm", | 106 ":simd_asm", |
| 107 ] | 107 ] |
| 108 sources = [ | 108 sources = [ |
| 109 "simd/jsimd_i386.c", | 109 "simd/jsimd_i386.c", |
| 110 ] | 110 ] |
| 111 } else if (current_cpu == "x64") { | 111 } else if (current_cpu == "x64") { |
| 112 deps = [ | 112 deps = [ |
| 113 ":simd_asm", | 113 ":simd_asm", |
| (...skipping 20 matching lines...) Expand all Loading... |
| 134 | 134 |
| 135 if (is_win) { | 135 if (is_win) { |
| 136 cflags = [ "/wd4245" ] | 136 cflags = [ "/wd4245" ] |
| 137 } | 137 } |
| 138 } | 138 } |
| 139 | 139 |
| 140 config("libjpeg_config") { | 140 config("libjpeg_config") { |
| 141 include_dirs = [ "." ] | 141 include_dirs = [ "." ] |
| 142 } | 142 } |
| 143 | 143 |
| 144 source_set("libjpeg") { | 144 static_library("libjpeg") { |
| 145 sources = [ | 145 sources = [ |
| 146 "jcapimin.c", | 146 "jcapimin.c", |
| 147 "jcapistd.c", | 147 "jcapistd.c", |
| 148 "jccoefct.c", | 148 "jccoefct.c", |
| 149 "jccolor.c", | 149 "jccolor.c", |
| 150 "jcdctmgr.c", | 150 "jcdctmgr.c", |
| 151 "jchuff.c", | 151 "jchuff.c", |
| 152 "jchuff.h", | 152 "jchuff.h", |
| 153 "jcinit.c", | 153 "jcinit.c", |
| 154 "jcmainct.c", | 154 "jcmainct.c", |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 # MemorySanitizer doesn't support assembly code, so keep it disabled in | 213 # MemorySanitizer doesn't support assembly code, so keep it disabled in |
| 214 # MSan builds for now. | 214 # MSan builds for now. |
| 215 if (is_msan) { | 215 if (is_msan) { |
| 216 sources += [ "jsimd_none.c" ] | 216 sources += [ "jsimd_none.c" ] |
| 217 } else { | 217 } else { |
| 218 deps = [ | 218 deps = [ |
| 219 ":simd", | 219 ":simd", |
| 220 ] | 220 ] |
| 221 } | 221 } |
| 222 } | 222 } |
| OLD | NEW |