blob: fc007b3eee268a62a2922b5abdfb91698cec75ff [file] [log] [blame]
msarett0e5b2492016-05-26 11:05:37 -07001# Copyright (c) 2012 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.
4
5# This build file has been adapted for use in Skia. The contents of third_party/qcms
6# are copied directly from Chromium.
7{
8 'variables': {
9 'skia_warnings_as_errors': 0,
10 },
11 'targets': [
12 {
13 'target_name': 'qcms',
14 'type': 'static_library',
15
16 # Warning (sign-conversion) fixed upstream by large refactoring. Can be
17 # removed on next roll.
18 'msvs_disabled_warnings': [ 4018 ],
19
20 'direct_dependent_settings': {
21 'include_dirs': [
msarett9876ac52016-06-01 14:47:18 -070022 '../third_party/qcms/src/',
msarett0e5b2492016-05-26 11:05:37 -070023 ],
24 },
25
26 'sources': [
27 '../third_party/qcms/src/chain.c',
28 '../third_party/qcms/src/chain.h',
29 '../third_party/qcms/src/iccread.c',
30 '../third_party/qcms/src/matrix.c',
31 '../third_party/qcms/src/matrix.h',
32 '../third_party/qcms/src/qcms.h',
33 '../third_party/qcms/src/qcmsint.h',
34 '../third_party/qcms/src/qcmstypes.h',
35 '../third_party/qcms/src/qcms_util.c',
36 '../third_party/qcms/src/transform.c',
37 '../third_party/qcms/src/transform_util.c',
38 '../third_party/qcms/src/transform_util.h',
39 ],
40 'conditions': [
41 ['"x86" in skia_arch_type', {
42 'defines': [
43 'SSE2_ENABLE',
44 ],
45 'sources': [
46 '../third_party/qcms/src/transform-sse2.c',
47 ],
48 }],
49 ['skia_os == "win"', {
50 'msvs_disabled_warnings': [
51 4056, # overflow in floating-point constant arithmetic (INFINITY)
52 4756, # overflow in constant arithmetic (INFINITY)
53 ],
54 }],
55 ],
56
57 # Disable warnings
58 'cflags': [
59 '-w',
60 ],
61 'xcode_settings': {
62 'WARNING_CFLAGS': [
63 '-w'
64 ],
65 },
66 'msvs_settings': {
67 'VCCLCompilerTool': {
68 'WarningLevel': '0',
69 },
70 },
71
72 },
73 ],
74}