OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
11 'target_name': 'snapshot', | 11 'target_name': 'snapshot', |
12 'type': '<(component)', | 12 'type': '<(component)', |
13 'dependencies': [ | 13 'dependencies': [ |
14 '../../skia/skia.gyp:skia', | 14 '../../skia/skia.gyp:skia', |
15 '../../base/base.gyp:base', | 15 '../../base/base.gyp:base', |
16 '../ui.gyp:ui', | 16 '../ui.gyp:ui', |
17 ], | 17 ], |
18 'defines': [ | 18 'defines': [ |
19 'SNAPSHOT_IMPLEMENTATION', | 19 'SNAPSHOT_IMPLEMENTATION', |
20 ], | 20 ], |
21 'sources': [ | 21 'sources': [ |
22 'snapshot.h', | 22 'snapshot.h', |
23 'snapshot_android.cc', | 23 'snapshot_android.cc', |
24 'snapshot_aura.cc', | 24 'snapshot_aura.cc', |
25 'snapshot_export.h', | 25 'snapshot_export.h', |
26 'snapshot_gtk.cc', | 26 'snapshot_gtk.cc', |
27 '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
| |
28 'snapshot_hwnd_win.h', | |
27 'snapshot_ios.mm', | 29 'snapshot_ios.mm', |
28 'snapshot_mac.mm', | 30 'snapshot_mac.mm', |
29 'snapshot_win.cc', | 31 'snapshot_win.cc', |
30 ], | 32 ], |
31 'include_dirs': [ | 33 'include_dirs': [ |
32 '..', | 34 '..', |
33 ], | 35 ], |
34 'conditions': [ | 36 'conditions': [ |
35 ['use_aura==1', { | 37 ['use_aura==1', { |
36 'dependencies': [ | 38 'dependencies': [ |
37 '../aura/aura.gyp:aura', | 39 '../aura/aura.gyp:aura', |
38 '../compositor/compositor.gyp:compositor', | 40 '../compositor/compositor.gyp:compositor', |
39 ], | 41 ], |
40 }], | 42 }], |
41 ['use_aura==1 and OS=="win"', { | 43 ['use_aura==1 and OS=="win"', { |
42 'sources/': [ | 44 'sources!': [ |
43 ['exclude', 'snapshot_win.cc'], | 45 'snapshot_hwnd_win.cc', |
46 'snapshot_hwnd_win.h', | |
47 'snapshot_win.cc', | |
44 ], | 48 ], |
45 }], | 49 }], |
46 ], | 50 ], |
47 }, | 51 }, |
48 { | 52 { |
49 'target_name': 'snapshot_unittests', | 53 'target_name': 'snapshot_unittests', |
50 'type': '<(gtest_target_type)', | 54 'type': '<(gtest_target_type)', |
51 'dependencies': [ | 55 'dependencies': [ |
52 '../../skia/skia.gyp:skia', | 56 '../../skia/skia.gyp:skia', |
53 '../../base/base.gyp:base', | 57 '../../base/base.gyp:base', |
54 '../../testing/gtest.gyp:gtest', | 58 '../../testing/gtest.gyp:gtest', |
55 '../../testing/gmock.gyp:gmock', | 59 '../../testing/gmock.gyp:gmock', |
56 '../../testing/gtest.gyp:gtest', | 60 '../../testing/gtest.gyp:gtest', |
57 '../ui.gyp:ui', | 61 '../ui.gyp:ui', |
58 'snapshot' | 62 'snapshot' |
59 ], | 63 ], |
60 'sources': [ | 64 'sources': [ |
61 'snapshot_mac_unittest.mm', | 65 'snapshot_mac_unittest.mm', |
62 ] | 66 ] |
63 }, | 67 }, |
64 ], | 68 ], |
69 'conditions': [ | |
70 ['OS=="win"', { | |
71 'targets': [ | |
72 { | |
73 'target_name': 'snapshot_test_support', | |
74 'type': 'static_library', | |
75 'sources': [ | |
76 'snapshot_desktop.h', | |
77 'snapshot_desktop_win.cc', | |
78 'snapshot_hwnd_win.cc', | |
79 'snapshot_hwnd_win.h', | |
80 ], | |
81 'dependencies': [ | |
82 '../../base/base.gyp:base', | |
83 '../../skia/skia.gyp:skia', | |
84 '../ui.gyp:ui', | |
85 ], | |
86 }, | |
87 ], | |
88 }, { # else (OS!="win") | |
89 'targets': [ | |
90 { | |
91 'target_name': 'snapshot_test_support', | |
92 'type': 'none', | |
93 'sources': [], | |
94 }, | |
95 ], | |
96 }], | |
97 ], | |
65 } | 98 } |
OLD | NEW |