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_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { | |
30 'link_settings': { | |
31 'libraries': [ | |
32 '-lrt', | |
33 ], | |
34 }, | |
35 }], | |
36 ['skia_opencl', { | |
37 'sources': [ | |
38 'SkCLImageDiffer.cpp', | |
39 'SkDifferentPixelsMetric_opencl.cpp', | |
40 ], | |
41 'conditions': [ | |
42 [ 'skia_os == "mac"', { | |
43 'link_settings': { | |
44 'libraries': [ | |
45 '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework', | |
46 ] | |
47 } | |
48 }, { | |
49 'link_settings': { | |
50 'libraries': [ | |
51 '-lOpenCL', | |
52 ], | |
53 }, | |
54 }], | |
55 ], | |
56 }, { # !skia_opencl | |
57 'sources': [ | |
58 'SkDifferentPixelsMetric_cpu.cpp', | |
59 ], | |
60 }], | |
61 ], | |
62 }, | |
63 ], | |
64 } | |
65 | |
66 # Local Variables: | |
67 # tab-width:2 | |
68 # indent-tabs-mode:nil | |
69 # End: | |
70 # vim: set expandtab tabstop=2 shiftwidth=2: | |
OLD | NEW |