OLD | NEW |
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) | 9 # Do not build QCMS on Android or iOS. (See http://crbug.com/577155) |
10 disable_qcms = is_android || is_ios | 10 disable_qcms = is_android || is_ios |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 if (is_win) { | 43 if (is_win) { |
44 cflags = [ | 44 cflags = [ |
45 "/wd4018", # Signed/unsigned mismatch in comparison. | 45 "/wd4018", # Signed/unsigned mismatch in comparison. |
46 "/wd4056", # Overflow in floating-point constant arithmetic (INFINITY). | 46 "/wd4056", # Overflow in floating-point constant arithmetic (INFINITY). |
47 "/wd4756", # Overflow in constant arithmetic (INFINITY). | 47 "/wd4756", # Overflow in constant arithmetic (INFINITY). |
48 ] | 48 ] |
49 } | 49 } |
50 } | 50 } |
51 | 51 |
52 if (!disable_qcms && (current_cpu == "x86" || current_cpu == "x64")) { | 52 if (!disable_qcms) { |
53 executable("qcms_tests") { | 53 executable("qcms_tests") { |
54 defines = [ "SSE2_ENABLE" ] | 54 if (current_cpu == "x86" || current_cpu == "x64") { |
| 55 defines = [ "SSE2_ENABLE" ] |
| 56 } |
55 sources = [ | 57 sources = [ |
56 "src/tests/qcms_test_internal_srgb.c", | 58 "src/tests/qcms_test_internal_srgb.c", |
57 "src/tests/qcms_test_main.c", | 59 "src/tests/qcms_test_main.c", |
58 "src/tests/qcms_test_munsell.c", | 60 "src/tests/qcms_test_munsell.c", |
59 "src/tests/qcms_test_ntsc_gamut.c", | 61 "src/tests/qcms_test_ntsc_gamut.c", |
60 "src/tests/qcms_test_tetra_clut_rgba.c", | 62 "src/tests/qcms_test_tetra_clut_rgba.c", |
61 ] | 63 ] |
62 | 64 |
63 deps = [ | 65 deps = [ |
64 "//build/config/sanitizers:deps", | 66 "//build/config/sanitizers:deps", |
65 "//third_party/qcms", | 67 "//third_party/qcms", |
66 ] | 68 ] |
67 | 69 |
68 configs -= [ "//build/config/compiler:chromium_code" ] | 70 configs -= [ "//build/config/compiler:chromium_code" ] |
69 configs += [ "//build/config/compiler:no_chromium_code" ] | 71 configs += [ "//build/config/compiler:no_chromium_code" ] |
70 public_configs = [ ":qcms_config" ] | 72 public_configs = [ ":qcms_config" ] |
71 } | 73 } |
72 } | 74 } |
OLD | NEW |