Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(473)

Side by Side Diff: experimental/skpdiff/skpdiff.gyp

Issue 19374006: make OpenCL optional for skpdiff (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: this-> Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « experimental/skpdiff/main.cpp ('k') | experimental/skpdiff/skpdiff_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # GYP file to build skpdiff. 1 # GYP file to build skpdiff.
2 # 2 #
3 # To build on Linux: 3 # To build on Linux:
4 # ./gyp_skia skpdiff.gyp && make skpdiff 4 # ./gyp_skia skpdiff.gyp && make skpdiff
5 # 5 #
6 { 6 {
7 'targets': [ 7 'targets': [
8 { 8 {
9 'target_name': 'skpdiff', 9 'target_name': 'skpdiff',
10 'type': 'executable', 10 'type': 'executable',
11 'sources': [ 11 'sources': [
12 'main.cpp', 12 'main.cpp',
13 'SkDiffContext.cpp', 13 'SkDiffContext.cpp',
14 'SkImageDiffer.cpp', 14 'SkImageDiffer.cpp',
15 'SkCLImageDiffer.cpp',
16 'SkPMetric.cpp', 15 'SkPMetric.cpp',
17 'skpdiff_util.cpp', 16 'skpdiff_util.cpp',
18 '../../tools/flags/SkCommandLineFlags.cpp', 17 '../../tools/flags/SkCommandLineFlags.cpp',
19 ], 18 ],
20 'include_dirs': [ 19 'include_dirs': [
21 '../../tools/flags' 20 '../../tools/flags'
22 ], 21 ],
23 'dependencies': [ 22 'dependencies': [
24 '../../gyp/skia_lib.gyp:skia_lib', 23 '../../gyp/skia_lib.gyp:skia_lib',
25 ], 24 ],
26 'cflags': [ 25 'cflags': [
27 '-O3', 26 '-O3',
28 ], 27 ],
29 'link_settings': { 28 'conditions': [
30 'libraries': [ 29 ['skia_opencl', {
31 '-lOpenCL', 30 'sources': [
32 ], 31 'SkCLImageDiffer.cpp',
33 }, 32 'SkDifferentPixelsMetric_opencl.cpp',
33 ],
34 'link_settings': {
35 'libraries': [
36 '-lOpenCL',
37 ],
38 },
39 }, {
40 'sources': [
41 'SkDifferentPixelsMetric_cpu.cpp',
42 ],
43 }],
44 ],
34 }, 45 },
35 ], 46 ],
36 'conditions': [
37 ],
38 } 47 }
39 48
40 # Local Variables: 49 # Local Variables:
41 # tab-width:2 50 # tab-width:2
42 # indent-tabs-mode:nil 51 # indent-tabs-mode:nil
43 # End: 52 # End:
44 # vim: set expandtab tabstop=2 shiftwidth=2: 53 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « experimental/skpdiff/main.cpp ('k') | experimental/skpdiff/skpdiff_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698