[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 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 |
| 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] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 14 | '../../base/base.gyp:base', |
[email protected] | 2e6f39e | 2014-05-15 19:36:36 | [diff] [blame] | 15 | '../../skia/skia.gyp:skia', |
[email protected] | ed8fd915 | 2014-03-13 10:20:37 | [diff] [blame] | 16 | '../base/ui_base.gyp:ui_base', |
[email protected] | 529a3cf | 2013-09-30 02:47:48 | [diff] [blame] | 17 | '../gfx/gfx.gyp:gfx', |
[email protected] | b5e2d78 | 2013-12-18 21:01:15 | [diff] [blame] | 18 | '../gfx/gfx.gyp:gfx_geometry', |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 19 | ], |
| 20 | 'defines': [ |
| 21 | 'SNAPSHOT_IMPLEMENTATION', |
| 22 | ], |
| 23 | 'sources': [ |
flackr | 14908006 | 2014-12-03 14:35:37 | [diff] [blame] | 24 | 'screenshot_grabber.cc', |
| 25 | 'screenshot_grabber.h', |
| 26 | 'screenshot_grabber_observer.h', |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 27 | 'snapshot.h', |
| 28 | 'snapshot_android.cc', |
[email protected] | 2e6f39e | 2014-05-15 19:36:36 | [diff] [blame] | 29 | 'snapshot_async.cc', |
| 30 | 'snapshot_async.h', |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 31 | 'snapshot_aura.cc', |
| 32 | 'snapshot_export.h', |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 33 | 'snapshot_ios.mm', |
| 34 | 'snapshot_mac.mm', |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 35 | ], |
| 36 | 'include_dirs': [ |
| 37 | '..', |
| 38 | ], |
| 39 | 'conditions': [ |
jaekyun | e4f9eed | 2015-02-24 02:06:58 | [diff] [blame] | 40 | ['OS=="android"', { |
| 41 | 'dependencies': [ |
| 42 | '../android/ui_android.gyp:ui_android', |
| 43 | ], |
| 44 | }], |
[email protected] | 2e6f39e | 2014-05-15 19:36:36 | [diff] [blame] | 45 | ['use_aura==1 or OS=="android"', { |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 46 | 'dependencies': [ |
[email protected] | 75a3f1b | 2013-12-27 00:13:43 | [diff] [blame] | 47 | '../../cc/cc.gyp:cc', |
[email protected] | 2e6f39e | 2014-05-15 19:36:36 | [diff] [blame] | 48 | '../../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] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 59 | '../aura/aura.gyp:aura', |
| 60 | '../compositor/compositor.gyp:compositor', |
| 61 | ], |
| 62 | }], |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 63 | ], |
| 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] | 8c2a7ec | 2013-05-28 22:09:18 | [diff] [blame] | 71 | '../../base/base.gyp:test_support_base', |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 72 | '../../testing/gtest.gyp:gtest', |
[email protected] | ed8fd915 | 2014-03-13 10:20:37 | [diff] [blame] | 73 | '../base/ui_base.gyp:ui_base', |
[email protected] | 529a3cf | 2013-09-30 02:47:48 | [diff] [blame] | 74 | '../gfx/gfx.gyp:gfx', |
[email protected] | b5e2d78 | 2013-12-18 21:01:15 | [diff] [blame] | 75 | '../gfx/gfx.gyp:gfx_geometry', |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 76 | 'snapshot' |
| 77 | ], |
| 78 | 'sources': [ |
[email protected] | f9580547 | 2013-05-25 04:31:19 | [diff] [blame] | 79 | 'snapshot_aura_unittest.cc', |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 80 | 'snapshot_mac_unittest.mm', |
[email protected] | f9580547 | 2013-05-25 04:31:19 | [diff] [blame] | 81 | '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] | 99e1e1e | 2013-05-29 07:17:01 | [diff] [blame] | 89 | '../compositor/compositor.gyp:compositor_test_support', |
[email protected] | f3b1efd | 2014-04-30 04:48:20 | [diff] [blame] | 90 | '../wm/wm.gyp:wm', |
[email protected] | f9580547 | 2013-05-25 04:31:19 | [diff] [blame] | 91 | ], |
| 92 | }], |
[email protected] | 4a8cf3e | 2013-05-30 03:44:42 | [diff] [blame] | 93 | # See http://crbug.com/162998#c4 for why this is needed. |
[email protected] | 2fa89ef | 2014-05-07 18:45:59 | [diff] [blame] | 94 | ['OS=="linux" and use_allocator!="none"', { |
[email protected] | 4a8cf3e | 2013-05-30 03:44:42 | [diff] [blame] | 95 | 'dependencies': [ |
| 96 | '../../base/allocator/allocator.gyp:allocator', |
| 97 | ], |
| 98 | }], |
[email protected] | f9580547 | 2013-05-25 04:31:19 | [diff] [blame] | 99 | ], |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 100 | }, |
| 101 | ], |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 102 | } |