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 '../../base/base.gyp:base', |
14 '../../skia/skia.gyp:skia', | 15 '../../skia/skia.gyp:skia', |
15 '../../base/base.gyp:base', | |
16 '../base/ui_base.gyp:ui_base', | 16 '../base/ui_base.gyp:ui_base', |
17 '../gfx/gfx.gyp:gfx', | 17 '../gfx/gfx.gyp:gfx', |
18 '../gfx/gfx.gyp:gfx_geometry', | 18 '../gfx/gfx.gyp:gfx_geometry', |
19 ], | 19 ], |
20 'defines': [ | 20 'defines': [ |
21 'SNAPSHOT_IMPLEMENTATION', | 21 'SNAPSHOT_IMPLEMENTATION', |
22 ], | 22 ], |
23 'sources': [ | 23 'sources': [ |
24 'snapshot.h', | 24 'snapshot.h', |
25 'snapshot_android.cc', | 25 'snapshot_android.cc', |
| 26 'snapshot_async.cc', |
| 27 'snapshot_async.h', |
26 'snapshot_aura.cc', | 28 'snapshot_aura.cc', |
27 'snapshot_export.h', | 29 'snapshot_export.h', |
28 'snapshot_ios.mm', | 30 'snapshot_ios.mm', |
29 'snapshot_mac.mm', | 31 'snapshot_mac.mm', |
30 'snapshot_win.cc', | 32 'snapshot_win.cc', |
31 'snapshot_win.h', | 33 'snapshot_win.h', |
32 ], | 34 ], |
33 'include_dirs': [ | 35 'include_dirs': [ |
34 '..', | 36 '..', |
35 ], | 37 ], |
36 'conditions': [ | 38 'conditions': [ |
| 39 ['use_aura==1 or OS=="android"', { |
| 40 'dependencies': [ |
| 41 '../../cc/cc.gyp:cc', |
| 42 '../../gpu/gpu.gyp:command_buffer_common', |
| 43 ], |
| 44 }], |
| 45 ['use_aura!=1 and OS!="android"', { |
| 46 'sources!': [ |
| 47 'snapshot_async.cc', |
| 48 'snapshot_async.h', |
| 49 ], |
| 50 }], |
37 ['use_aura==1', { | 51 ['use_aura==1', { |
38 'dependencies': [ | 52 'dependencies': [ |
39 '../../cc/cc.gyp:cc', | |
40 '../aura/aura.gyp:aura', | 53 '../aura/aura.gyp:aura', |
41 '../compositor/compositor.gyp:compositor', | 54 '../compositor/compositor.gyp:compositor', |
42 ], | 55 ], |
43 }], | 56 }], |
44 ], | 57 ], |
45 }, | 58 }, |
46 { | 59 { |
47 'target_name': 'snapshot_unittests', | 60 'target_name': 'snapshot_unittests', |
48 'type': '<(gtest_target_type)', | 61 'type': '<(gtest_target_type)', |
49 'dependencies': [ | 62 'dependencies': [ |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 'snapshot', | 107 'snapshot', |
95 ], | 108 ], |
96 'include_dirs': [ | 109 'include_dirs': [ |
97 '../..', | 110 '../..', |
98 ], | 111 ], |
99 }, | 112 }, |
100 ], | 113 ], |
101 }], | 114 }], |
102 ], | 115 ], |
103 } | 116 } |
OLD | NEW |