[email protected] | 3fa3f67 | 2011-04-28 01:18:24 | [diff] [blame] | 1 | # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
[email protected] | 886a17e3 | 2009-12-07 21:09:39 | [diff] [blame] | 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.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] | 7c85437 | 2011-08-15 20:41:46 | [diff] [blame] | 25 | 'ipc_export.h', |
[email protected] | 886a17e3 | 2009-12-07 21:09:39 | [diff] [blame] | 26 | '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] | 939856a | 2010-08-24 20:29:02 | [diff] [blame] | 33 | 'ipc_param_traits.h', |
[email protected] | e7f009d | 2011-06-14 19:35:10 | [diff] [blame] | 34 | 'ipc_platform_file.cc', |
[email protected] | 886a17e3 | 2009-12-07 21:09:39 | [diff] [blame] | 35 | '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] | 1e9499c | 2010-04-06 20:33:36 | [diff] [blame] | 42 | 'ipc_sync_message_filter.cc', |
| 43 | 'ipc_sync_message_filter.h', |
[email protected] | 6476c72c | 2011-02-11 18:46:19 | [diff] [blame] | 44 | '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] | 886a17e3 | 2009-12-07 21:09:39 | [diff] [blame] | 50 | ], |
[email protected] | 7c85437 | 2011-08-15 20:41:46 | [diff] [blame] | 51 | 'defines': [ |
| 52 | 'IPC_IMPLEMENTATION', |
| 53 | ], |
[email protected] | 886a17e3 | 2009-12-07 21:09:39 | [diff] [blame] | 54 | 'include_dirs': [ |
| 55 | '..', |
| 56 | ], |
| 57 | }], |
| 58 | ], |
| 59 | }, |
| 60 | 'targets': [ |
| 61 | { |
| 62 | 'target_name': 'ipc', |
[email protected] | 7c85437 | 2011-08-15 20:41:46 | [diff] [blame] | 63 | 'type': '<(component)', |
[email protected] | 886a17e3 | 2009-12-07 21:09:39 | [diff] [blame] | 64 | 'variables': { |
| 65 | 'ipc_target': 1, |
| 66 | }, |
| 67 | 'dependencies': [ |
| 68 | '../base/base.gyp:base', |
[email protected] | 3fa3f67 | 2011-04-28 01:18:24 | [diff] [blame] | 69 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | 886a17e3 | 2009-12-07 21:09:39 | [diff] [blame] | 70 | ], |
| 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] | 7c85437 | 2011-08-15 20:41:46 | [diff] [blame] | 85 | 'type': '<(component)', |
[email protected] | 886a17e3 | 2009-12-07 21:09:39 | [diff] [blame] | 86 | 'variables': { |
| 87 | 'ipc_target': 1, |
| 88 | }, |
| 89 | 'dependencies': [ |
| 90 | '../base/base.gyp:base_nacl_win64', |
[email protected] | 7c85437 | 2011-08-15 20:41:46 | [diff] [blame] | 91 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64', |
[email protected] | 886a17e3 | 2009-12-07 21:09:39 | [diff] [blame] | 92 | ], |
| 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] | 5153767c | 2009-12-22 01:52:50 | [diff] [blame] | 101 | 'Common_Base': { |
[email protected] | 886a17e3 | 2009-12-07 21:09:39 | [diff] [blame] | 102 | 'msvs_target_platform': 'x64', |
| 103 | }, |
| 104 | }, |
| 105 | }, |
| 106 | ], |
| 107 | }], |
| 108 | ], |
| 109 | } |