- add sources.
[platform/framework/web/crosswalk.git] / src / ui / snapshot / snapshot.gyp
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         '../events/events.gyp:events',
17         '../gfx/gfx.gyp:gfx',
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',
32         'snapshot_win.h',
33       ],
34       'include_dirs': [
35         '..',
36       ],
37       'conditions': [
38         ['use_aura==1', {
39           'dependencies': [
40             '../aura/aura.gyp:aura',
41             '../compositor/compositor.gyp:compositor',
42           ],
43         }],
44       ],
45     },
46     {
47       'target_name': 'snapshot_unittests',
48       'type': '<(gtest_target_type)',
49       'dependencies': [
50         '../../skia/skia.gyp:skia',
51         '../../base/base.gyp:base',
52         '../../base/base.gyp:test_support_base',
53         '../../testing/gtest.gyp:gtest',
54         '../events/events.gyp:events',
55         '../gfx/gfx.gyp:gfx',
56         '../ui.gyp:ui',
57         'snapshot'
58       ],
59       'sources': [
60         'snapshot_aura_unittest.cc',
61         'snapshot_mac_unittest.mm',
62         'test/run_all_unittests.cc',
63       ],
64       'conditions': [
65         ['use_aura==1', {
66           'dependencies': [
67             '../../base/base.gyp:test_support_base',
68             '../aura/aura.gyp:aura_test_support',
69             '../compositor/compositor.gyp:compositor',
70             '../compositor/compositor.gyp:compositor_test_support',
71           ],
72         }],
73         # See http://crbug.com/162998#c4 for why this is needed.
74         ['OS=="linux" and linux_use_tcmalloc==1', {
75           'dependencies': [
76             '../../base/allocator/allocator.gyp:allocator',
77           ],
78         }],
79       ],
80     },
81   ],
82   'conditions': [
83     ['OS=="win"', {
84       'targets': [
85         {
86           'target_name': 'snapshot_test_support',
87           'type': 'static_library',
88           'sources': [
89             'test/snapshot_desktop.h',
90             'test/snapshot_desktop_win.cc',
91           ],
92           'dependencies': [
93             'snapshot',
94           ],
95           'include_dirs': [
96             '../..',
97           ],
98         },
99       ],
100     }],
101   ],
102 }