blob: cf93fa9366c2dc81ae5639188b6a5123f6a293c8 [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',
16 '../ui.gyp:ui',
17 ],
18 'defines': [
19 'SNAPSHOT_IMPLEMENTATION',
20 ],
21 'sources': [
22 'snapshot.h',
23 'snapshot_android.cc',
24 'snapshot_aura.cc',
25 'snapshot_export.h',
26 'snapshot_gtk.cc',
27 'snapshot_ios.mm',
28 'snapshot_mac.mm',
29 'snapshot_win.cc',
[email protected]b6fdf082013-04-24 23:11:3330 'snapshot_win.h',
[email protected]c9bc8f12012-12-15 22:20:0931 ],
32 'include_dirs': [
33 '..',
34 ],
35 'conditions': [
36 ['use_aura==1', {
37 'dependencies': [
38 '../aura/aura.gyp:aura',
39 '../compositor/compositor.gyp:compositor',
40 ],
41 }],
[email protected]c9bc8f12012-12-15 22:20:0942 ],
43 },
44 {
45 'target_name': 'snapshot_unittests',
46 'type': '<(gtest_target_type)',
47 'dependencies': [
48 '../../skia/skia.gyp:skia',
49 '../../base/base.gyp:base',
50 '../../testing/gtest.gyp:gtest',
51 '../../testing/gmock.gyp:gmock',
52 '../../testing/gtest.gyp:gtest',
53 '../ui.gyp:ui',
54 'snapshot'
55 ],
56 'sources': [
57 'snapshot_mac_unittest.mm',
58 ]
59 },
60 ],
[email protected]b6fdf082013-04-24 23:11:3361 '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 }],
80 ],
[email protected]c9bc8f12012-12-15 22:20:0981}