OLD | NEW |
| (Empty) |
1 # GYP file to build skpdiff. | |
2 # | |
3 # To build on Linux: | |
4 # ./gyp_skia skpdiff.gyp && make skpdiff | |
5 # | |
6 { | |
7 'targets': [ | |
8 { | |
9 'target_name': 'skpdiff', | |
10 'type': 'executable', | |
11 'sources': [ | |
12 'main.cpp', | |
13 'SkDiffContext.cpp', | |
14 'SkImageDiffer.cpp', | |
15 'SkPMetric.cpp', | |
16 'skpdiff_util.cpp', | |
17 '../../tools/flags/SkCommandLineFlags.cpp', | |
18 ], | |
19 'include_dirs': [ | |
20 '../../tools/flags' | |
21 ], | |
22 'dependencies': [ | |
23 '../../gyp/skia_lib.gyp:skia_lib', | |
24 ], | |
25 'cflags': [ | |
26 '-O3', | |
27 ], | |
28 'conditions': [ | |
29 ['skia_opencl', { | |
30 'sources': [ | |
31 'SkCLImageDiffer.cpp', | |
32 'SkDifferentPixelsMetric_opencl.cpp', | |
33 ], | |
34 'link_settings': { | |
35 'libraries': [ | |
36 '-lOpenCL', | |
37 ], | |
38 }, | |
39 }, { | |
40 'sources': [ | |
41 'SkDifferentPixelsMetric_cpu.cpp', | |
42 ], | |
43 }], | |
44 ], | |
45 }, | |
46 ], | |
47 } | |
48 | |
49 # Local Variables: | |
50 # tab-width:2 | |
51 # indent-tabs-mode:nil | |
52 # End: | |
53 # vim: set expandtab tabstop=2 shiftwidth=2: | |
OLD | NEW |