[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', |
| 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] | b6fdf08 | 2013-04-24 23:11:33 | [diff] [blame^] | 61 | '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] | c9bc8f1 | 2012-12-15 22:20:09 | [diff] [blame] | 81 | } |