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

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

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