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
3 # found in the LICENSE file.
5 config("qcms_config") {
6 include_dirs = [ "src" ]
20 "src/transform_util.c",
21 "src/transform_util.h",
24 configs -= [ "//build/config/compiler:chromium_code" ]
25 configs += [ "//build/config/compiler:no_chromium_code" ]
26 public_configs = [ ":qcms_config" ]
28 if (current_cpu == "x86" || current_cpu == "x64") {
29 defines = [ "SSE2_ENABLE" ]
30 sources += [ "src/transform-sse2.c" ]
35 "/wd4018", # Signed/unsigned mismatch in comparison.
36 "/wd4056", # Overflow in floating-point constant arithmetic (INFINITY).
37 "/wd4756", # Overflow in constant arithmetic (INFINITY).
42 if (current_cpu == "x86" || current_cpu == "x64") {
43 executable("qcms_test") {
44 defines = [ "SSE2_ENABLE" ]
46 "src/tests/qcms_test_tetra_clut_rgba.c",
53 configs -= [ "//build/config/compiler:chromium_code" ]
54 configs += [ "//build/config/compiler:no_chromium_code" ]
55 public_configs = [ ":qcms_config" ]