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

Side by Side Diff: third_party/qcms/BUILD.gn

Issue 1609643003: Disable qcms_tests target for Android or iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add GYP change Created 4 years, 11 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/qcms/qcms.gyp » ('j') | third_party/qcms/qcms.gyp » ('J')
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 config("qcms_config") { 5 config("qcms_config") {
6 include_dirs = [ "src" ] 6 include_dirs = [ "src" ]
7 } 7 }
8 8
9 # Do not build QCMS on Android or iOS. (See http://crbug.com/577155)
10 disable_qcms = is_android || is_ios
11
9 source_set("qcms") { 12 source_set("qcms") {
10 if (is_android || is_ios) { 13 if (disable_qcms) {
11 sources = [ 14 sources = [
12 "src/empty.c", 15 "src/empty.c",
13 ] 16 ]
14 } else { 17 } else {
15 sources = [ 18 sources = [
16 "src/chain.c", 19 "src/chain.c",
17 "src/chain.h", 20 "src/chain.h",
18 "src/iccread.c", 21 "src/iccread.c",
19 "src/matrix.c", 22 "src/matrix.c",
20 "src/matrix.h", 23 "src/matrix.h",
(...skipping 17 matching lines...) Expand all
38 41
39 if (is_win) { 42 if (is_win) {
40 cflags = [ 43 cflags = [
41 "/wd4018", # Signed/unsigned mismatch in comparison. 44 "/wd4018", # Signed/unsigned mismatch in comparison.
42 "/wd4056", # Overflow in floating-point constant arithmetic (INFINITY). 45 "/wd4056", # Overflow in floating-point constant arithmetic (INFINITY).
43 "/wd4756", # Overflow in constant arithmetic (INFINITY). 46 "/wd4756", # Overflow in constant arithmetic (INFINITY).
44 ] 47 ]
45 } 48 }
46 } 49 }
47 50
48 if (current_cpu == "x86" || current_cpu == "x64") { 51 if (!disable_qcms && (current_cpu == "x86" || current_cpu == "x64")) {
49 executable("qcms_tests") { 52 executable("qcms_tests") {
50 defines = [ "SSE2_ENABLE" ] 53 defines = [ "SSE2_ENABLE" ]
51 sources = [ 54 sources = [
52 "src/tests/qcms_test_main.c", 55 "src/tests/qcms_test_main.c",
53 "src/tests/qcms_test_munsell.c", 56 "src/tests/qcms_test_munsell.c",
54 "src/tests/qcms_test_tetra_clut_rgba.c", 57 "src/tests/qcms_test_tetra_clut_rgba.c",
55 ] 58 ]
56 59
57 deps = [ 60 deps = [
58 "//build/config/sanitizers:deps", 61 "//build/config/sanitizers:deps",
59 "//third_party/qcms", 62 "//third_party/qcms",
60 ] 63 ]
61 64
62 configs -= [ "//build/config/compiler:chromium_code" ] 65 configs -= [ "//build/config/compiler:chromium_code" ]
63 configs += [ "//build/config/compiler:no_chromium_code" ] 66 configs += [ "//build/config/compiler:no_chromium_code" ]
64 public_configs = [ ":qcms_config" ] 67 public_configs = [ ":qcms_config" ]
65 } 68 }
66 } 69 }
OLDNEW
« no previous file with comments | « no previous file | third_party/qcms/qcms.gyp » ('j') | third_party/qcms/qcms.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698