Initialize Tizen 2.3
[external/chromium.git] / ipc / ipc.gyp
1 # Copyright (c) 2009 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   'target_defaults': {
10     'sources/': [
11       ['exclude', '/win/'],
12       ['exclude', '_(posix|win)(_unittest)?\\.(cc|mm?)$'],
13       ['exclude', '/win_[^/]*\\.cc$'],
14     ],
15     'conditions': [
16       ['os_posix == 1 and OS != "mac"', {'sources/': [
17         ['include', '_posix(_unittest)?\\.cc$'],
18       ]}],
19       ['OS=="mac"', {'sources/': [
20         ['include', '_posix(_unittest)?\\.(cc|mm?)$'],
21       ]}],
22       ['OS=="win"', {'sources/': [
23         ['include', '_win(_unittest)?\\.cc$'],
24         ['include', '/win/'],
25         ['include', '/win_[^/]*\\.cc$'],
26       ]}],
27     ],
28   },
29   'includes': [
30     'ipc.gypi',
31   ],
32   'targets': [
33     {
34       'target_name': 'ipc_tests',
35       'type': 'executable',
36       'dependencies': [
37         'ipc',
38         '../base/base.gyp:base',
39         '../base/base.gyp:base_i18n',
40         '../base/base.gyp:test_support_base',
41         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
42         '../testing/gtest.gyp:gtest',
43       ],
44       'include_dirs': [
45         '..'
46       ],
47       'sources': [
48         'file_descriptor_set_posix_unittest.cc',
49         'ipc_channel_posix_unittest.cc',
50         'ipc_fuzzing_tests.cc',
51         'ipc_message_unittest.cc',
52         'ipc_send_fds_test.cc',
53         'ipc_sync_channel_unittest.cc',
54         'ipc_sync_message_unittest.cc',
55         'ipc_sync_message_unittest.h',
56         'ipc_tests.cc',
57         'ipc_tests.h',
58         'sync_socket_unittest.cc',
59       ],
60       'conditions': [
61         ['toolkit_uses_gtk == 1', {
62           'dependencies': [
63             '../build/linux/system.gyp:gtk',
64           ],
65         }],
66         ['os_posix == 1 and OS != "mac"', {
67           'conditions': [
68             ['linux_use_tcmalloc==1', {
69               'dependencies': [
70                 '../base/allocator/allocator.gyp:allocator',
71               ],
72             }],
73           ],
74         }]
75       ],
76     },
77     {
78       'target_name': 'test_support_ipc',
79       'type': 'static_library',
80       'dependencies': [
81         'ipc',
82         '../base/base.gyp:base',
83       ],
84       'sources': [
85         'ipc_test_sink.cc',
86         'ipc_test_sink.h',
87       ],
88     },
89   ],
90 }