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_ios.mm', | 27 'snapshot_ios.mm', |
28 'snapshot_mac.mm', | 28 'snapshot_mac.mm', |
29 'snapshot_win.cc', | 29 'snapshot_win.cc', |
30 'snapshot_win.h', | |
30 ], | 31 ], |
31 'include_dirs': [ | 32 'include_dirs': [ |
32 '..', | 33 '..', |
33 ], | 34 ], |
34 'conditions': [ | 35 'conditions': [ |
35 ['use_aura==1', { | 36 ['use_aura==1', { |
36 'dependencies': [ | 37 'dependencies': [ |
37 '../aura/aura.gyp:aura', | 38 '../aura/aura.gyp:aura', |
38 '../compositor/compositor.gyp:compositor', | 39 '../compositor/compositor.gyp:compositor', |
39 ], | 40 ], |
40 }], | 41 }], |
41 ['use_aura==1 and OS=="win"', { | |
42 'sources/': [ | |
43 ['exclude', 'snapshot_win.cc'], | |
44 ], | |
45 }], | |
46 ], | 42 ], |
47 }, | 43 }, |
48 { | 44 { |
49 'target_name': 'snapshot_unittests', | 45 'target_name': 'snapshot_unittests', |
50 'type': '<(gtest_target_type)', | 46 'type': '<(gtest_target_type)', |
51 'dependencies': [ | 47 'dependencies': [ |
52 '../../skia/skia.gyp:skia', | 48 '../../skia/skia.gyp:skia', |
53 '../../base/base.gyp:base', | 49 '../../base/base.gyp:base', |
54 '../../testing/gtest.gyp:gtest', | 50 '../../testing/gtest.gyp:gtest', |
55 '../../testing/gmock.gyp:gmock', | 51 '../../testing/gmock.gyp:gmock', |
56 '../../testing/gtest.gyp:gtest', | 52 '../../testing/gtest.gyp:gtest', |
57 '../ui.gyp:ui', | 53 '../ui.gyp:ui', |
58 'snapshot' | 54 'snapshot' |
59 ], | 55 ], |
60 'sources': [ | 56 'sources': [ |
61 'snapshot_mac_unittest.mm', | 57 'snapshot_mac_unittest.mm', |
62 ] | 58 ] |
63 }, | 59 }, |
64 ], | 60 ], |
61 'conditions': [ | |
62 ['OS=="win"', { | |
63 'targets': [ | |
64 { | |
65 'target_name': 'snapshot_test_support', | |
66 'type': 'static_library', | |
67 'sources': [ | |
68 'test/snapshot_desktop.h', | |
69 'test/snapshot_desktop_win.cc', | |
70 ], | |
71 'dependencies': [ | |
72 'snapshot' | |
73 ], | |
74 'include_dirs': [ | |
75 '../..', | |
76 ], | |
77 }, | |
78 ], | |
79 }, { # else (OS!="win") | |
80 'targets': [ | |
sky
2013/04/24 14:49:11
Shouldn't we only include this target on windows s
grt (UTC plus 2)
2013/04/24 17:44:47
There's only the Windows implementation for now, b
| |
81 { | |
82 'target_name': 'snapshot_test_support', | |
83 'type': 'none', | |
84 'sources': [], | |
85 }, | |
86 ], | |
87 }], | |
88 ], | |
65 } | 89 } |
OLD | NEW |