Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(855)

Side by Side Diff: build/secondary/third_party/libjpeg_turbo/BUILD.gn

Issue 1952363002: Revert of Roll libjpeg-turbo to 1.4.90 and update gn file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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")
11 } 11 }
12 12
13 if (current_cpu == "x86" || current_cpu == "x64") { 13 if (current_cpu == "x86" || current_cpu == "x64") {
14 import("//third_party/yasm/yasm_assemble.gni") 14 import("//third_party/yasm/yasm_assemble.gni")
15 15
16 yasm_assemble("simd_asm") { 16 yasm_assemble("simd_asm") {
17 defines = [] 17 defines = []
18 18
19 if (current_cpu == "x86") { 19 if (current_cpu == "x86") {
20 sources = [ 20 sources = [
21 "simd/jccolor-mmx.asm", 21 "simd/jccolmmx.asm",
22 "simd/jccolor-sse2.asm", 22 "simd/jccolss2.asm",
23 "simd/jcgray-mmx.asm", 23 "simd/jcgrammx.asm",
24 "simd/jcgray-sse2.asm", 24 "simd/jcgrass2.asm",
25 "simd/jchuff-sse2.asm", 25 "simd/jcqnt3dn.asm",
26 "simd/jcsample-mmx.asm", 26 "simd/jcqntmmx.asm",
27 "simd/jcsample-sse2.asm", 27 "simd/jcqnts2f.asm",
28 "simd/jdcolor-mmx.asm", 28 "simd/jcqnts2i.asm",
29 "simd/jdcolor-sse2.asm", 29 "simd/jcqntsse.asm",
30 "simd/jdmerge-mmx.asm", 30 "simd/jcsammmx.asm",
31 "simd/jdmerge-sse2.asm", 31 "simd/jcsamss2.asm",
32 "simd/jdsample-mmx.asm", 32 "simd/jdcolmmx.asm",
33 "simd/jdsample-sse2.asm", 33 "simd/jdcolss2.asm",
34 "simd/jfdctflt-3dn.asm", 34 "simd/jdmermmx.asm",
35 "simd/jfdctflt-sse.asm", 35 "simd/jdmerss2.asm",
36 "simd/jfdctfst-mmx.asm", 36 "simd/jdsammmx.asm",
37 "simd/jfdctfst-sse2.asm", 37 "simd/jdsamss2.asm",
38 "simd/jfdctint-mmx.asm", 38 "simd/jf3dnflt.asm",
39 "simd/jfdctint-sse2.asm", 39 "simd/jfmmxfst.asm",
40 "simd/jidctflt-3dn.asm", 40 "simd/jfmmxint.asm",
41 "simd/jidctflt-sse.asm", 41 "simd/jfss2fst.asm",
42 "simd/jidctflt-sse2.asm", 42 "simd/jfss2int.asm",
43 "simd/jidctfst-mmx.asm", 43 "simd/jfsseflt.asm",
44 "simd/jidctfst-sse2.asm", 44 "simd/ji3dnflt.asm",
45 "simd/jidctint-mmx.asm", 45 "simd/jimmxfst.asm",
46 "simd/jidctint-sse2.asm", 46 "simd/jimmxint.asm",
47 "simd/jidctred-mmx.asm", 47 "simd/jimmxred.asm",
48 "simd/jidctred-sse2.asm", 48 "simd/jiss2flt.asm",
49 "simd/jquant-3dn.asm", 49 "simd/jiss2fst.asm",
50 "simd/jquant-mmx.asm", 50 "simd/jiss2int.asm",
51 "simd/jquant-sse.asm", 51 "simd/jiss2red.asm",
52 "simd/jquantf-sse2.asm", 52 "simd/jisseflt.asm",
53 "simd/jquanti-sse2.asm",
54 "simd/jsimdcpu.asm", 53 "simd/jsimdcpu.asm",
55 ] 54 ]
56 defines += [ "__x86__" ] 55 defines += [ "__x86__" ]
57 } else if (current_cpu == "x64") { 56 } else if (current_cpu == "x64") {
58 sources = [ 57 sources = [
59 "simd/jccolor-sse2-64.asm", 58 "simd/jccolss2-64.asm",
60 "simd/jcgray-sse2-64.asm", 59 "simd/jcgrass2-64.asm",
61 "simd/jchuff-sse2-64.asm", 60 "simd/jcqnts2f-64.asm",
62 "simd/jcsample-sse2-64.asm", 61 "simd/jcqnts2i-64.asm",
63 "simd/jdcolor-sse2-64.asm", 62 "simd/jcsamss2-64.asm",
64 "simd/jdmerge-sse2-64.asm", 63 "simd/jdcolss2-64.asm",
65 "simd/jdsample-sse2-64.asm", 64 "simd/jdmerss2-64.asm",
66 "simd/jfdctflt-sse-64.asm", 65 "simd/jdsamss2-64.asm",
67 "simd/jfdctfst-sse2-64.asm", 66 "simd/jfss2fst-64.asm",
68 "simd/jfdctint-sse2-64.asm", 67 "simd/jfss2int-64.asm",
69 "simd/jidctflt-sse2-64.asm", 68 "simd/jfsseflt-64.asm",
70 "simd/jidctfst-sse2-64.asm", 69 "simd/jiss2flt-64.asm",
71 "simd/jidctint-sse2-64.asm", 70 "simd/jiss2fst-64.asm",
72 "simd/jidctred-sse2-64.asm", 71 "simd/jiss2int-64.asm",
73 "simd/jquantf-sse2-64.asm", 72 "simd/jiss2red-64.asm",
74 "simd/jquanti-sse2-64.asm",
75 ] 73 ]
76 defines += [ "__x86_64__" ] 74 defines += [ "__x86_64__" ]
77 } 75 }
78 76
79 if (is_win) { 77 if (is_win) {
80 defines += [ "MSVC" ] 78 defines += [ "MSVC" ]
81 include_dirs = [ "win" ] 79 include_dirs = [ "win" ]
82 if (current_cpu == "x86") { 80 if (current_cpu == "x86") {
83 defines += [ "WIN32" ] 81 defines += [ "WIN32" ]
84 } else { 82 } else {
(...skipping 10 matching lines...) Expand all
95 } 93 }
96 94
97 source_set("simd") { 95 source_set("simd") {
98 if (current_cpu == "x86") { 96 if (current_cpu == "x86") {
99 deps = [ 97 deps = [
100 ":simd_asm", 98 ":simd_asm",
101 ] 99 ]
102 sources = [ 100 sources = [
103 "simd/jsimd_i386.c", 101 "simd/jsimd_i386.c",
104 ] 102 ]
103 if (is_win) {
104 cflags = [ "/wd4245" ]
105 }
105 } else if (current_cpu == "x64") { 106 } else if (current_cpu == "x64") {
106 deps = [ 107 deps = [
107 ":simd_asm", 108 ":simd_asm",
108 ] 109 ]
109 sources = [ 110 sources = [
110 "simd/jsimd_x86_64.c", 111 "simd/jsimd_x86_64.c",
111 ] 112 ]
112 } else if (current_cpu == "arm" && arm_version >= 7 && 113 } else if (current_cpu == "arm" && arm_version >= 7 &&
113 (arm_use_neon || arm_optionally_use_neon)) { 114 (arm_use_neon || arm_optionally_use_neon)) {
114 sources = [ 115 sources = [
115 "simd/jsimd_arm.c", 116 "simd/jsimd_arm.c",
116 "simd/jsimd_arm_neon.S", 117 "simd/jsimd_arm_neon.S",
117 ] 118 ]
118 } else if (current_cpu == "arm64") { 119 } else if (current_cpu == "arm64") {
119 sources = [ 120 sources = [
120 "simd/jsimd_arm64.c", 121 "simd/jsimd_arm64.c",
121 "simd/jsimd_arm64_neon.S", 122 "simd/jsimd_arm64_neon.S",
122 ] 123 ]
123 } else { 124 } else {
124 sources = [ 125 sources = [
125 "jsimd_none.c", 126 "jsimd_none.c",
126 ] 127 ]
127 } 128 }
128
129 if (is_win) {
130 cflags = [ "/wd4245" ]
131 }
132 } 129 }
133 130
134 config("libjpeg_config") { 131 config("libjpeg_config") {
135 include_dirs = [ "." ] 132 include_dirs = [ "." ]
136 } 133 }
137 134
138 source_set("libjpeg") { 135 source_set("libjpeg") {
139 sources = [ 136 sources = [
140 "jcapimin.c", 137 "jcapimin.c",
141 "jcapistd.c", 138 "jcapistd.c",
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 # MemorySanitizer doesn't support assembly code, so keep it disabled in 205 # MemorySanitizer doesn't support assembly code, so keep it disabled in
209 # MSan builds for now. 206 # MSan builds for now.
210 if (is_msan) { 207 if (is_msan) {
211 sources += [ "jsimd_none.c" ] 208 sources += [ "jsimd_none.c" ]
212 } else { 209 } else {
213 deps = [ 210 deps = [
214 ":simd", 211 ":simd",
215 ] 212 ]
216 } 213 }
217 } 214 }
OLDNEW
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698