OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'variables': { | |
7 'chromium_code': 1, | |
8 }, | |
9 'targets': [ | |
10 { | |
11 'target_name': 'snapshot', | |
12 'type': '<(component)', | |
13 'dependencies': [ | |
14 '../../base/base.gyp:base', | |
15 '../../skia/skia.gyp:skia', | |
16 '../base/ui_base.gyp:ui_base', | |
17 '../display/display.gyp:display', | |
18 '../gfx/gfx.gyp:gfx', | |
19 '../gfx/gfx.gyp:gfx_geometry', | |
20 ], | |
21 'defines': [ | |
22 'SNAPSHOT_IMPLEMENTATION', | |
23 ], | |
24 'sources': [ | |
25 'screenshot_grabber.cc', | |
26 'screenshot_grabber.h', | |
27 'screenshot_grabber_observer.h', | |
28 'snapshot.h', | |
29 'snapshot_android.cc', | |
30 'snapshot_async.cc', | |
31 'snapshot_async.h', | |
32 'snapshot_aura.cc', | |
33 'snapshot_export.h', | |
34 'snapshot_ios.mm', | |
35 'snapshot_mac.mm', | |
36 ], | |
37 'include_dirs': [ | |
38 '..', | |
39 ], | |
40 'conditions': [ | |
41 ['OS=="android"', { | |
42 'dependencies': [ | |
43 '../android/ui_android.gyp:ui_android', | |
44 ], | |
45 }], | |
46 ['use_aura==1 or OS=="android"', { | |
47 'dependencies': [ | |
48 '../../cc/cc.gyp:cc', | |
49 '../../gpu/gpu.gyp:command_buffer_common', | |
50 ], | |
51 }], | |
52 ['use_aura!=1 and OS!="android"', { | |
53 'sources!': [ | |
54 'snapshot_async.cc', | |
55 'snapshot_async.h', | |
56 ], | |
57 }], | |
58 ['use_aura==1', { | |
59 'dependencies': [ | |
60 '../aura/aura.gyp:aura', | |
61 '../compositor/compositor.gyp:compositor', | |
62 ], | |
63 }], | |
64 ], | |
65 }, | |
66 { | |
67 'target_name': 'snapshot_unittests', | |
68 'type': '<(gtest_target_type)', | |
69 'dependencies': [ | |
70 '../../skia/skia.gyp:skia', | |
71 '../../base/base.gyp:base', | |
72 '../../base/base.gyp:test_support_base', | |
73 '../../testing/gtest.gyp:gtest', | |
74 '../base/ui_base.gyp:ui_base', | |
75 '../gfx/gfx.gyp:gfx', | |
76 '../gfx/gfx.gyp:gfx_geometry', | |
77 'snapshot' | |
78 ], | |
79 'sources': [ | |
80 'snapshot_aura_unittest.cc', | |
81 'snapshot_mac_unittest.mm', | |
82 'test/run_all_unittests.cc', | |
83 ], | |
84 'conditions': [ | |
85 ['use_aura==1', { | |
86 'dependencies': [ | |
87 '../../base/base.gyp:test_support_base', | |
88 '../aura/aura.gyp:aura_test_support', | |
89 '../compositor/compositor.gyp:compositor', | |
90 '../compositor/compositor.gyp:compositor_test_support', | |
91 '../wm/wm.gyp:wm', | |
92 ], | |
93 }], | |
94 ], | |
95 }, | |
96 ], | |
97 } | |
OLD | NEW |