blob: 95f2dacc649294683521b796beee8c2d782e04cc [file] [log] [blame]
[email protected]c9bc8f12012-12-15 22:20:091# 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 '../../skia/skia.gyp:skia',
15 '../../base/base.gyp:base',
[email protected]529a3cf2013-09-30 02:47:4816 '../gfx/gfx.gyp:gfx',
[email protected]b5e2d782013-12-18 21:01:1517 '../gfx/gfx.gyp:gfx_geometry',
[email protected]c9bc8f12012-12-15 22:20:0918 '../ui.gyp:ui',
19 ],
20 'defines': [
21 'SNAPSHOT_IMPLEMENTATION',
22 ],
23 'sources': [
24 'snapshot.h',
25 'snapshot_android.cc',
26 'snapshot_aura.cc',
27 'snapshot_export.h',
28 'snapshot_gtk.cc',
29 'snapshot_ios.mm',
30 'snapshot_mac.mm',
31 'snapshot_win.cc',
[email protected]b6fdf082013-04-24 23:11:3332 'snapshot_win.h',
[email protected]c9bc8f12012-12-15 22:20:0933 ],
34 'include_dirs': [
35 '..',
36 ],
37 'conditions': [
38 ['use_aura==1', {
39 'dependencies': [
[email protected]75a3f1b2013-12-27 00:13:4340 '../../cc/cc.gyp:cc',
[email protected]c9bc8f12012-12-15 22:20:0941 '../aura/aura.gyp:aura',
42 '../compositor/compositor.gyp:compositor',
43 ],
44 }],
[email protected]c9bc8f12012-12-15 22:20:0945 ],
46 },
47 {
48 'target_name': 'snapshot_unittests',
49 'type': '<(gtest_target_type)',
50 'dependencies': [
51 '../../skia/skia.gyp:skia',
52 '../../base/base.gyp:base',
[email protected]8c2a7ec2013-05-28 22:09:1853 '../../base/base.gyp:test_support_base',
[email protected]c9bc8f12012-12-15 22:20:0954 '../../testing/gtest.gyp:gtest',
[email protected]529a3cf2013-09-30 02:47:4855 '../gfx/gfx.gyp:gfx',
[email protected]b5e2d782013-12-18 21:01:1556 '../gfx/gfx.gyp:gfx_geometry',
[email protected]c9bc8f12012-12-15 22:20:0957 '../ui.gyp:ui',
58 'snapshot'
59 ],
60 'sources': [
[email protected]f95805472013-05-25 04:31:1961 'snapshot_aura_unittest.cc',
[email protected]c9bc8f12012-12-15 22:20:0962 'snapshot_mac_unittest.mm',
[email protected]f95805472013-05-25 04:31:1963 'test/run_all_unittests.cc',
64 ],
65 'conditions': [
66 ['use_aura==1', {
67 'dependencies': [
68 '../../base/base.gyp:test_support_base',
69 '../aura/aura.gyp:aura_test_support',
70 '../compositor/compositor.gyp:compositor',
[email protected]99e1e1e2013-05-29 07:17:0171 '../compositor/compositor.gyp:compositor_test_support',
[email protected]f95805472013-05-25 04:31:1972 ],
73 }],
[email protected]4a8cf3e2013-05-30 03:44:4274 # See http://crbug.com/162998#c4 for why this is needed.
75 ['OS=="linux" and linux_use_tcmalloc==1', {
76 'dependencies': [
77 '../../base/allocator/allocator.gyp:allocator',
78 ],
79 }],
[email protected]f95805472013-05-25 04:31:1980 ],
[email protected]c9bc8f12012-12-15 22:20:0981 },
82 ],
[email protected]b6fdf082013-04-24 23:11:3383 'conditions': [
84 ['OS=="win"', {
85 'targets': [
86 {
87 'target_name': 'snapshot_test_support',
88 'type': 'static_library',
89 'sources': [
90 'test/snapshot_desktop.h',
91 'test/snapshot_desktop_win.cc',
92 ],
93 'dependencies': [
94 'snapshot',
95 ],
96 'include_dirs': [
97 '../..',
98 ],
99 },
100 ],
101 }],
102 ],
[email protected]c9bc8f12012-12-15 22:20:09103}