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

Unified Diff: gyp/tools.gyp

Issue 19608005: move skpdiff into tools (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/skpdiff/viewer_style.css ('k') | tools/skpdiff/README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/tools.gyp
diff --git a/gyp/tools.gyp b/gyp/tools.gyp
index 4cbdf4b1ba742344345b8db0dee617d24d3b25b9..f460ee38ae02a240b783a945283a5fbbc4c04746 100644
--- a/gyp/tools.gyp
+++ b/gyp/tools.gyp
@@ -21,6 +21,7 @@
'render_pdfs',
'render_pictures',
'skdiff',
+ 'skpdiff',
'skhello',
'skimage',
],
@@ -51,6 +52,61 @@
],
},
{
+ 'target_name': 'skpdiff',
+ 'type': 'executable',
+ 'sources': [
+ '../tools/skpdiff/skpdiff_main.cpp',
+ '../tools/skpdiff/SkDiffContext.cpp',
+ '../tools/skpdiff/SkImageDiffer.cpp',
+ '../tools/skpdiff/SkPMetric.cpp',
+ '../tools/skpdiff/skpdiff_util.cpp',
+ '../tools/flags/SkCommandLineFlags.cpp',
+ ],
+ 'include_dirs': [
+ '../tools/flags'
+ ],
+ 'dependencies': [
+ 'skia_lib.gyp:skia_lib',
+ ],
+ 'cflags': [
+ '-O3',
+ ],
+ 'conditions': [
+ [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
+ 'link_settings': {
+ 'libraries': [
+ '-lrt',
+ ],
+ },
+ }],
+ ['skia_opencl', {
+ 'sources': [
+ '../tools/skpdiff/SkCLImageDiffer.cpp',
+ '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp',
+ ],
+ 'conditions': [
+ [ 'skia_os == "mac"', {
+ 'link_settings': {
+ 'libraries': [
+ '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework',
+ ]
+ }
+ }, {
+ 'link_settings': {
+ 'libraries': [
+ '-lOpenCL',
+ ],
+ },
+ }],
+ ],
+ }, { # !skia_opencl
+ 'sources': [
+ '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp',
+ ],
+ }],
+ ],
+ },
+ {
'target_name': 'skimagediff',
'type': 'executable',
'sources': [
« no previous file with comments | « experimental/skpdiff/viewer_style.css ('k') | tools/skpdiff/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698