blob: ab78afe8aaa7f82315db720262c1f907dc53ab26 [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': [
[email protected]c9bc8f12012-12-15 22:20:0914 '../../base/base.gyp:base',
[email protected]2e6f39e2014-05-15 19:36:3615 '../../skia/skia.gyp:skia',
[email protected]ed8fd9152014-03-13 10:20:3716 '../base/ui_base.gyp:ui_base',
[email protected]529a3cf2013-09-30 02:47:4817 '../gfx/gfx.gyp:gfx',
[email protected]b5e2d782013-12-18 21:01:1518 '../gfx/gfx.gyp:gfx_geometry',
[email protected]c9bc8f12012-12-15 22:20:0919 ],
20 'defines': [
21 'SNAPSHOT_IMPLEMENTATION',
22 ],
23 'sources': [
flackr149080062014-12-03 14:35:3724 'screenshot_grabber.cc',
25 'screenshot_grabber.h',
26 'screenshot_grabber_observer.h',
[email protected]c9bc8f12012-12-15 22:20:0927 'snapshot.h',
28 'snapshot_android.cc',
[email protected]2e6f39e2014-05-15 19:36:3629 'snapshot_async.cc',
30 'snapshot_async.h',
[email protected]c9bc8f12012-12-15 22:20:0931 'snapshot_aura.cc',
32 'snapshot_export.h',
[email protected]c9bc8f12012-12-15 22:20:0933 'snapshot_ios.mm',
34 'snapshot_mac.mm',
[email protected]c9bc8f12012-12-15 22:20:0935 ],
36 'include_dirs': [
37 '..',
38 ],
39 'conditions': [
jaekyune4f9eed2015-02-24 02:06:5840 ['OS=="android"', {
41 'dependencies': [
42 '../android/ui_android.gyp:ui_android',
43 ],
44 }],
[email protected]2e6f39e2014-05-15 19:36:3645 ['use_aura==1 or OS=="android"', {
[email protected]c9bc8f12012-12-15 22:20:0946 'dependencies': [
[email protected]75a3f1b2013-12-27 00:13:4347 '../../cc/cc.gyp:cc',
[email protected]2e6f39e2014-05-15 19:36:3648 '../../gpu/gpu.gyp:command_buffer_common',
49 ],
50 }],
51 ['use_aura!=1 and OS!="android"', {
52 'sources!': [
53 'snapshot_async.cc',
54 'snapshot_async.h',
55 ],
56 }],
57 ['use_aura==1', {
58 'dependencies': [
[email protected]c9bc8f12012-12-15 22:20:0959 '../aura/aura.gyp:aura',
60 '../compositor/compositor.gyp:compositor',
61 ],
62 }],
[email protected]c9bc8f12012-12-15 22:20:0963 ],
64 },
65 {
66 'target_name': 'snapshot_unittests',
67 'type': '<(gtest_target_type)',
68 'dependencies': [
69 '../../skia/skia.gyp:skia',
70 '../../base/base.gyp:base',
[email protected]8c2a7ec2013-05-28 22:09:1871 '../../base/base.gyp:test_support_base',
[email protected]c9bc8f12012-12-15 22:20:0972 '../../testing/gtest.gyp:gtest',
[email protected]ed8fd9152014-03-13 10:20:3773 '../base/ui_base.gyp:ui_base',
[email protected]529a3cf2013-09-30 02:47:4874 '../gfx/gfx.gyp:gfx',
[email protected]b5e2d782013-12-18 21:01:1575 '../gfx/gfx.gyp:gfx_geometry',
[email protected]c9bc8f12012-12-15 22:20:0976 'snapshot'
77 ],
78 'sources': [
[email protected]f95805472013-05-25 04:31:1979 'snapshot_aura_unittest.cc',
[email protected]c9bc8f12012-12-15 22:20:0980 'snapshot_mac_unittest.mm',
[email protected]f95805472013-05-25 04:31:1981 'test/run_all_unittests.cc',
82 ],
83 'conditions': [
84 ['use_aura==1', {
85 'dependencies': [
86 '../../base/base.gyp:test_support_base',
87 '../aura/aura.gyp:aura_test_support',
88 '../compositor/compositor.gyp:compositor',
[email protected]99e1e1e2013-05-29 07:17:0189 '../compositor/compositor.gyp:compositor_test_support',
[email protected]f3b1efd2014-04-30 04:48:2090 '../wm/wm.gyp:wm',
[email protected]f95805472013-05-25 04:31:1991 ],
92 }],
[email protected]4a8cf3e2013-05-30 03:44:4293 # See http://crbug.com/162998#c4 for why this is needed.
[email protected]2fa89ef2014-05-07 18:45:5994 ['OS=="linux" and use_allocator!="none"', {
[email protected]4a8cf3e2013-05-30 03:44:4295 'dependencies': [
96 '../../base/allocator/allocator.gyp:allocator',
97 ],
98 }],
[email protected]f95805472013-05-25 04:31:1999 ],
[email protected]c9bc8f12012-12-15 22:20:09100 },
101 ],
[email protected]c9bc8f12012-12-15 22:20:09102}