blob: 7791934eabe0ace7d611900fae682622fb9f6017 [file] [log] [blame]
[email protected]3fa3f672011-04-28 01:18:241# Copyright (c) 2011 The Chromium Authors. All rights reserved.
[email protected]886a17e32009-12-07 21:09:392# 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.h',
17 'ipc_channel_handle.h',
18 'ipc_channel_posix.cc',
19 'ipc_channel_posix.h',
20 'ipc_channel_proxy.cc',
21 'ipc_channel_proxy.h',
22 'ipc_channel_win.cc',
23 'ipc_channel_win.h',
24 'ipc_descriptors.h',
[email protected]7c854372011-08-15 20:41:4625 'ipc_export.h',
[email protected]886a17e32009-12-07 21:09:3926 'ipc_logging.cc',
27 'ipc_logging.h',
28 'ipc_message.cc',
29 'ipc_message.h',
30 'ipc_message_macros.h',
31 'ipc_message_utils.cc',
32 'ipc_message_utils.h',
[email protected]939856a2010-08-24 20:29:0233 'ipc_param_traits.h',
[email protected]e7f009d2011-06-14 19:35:1034 'ipc_platform_file.cc',
[email protected]886a17e32009-12-07 21:09:3935 'ipc_platform_file.h',
36 'ipc_switches.cc',
37 'ipc_switches.h',
38 'ipc_sync_channel.cc',
39 'ipc_sync_channel.h',
40 'ipc_sync_message.cc',
41 'ipc_sync_message.h',
[email protected]1e9499c2010-04-06 20:33:3642 'ipc_sync_message_filter.cc',
43 'ipc_sync_message_filter.h',
[email protected]6476c72c2011-02-11 18:46:1944 'param_traits_log_macros.h',
45 'param_traits_macros.h',
46 'param_traits_read_macros.h',
47 'param_traits_write_macros.h',
48 'struct_constructor_macros.h',
49 'struct_destructor_macros.h',
[email protected]886a17e32009-12-07 21:09:3950 ],
[email protected]7c854372011-08-15 20:41:4651 'defines': [
52 'IPC_IMPLEMENTATION',
53 ],
[email protected]886a17e32009-12-07 21:09:3954 'include_dirs': [
55 '..',
56 ],
57 }],
58 ],
59 },
60 'targets': [
61 {
62 'target_name': 'ipc',
[email protected]7c854372011-08-15 20:41:4663 'type': '<(component)',
[email protected]886a17e32009-12-07 21:09:3964 'variables': {
65 'ipc_target': 1,
66 },
67 'dependencies': [
68 '../base/base.gyp:base',
[email protected]3fa3f672011-04-28 01:18:2469 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]886a17e32009-12-07 21:09:3970 ],
71 # TODO(gregoryd): direct_dependent_settings should be shared with the
72 # 64-bit target, but it doesn't work due to a bug in gyp
73 'direct_dependent_settings': {
74 'include_dirs': [
75 '..',
76 ],
77 },
78 },
79 ],
80 'conditions': [
81 ['OS=="win"', {
82 'targets': [
83 {
84 'target_name': 'ipc_win64',
[email protected]7c854372011-08-15 20:41:4685 'type': '<(component)',
[email protected]886a17e32009-12-07 21:09:3986 'variables': {
87 'ipc_target': 1,
88 },
89 'dependencies': [
90 '../base/base.gyp:base_nacl_win64',
[email protected]7c854372011-08-15 20:41:4691 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
[email protected]886a17e32009-12-07 21:09:3992 ],
93 # TODO(gregoryd): direct_dependent_settings should be shared with the
94 # 32-bit target, but it doesn't work due to a bug in gyp
95 'direct_dependent_settings': {
96 'include_dirs': [
97 '..',
98 ],
99 },
100 'configurations': {
[email protected]5153767c2009-12-22 01:52:50101 'Common_Base': {
[email protected]886a17e32009-12-07 21:09:39102 'msvs_target_platform': 'x64',
103 },
104 },
105 },
106 ],
107 }],
108 ],
109}