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

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

Issue 2205553002: gn: Add asserts that libjpeg_turbo is not used on iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 years, 4 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 | « no previous file | third_party/BUILD.gn » ('j') | 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 assert(!is_ios, "This is not used on iOS, don't drag it in unintentionally")
14
13 if (current_cpu == "x86" || current_cpu == "x64") { 15 if (current_cpu == "x86" || current_cpu == "x64") {
14 import("//third_party/yasm/yasm_assemble.gni") 16 import("//third_party/yasm/yasm_assemble.gni")
15 17
16 yasm_assemble("simd_asm") { 18 yasm_assemble("simd_asm") {
17 defines = [] 19 defines = []
18 20
19 if (current_cpu == "x86") { 21 if (current_cpu == "x86") {
20 sources = [ 22 sources = [
21 "simd/jccolor-mmx.asm", 23 "simd/jccolor-mmx.asm",
22 "simd/jccolor-sse2.asm", 24 "simd/jccolor-sse2.asm",
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 # MemorySanitizer doesn't support assembly code, so keep it disabled in 215 # MemorySanitizer doesn't support assembly code, so keep it disabled in
214 # MSan builds for now. 216 # MSan builds for now.
215 if (is_msan) { 217 if (is_msan) {
216 sources += [ "jsimd_none.c" ] 218 sources += [ "jsimd_none.c" ]
217 } else { 219 } else {
218 deps = [ 220 deps = [
219 ":simd", 221 ":simd",
220 ] 222 ]
221 } 223 }
222 } 224 }
OLDNEW
« no previous file with comments | « no previous file | third_party/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698