[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', |
| 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] | b6fdf08 | 2013-04-24 23:11:33 | [diff] [blame] | 30 | 'snapshot_win.h', |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 31 | ], |
| 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] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 42 | ], |
| 43 | }, |
| 44 | { |
| 45 | 'target_name': 'snapshot_unittests', |
| 46 | 'type': '<(gtest_target_type)', |
| 47 | 'dependencies': [ |
| 48 | '../../skia/skia.gyp:skia', |
| 49 | '../../base/base.gyp:base', |
[email protected] | 8c2a7ec | 2013-05-28 22:09:18 | [diff] [blame] | 50 | '../../base/base.gyp:test_support_base', |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 51 | '../../testing/gtest.gyp:gtest', |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 52 | '../ui.gyp:ui', |
| 53 | 'snapshot' |
| 54 | ], |
| 55 | 'sources': [ |
[email protected] | f9580547 | 2013-05-25 04:31:19 | [diff] [blame] | 56 | 'snapshot_aura_unittest.cc', |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 57 | 'snapshot_mac_unittest.mm', |
[email protected] | f9580547 | 2013-05-25 04:31:19 | [diff] [blame] | 58 | 'test/run_all_unittests.cc', |
| 59 | ], |
| 60 | 'conditions': [ |
| 61 | ['use_aura==1', { |
| 62 | 'dependencies': [ |
| 63 | '../../base/base.gyp:test_support_base', |
| 64 | '../aura/aura.gyp:aura_test_support', |
| 65 | '../compositor/compositor.gyp:compositor', |
[email protected] | 99e1e1e | 2013-05-29 07:17:01 | [diff] [blame^] | 66 | '../compositor/compositor.gyp:compositor_test_support', |
[email protected] | f9580547 | 2013-05-25 04:31:19 | [diff] [blame] | 67 | ], |
| 68 | }], |
| 69 | ], |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 70 | }, |
| 71 | ], |
[email protected] | b6fdf08 | 2013-04-24 23:11:33 | [diff] [blame] | 72 | 'conditions': [ |
| 73 | ['OS=="win"', { |
| 74 | 'targets': [ |
| 75 | { |
| 76 | 'target_name': 'snapshot_test_support', |
| 77 | 'type': 'static_library', |
| 78 | 'sources': [ |
| 79 | 'test/snapshot_desktop.h', |
| 80 | 'test/snapshot_desktop_win.cc', |
| 81 | ], |
| 82 | 'dependencies': [ |
| 83 | 'snapshot', |
| 84 | ], |
| 85 | 'include_dirs': [ |
| 86 | '../..', |
| 87 | ], |
| 88 | }, |
| 89 | ], |
| 90 | }], |
| 91 | ], |
[email protected] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 92 | } |