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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 "simd/jidctint-sse2.asm", | 46 "simd/jidctint-sse2.asm", |
47 "simd/jidctred-mmx.asm", | 47 "simd/jidctred-mmx.asm", |
48 "simd/jidctred-sse2.asm", | 48 "simd/jidctred-sse2.asm", |
49 "simd/jquant-3dn.asm", | 49 "simd/jquant-3dn.asm", |
50 "simd/jquant-mmx.asm", | 50 "simd/jquant-mmx.asm", |
51 "simd/jquant-sse.asm", | 51 "simd/jquant-sse.asm", |
52 "simd/jquantf-sse2.asm", | 52 "simd/jquantf-sse2.asm", |
53 "simd/jquanti-sse2.asm", | 53 "simd/jquanti-sse2.asm", |
54 "simd/jsimdcpu.asm", | 54 "simd/jsimdcpu.asm", |
55 ] | 55 ] |
56 defines += [ "__x86__" ] | 56 defines += [ |
| 57 "__x86__", |
| 58 "PIC", |
| 59 ] |
57 } else if (current_cpu == "x64") { | 60 } else if (current_cpu == "x64") { |
58 sources = [ | 61 sources = [ |
59 "simd/jccolor-sse2-64.asm", | 62 "simd/jccolor-sse2-64.asm", |
60 "simd/jcgray-sse2-64.asm", | 63 "simd/jcgray-sse2-64.asm", |
61 "simd/jchuff-sse2-64.asm", | 64 "simd/jchuff-sse2-64.asm", |
62 "simd/jcsample-sse2-64.asm", | 65 "simd/jcsample-sse2-64.asm", |
63 "simd/jdcolor-sse2-64.asm", | 66 "simd/jdcolor-sse2-64.asm", |
64 "simd/jdmerge-sse2-64.asm", | 67 "simd/jdmerge-sse2-64.asm", |
65 "simd/jdsample-sse2-64.asm", | 68 "simd/jdsample-sse2-64.asm", |
66 "simd/jfdctflt-sse-64.asm", | 69 "simd/jfdctflt-sse-64.asm", |
67 "simd/jfdctfst-sse2-64.asm", | 70 "simd/jfdctfst-sse2-64.asm", |
68 "simd/jfdctint-sse2-64.asm", | 71 "simd/jfdctint-sse2-64.asm", |
69 "simd/jidctflt-sse2-64.asm", | 72 "simd/jidctflt-sse2-64.asm", |
70 "simd/jidctfst-sse2-64.asm", | 73 "simd/jidctfst-sse2-64.asm", |
71 "simd/jidctint-sse2-64.asm", | 74 "simd/jidctint-sse2-64.asm", |
72 "simd/jidctred-sse2-64.asm", | 75 "simd/jidctred-sse2-64.asm", |
73 "simd/jquantf-sse2-64.asm", | 76 "simd/jquantf-sse2-64.asm", |
74 "simd/jquanti-sse2-64.asm", | 77 "simd/jquanti-sse2-64.asm", |
75 ] | 78 ] |
76 defines += [ "__x86_64__" ] | 79 defines += [ |
| 80 "__x86_64__", |
| 81 "PIC", |
| 82 ] |
77 } | 83 } |
78 | 84 |
79 if (is_win) { | 85 if (is_win) { |
80 defines += [ "MSVC" ] | 86 defines += [ "MSVC" ] |
81 include_dirs = [ "win" ] | 87 include_dirs = [ "win" ] |
82 if (current_cpu == "x86") { | 88 if (current_cpu == "x86") { |
83 defines += [ "WIN32" ] | 89 defines += [ "WIN32" ] |
84 } else { | 90 } else { |
85 defines += [ "WIN64" ] | 91 defines += [ "WIN64" ] |
86 } | 92 } |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 # MemorySanitizer doesn't support assembly code, so keep it disabled in | 214 # MemorySanitizer doesn't support assembly code, so keep it disabled in |
209 # MSan builds for now. | 215 # MSan builds for now. |
210 if (is_msan) { | 216 if (is_msan) { |
211 sources += [ "jsimd_none.c" ] | 217 sources += [ "jsimd_none.c" ] |
212 } else { | 218 } else { |
213 deps = [ | 219 deps = [ |
214 ":simd", | 220 ":simd", |
215 ] | 221 ] |
216 } | 222 } |
217 } | 223 } |
OLD | NEW |