[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': [ |
| 14 | '../../skia/skia.gyp:skia', |
| 15 | '../../base/base.gyp:base', |
[email protected] | 529a3cf | 2013-09-30 02:47:48 | [diff] [blame] | 16 | '../gfx/gfx.gyp:gfx', |
[email protected] | b5e2d78 | 2013-12-18 21:01:15 | [diff] [blame] | 17 | '../gfx/gfx.gyp:gfx_geometry', |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 18 | '../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] | b6fdf08 | 2013-04-24 23:11:33 | [diff] [blame] | 32 | 'snapshot_win.h', |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 33 | ], |
| 34 | 'include_dirs': [ |
| 35 | '..', |
| 36 | ], |
| 37 | 'conditions': [ |
| 38 | ['use_aura==1', { |
| 39 | 'dependencies': [ |
[email protected] | 75a3f1b | 2013-12-27 00:13:43 | [diff] [blame^] | 40 | '../../cc/cc.gyp:cc', |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 41 | '../aura/aura.gyp:aura', |
| 42 | '../compositor/compositor.gyp:compositor', |
| 43 | ], |
| 44 | }], |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 45 | ], |
| 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] | 8c2a7ec | 2013-05-28 22:09:18 | [diff] [blame] | 53 | '../../base/base.gyp:test_support_base', |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 54 | '../../testing/gtest.gyp:gtest', |
[email protected] | 529a3cf | 2013-09-30 02:47:48 | [diff] [blame] | 55 | '../gfx/gfx.gyp:gfx', |
[email protected] | b5e2d78 | 2013-12-18 21:01:15 | [diff] [blame] | 56 | '../gfx/gfx.gyp:gfx_geometry', |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 57 | '../ui.gyp:ui', |
| 58 | 'snapshot' |
| 59 | ], |
| 60 | 'sources': [ |
[email protected] | f9580547 | 2013-05-25 04:31:19 | [diff] [blame] | 61 | 'snapshot_aura_unittest.cc', |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 62 | 'snapshot_mac_unittest.mm', |
[email protected] | f9580547 | 2013-05-25 04:31:19 | [diff] [blame] | 63 | '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] | 99e1e1e | 2013-05-29 07:17:01 | [diff] [blame] | 71 | '../compositor/compositor.gyp:compositor_test_support', |
[email protected] | f9580547 | 2013-05-25 04:31:19 | [diff] [blame] | 72 | ], |
| 73 | }], |
[email protected] | 4a8cf3e | 2013-05-30 03:44:42 | [diff] [blame] | 74 | # 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] | f9580547 | 2013-05-25 04:31:19 | [diff] [blame] | 80 | ], |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 81 | }, |
| 82 | ], |
[email protected] | b6fdf08 | 2013-04-24 23:11:33 | [diff] [blame] | 83 | '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] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 103 | } |