OLD | NEW |
| (Empty) |
1 # 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 { | |
6 'variables': { | |
7 'disable_qcms%': 0, | |
8 }, | |
9 'targets': [ | |
10 { | |
11 'target_name': 'qcms', | |
12 'product_name': 'qcms', | |
13 'type': 'static_library', | |
14 | |
15 # Warning (sign-conversion) fixed upstream by large refactoring. Can be | |
16 # removed on next roll. | |
17 'msvs_disabled_warnings': [ 4018 ], | |
18 | |
19 'direct_dependent_settings': { | |
20 'include_dirs': [ | |
21 './src', | |
22 ], | |
23 }, | |
24 | |
25 'conditions': [ | |
26 ['disable_qcms == 1', { | |
27 'sources': [ | |
28 'src/empty.c', | |
29 ], | |
30 }, { # disable_qcms == 0 | |
31 'sources': [ | |
32 'src/chain.c', | |
33 'src/chain.h', | |
34 'src/iccread.c', | |
35 'src/matrix.c', | |
36 'src/matrix.h', | |
37 'src/qcms.h', | |
38 'src/qcmsint.h', | |
39 'src/qcmstypes.h', | |
40 'src/qcms_util.c', | |
41 'src/transform.c', | |
42 'src/transform_util.c', | |
43 'src/transform_util.h', | |
44 ], | |
45 'conditions': [ | |
46 ['target_arch=="ia32" or target_arch=="x64"', { | |
47 'defines': [ | |
48 'SSE2_ENABLE', | |
49 ], | |
50 'sources': [ | |
51 'src/transform-sse2.c', | |
52 ], | |
53 }], | |
54 ], | |
55 }], | |
56 ['OS == "win"', { | |
57 'msvs_disabled_warnings': [ | |
58 4056, # overflow in floating-point constant arithmetic (INFINITY) | |
59 4756, # overflow in constant arithmetic (INFINITY) | |
60 ], | |
61 }], | |
62 ], | |
63 }, | |
64 ], | |
65 'conditions': [ | |
66 ['disable_qcms == 0', { | |
67 'targets': [ | |
68 { | |
69 'target_name': 'qcms_tests', | |
70 'product_name': 'qcms_tests', | |
71 'type': 'executable', | |
72 'dependencies': [ | |
73 'qcms', | |
74 ], | |
75 'conditions': [ | |
76 ['OS != "win"', { | |
77 'libraries': [ | |
78 '-lm', | |
79 ], | |
80 }], | |
81 ['target_arch=="ia32" or target_arch=="x64"', { | |
82 'defines': [ | |
83 'SSE2_ENABLE', | |
84 ], | |
85 }], | |
86 ], | |
87 'sources': [ | |
88 'src/tests/qcms_test_main.c', | |
89 'src/tests/qcms_test_internal_srgb.c', | |
90 'src/tests/qcms_test_munsell.c', | |
91 'src/tests/qcms_test_ntsc_gamut.c', | |
92 'src/tests/qcms_test_output_trc.c', | |
93 'src/tests/qcms_test_tetra_clut_rgba.c', | |
94 'src/tests/qcms_test_util.c', | |
95 ], | |
96 }, | |
97 ], | |
98 }], | |
99 ], | |
100 } | |
101 | |
102 # Local Variables: | |
103 # tab-width:2 | |
104 # indent-tabs-mode:nil | |
105 # End: | |
106 # vim: set expandtab tabstop=2 shiftwidth=2: | |
OLD | NEW |