Index: ui/snapshot/snapshot.gyp |
diff --git a/ui/snapshot/snapshot.gyp b/ui/snapshot/snapshot.gyp |
index 40744bfc768359129ecd467b2a9810dace3d3aeb..927765a68ed0e74ef64fc98d6ee45c4b59c5a987 100644 |
--- a/ui/snapshot/snapshot.gyp |
+++ b/ui/snapshot/snapshot.gyp |
@@ -24,6 +24,8 @@ |
'snapshot_aura.cc', |
'snapshot_export.h', |
'snapshot_gtk.cc', |
+ 'snapshot_hwnd_win.cc', |
sky
2013/04/22 16:25:19
Why is this file both here and in test support?
grt (UTC plus 2)
2013/04/22 19:14:03
The desktop snapshotting code (in 'snapshot_test_s
|
+ 'snapshot_hwnd_win.h', |
'snapshot_ios.mm', |
'snapshot_mac.mm', |
'snapshot_win.cc', |
@@ -39,8 +41,10 @@ |
], |
}], |
['use_aura==1 and OS=="win"', { |
- 'sources/': [ |
- ['exclude', 'snapshot_win.cc'], |
+ 'sources!': [ |
+ 'snapshot_hwnd_win.cc', |
+ 'snapshot_hwnd_win.h', |
+ 'snapshot_win.cc', |
], |
}], |
], |
@@ -62,4 +66,33 @@ |
] |
}, |
], |
+ 'conditions': [ |
+ ['OS=="win"', { |
+ 'targets': [ |
+ { |
+ 'target_name': 'snapshot_test_support', |
+ 'type': 'static_library', |
+ 'sources': [ |
+ 'snapshot_desktop.h', |
+ 'snapshot_desktop_win.cc', |
+ 'snapshot_hwnd_win.cc', |
+ 'snapshot_hwnd_win.h', |
+ ], |
+ 'dependencies': [ |
+ '../../base/base.gyp:base', |
+ '../../skia/skia.gyp:skia', |
+ '../ui.gyp:ui', |
+ ], |
+ }, |
+ ], |
+ }, { # else (OS!="win") |
+ 'targets': [ |
+ { |
+ 'target_name': 'snapshot_test_support', |
+ 'type': 'none', |
+ 'sources': [], |
+ }, |
+ ], |
+ }], |
+ ], |
} |