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

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

Issue 2149483002: Reduce chrome.exe .text size by 50 KB with static_library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweaking comments Created 4 years, 5 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
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")
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698