Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / ipc / ipc.gypi
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   'target_defaults': {
7     'variables': {
8       'ipc_target': 0,
9     },
10     'target_conditions': [
11       # This part is shared between the targets defined below.
12       ['ipc_target==1', {
13         'sources': [
14           'file_descriptor_set_posix.cc',
15           'file_descriptor_set_posix.h',
16           'ipc_channel.cc',
17           'ipc_channel.h',
18           'ipc_channel_factory.cc',
19           'ipc_channel_factory.h',
20           'ipc_channel_handle.h',
21           'ipc_channel_nacl.cc',
22           'ipc_channel_nacl.h',
23           'ipc_channel_posix.cc',
24           'ipc_channel_posix.h',
25           'ipc_channel_proxy.cc',
26           'ipc_channel_proxy.h',
27           'ipc_channel_reader.cc',
28           'ipc_channel_reader.h',
29           'ipc_channel_win.cc',
30           'ipc_channel_win.h',
31           'ipc_descriptors.h',
32           'ipc_export.h',
33           'ipc_forwarding_message_filter.cc',
34           'ipc_forwarding_message_filter.h',
35           'ipc_listener.h',
36           'ipc_logging.cc',
37           'ipc_logging.h',
38           'ipc_message.cc',
39           'ipc_message.h',
40           'ipc_message_macros.h',
41           'ipc_message_start.h',
42           'ipc_message_utils.cc',
43           'ipc_message_utils.h',
44           'ipc_param_traits.h',
45           'ipc_platform_file.cc',
46           'ipc_platform_file.h',
47           'ipc_sender.h',
48           'ipc_switches.cc',
49           'ipc_switches.h',
50           'ipc_sync_channel.cc',
51           'ipc_sync_channel.h',
52           'ipc_sync_message.cc',
53           'ipc_sync_message.h',
54           'ipc_sync_message_filter.cc',
55           'ipc_sync_message_filter.h',
56           'message_filter.cc',
57           'message_filter.h',
58           'message_filter_router.cc',
59           'message_filter_router.h',
60           'param_traits_log_macros.h',
61           'param_traits_macros.h',
62           'param_traits_read_macros.h',
63           'param_traits_write_macros.h',
64           'struct_constructor_macros.h',
65           'struct_destructor_macros.h',
66           'unix_domain_socket_util.cc',
67           'unix_domain_socket_util.h',
68         ],
69         'defines': [
70           'IPC_IMPLEMENTATION',
71         ],
72         'include_dirs': [
73           '..',
74         ],
75         'target_conditions': [
76           ['>(nacl_untrusted_build)==1', {
77             'sources!': [
78               'ipc_channel.cc',
79               'ipc_channel_factory.cc',
80               'ipc_channel_posix.cc',
81               'unix_domain_socket_util.cc',
82             ],
83           }],
84           ['OS == "win" or OS == "ios"', {
85             'sources!': [
86               'ipc_channel_factory.cc',
87               'unix_domain_socket_util.cc',
88             ],
89           }],
90         ],
91       }],
92     ],
93   },
94 }