| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'target_defaults': { | 6 'target_defaults': { |
| 7 'variables': { | 7 'variables': { |
| 8 'ipc_target': 0, | 8 'ipc_target': 0, |
| 9 }, | 9 }, |
| 10 'target_conditions': [ | 10 'target_conditions': [ |
| 11 # This part is shared between the targets defined below. | 11 # This part is shared between the targets defined below. |
| 12 ['ipc_target==1', { | 12 ['ipc_target==1', { |
| 13 'sources': [ | 13 'sources': [ |
| 14 'file_descriptor_set_posix.cc', | 14 'file_descriptor_set_posix.cc', |
| 15 'file_descriptor_set_posix.h', | 15 'file_descriptor_set_posix.h', |
| 16 'ipc_channel.h', | 16 'ipc_channel.h', |
| 17 'ipc_channel_handle.h', | 17 'ipc_channel_handle.h', |
| 18 'ipc_channel_posix.cc', | 18 'ipc_channel_posix.cc', |
| 19 'ipc_channel_posix.h', | 19 'ipc_channel_posix.h', |
| 20 'ipc_channel_proxy.cc', | 20 'ipc_channel_proxy.cc', |
| 21 'ipc_channel_proxy.h', | 21 'ipc_channel_proxy.h', |
| 22 'ipc_channel_win.cc', | 22 'ipc_channel_win.cc', |
| 23 'ipc_channel_win.h', | 23 'ipc_channel_win.h', |
| 24 'ipc_descriptors.h', | 24 'ipc_descriptors.h', |
| 25 'ipc_export.h', |
| 25 'ipc_logging.cc', | 26 'ipc_logging.cc', |
| 26 'ipc_logging.h', | 27 'ipc_logging.h', |
| 27 'ipc_message.cc', | 28 'ipc_message.cc', |
| 28 'ipc_message.h', | 29 'ipc_message.h', |
| 29 'ipc_message_macros.h', | 30 'ipc_message_macros.h', |
| 30 'ipc_message_utils.cc', | 31 'ipc_message_utils.cc', |
| 31 'ipc_message_utils.h', | 32 'ipc_message_utils.h', |
| 32 'ipc_param_traits.h', | 33 'ipc_param_traits.h', |
| 33 'ipc_platform_file.cc', | 34 'ipc_platform_file.cc', |
| 34 'ipc_platform_file.h', | 35 'ipc_platform_file.h', |
| 35 'ipc_switches.cc', | 36 'ipc_switches.cc', |
| 36 'ipc_switches.h', | 37 'ipc_switches.h', |
| 37 'ipc_sync_channel.cc', | 38 'ipc_sync_channel.cc', |
| 38 'ipc_sync_channel.h', | 39 'ipc_sync_channel.h', |
| 39 'ipc_sync_message.cc', | 40 'ipc_sync_message.cc', |
| 40 'ipc_sync_message.h', | 41 'ipc_sync_message.h', |
| 41 'ipc_sync_message_filter.cc', | 42 'ipc_sync_message_filter.cc', |
| 42 'ipc_sync_message_filter.h', | 43 'ipc_sync_message_filter.h', |
| 43 'param_traits_log_macros.h', | 44 'param_traits_log_macros.h', |
| 44 'param_traits_macros.h', | 45 'param_traits_macros.h', |
| 45 'param_traits_read_macros.h', | 46 'param_traits_read_macros.h', |
| 46 'param_traits_write_macros.h', | 47 'param_traits_write_macros.h', |
| 47 'struct_constructor_macros.h', | 48 'struct_constructor_macros.h', |
| 48 'struct_destructor_macros.h', | 49 'struct_destructor_macros.h', |
| 49 ], | 50 ], |
| 51 'defines': [ |
| 52 'IPC_IMPLEMENTATION', |
| 53 ], |
| 50 'include_dirs': [ | 54 'include_dirs': [ |
| 51 '..', | 55 '..', |
| 52 ], | 56 ], |
| 53 }], | 57 }], |
| 54 ], | 58 ], |
| 55 }, | 59 }, |
| 56 'targets': [ | 60 'targets': [ |
| 57 { | 61 { |
| 58 'target_name': 'ipc', | 62 'target_name': 'ipc', |
| 59 'type': 'static_library', | 63 'type': '<(component)', |
| 60 'variables': { | 64 'variables': { |
| 61 'ipc_target': 1, | 65 'ipc_target': 1, |
| 62 }, | 66 }, |
| 63 'dependencies': [ | 67 'dependencies': [ |
| 64 '../base/base.gyp:base', | 68 '../base/base.gyp:base', |
| 65 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 69 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
| 66 ], | 70 ], |
| 67 # TODO(gregoryd): direct_dependent_settings should be shared with the | 71 # TODO(gregoryd): direct_dependent_settings should be shared with the |
| 68 # 64-bit target, but it doesn't work due to a bug in gyp | 72 # 64-bit target, but it doesn't work due to a bug in gyp |
| 69 'direct_dependent_settings': { | 73 'direct_dependent_settings': { |
| 70 'include_dirs': [ | 74 'include_dirs': [ |
| 71 '..', | 75 '..', |
| 72 ], | 76 ], |
| 73 }, | 77 }, |
| 74 }, | 78 }, |
| 75 ], | 79 ], |
| 76 'conditions': [ | 80 'conditions': [ |
| 77 ['OS=="win"', { | 81 ['OS=="win"', { |
| 78 'targets': [ | 82 'targets': [ |
| 79 { | 83 { |
| 80 'target_name': 'ipc_win64', | 84 'target_name': 'ipc_win64', |
| 81 'type': 'static_library', | 85 'type': '<(component)', |
| 82 'variables': { | 86 'variables': { |
| 83 'ipc_target': 1, | 87 'ipc_target': 1, |
| 84 }, | 88 }, |
| 85 'dependencies': [ | 89 'dependencies': [ |
| 86 '../base/base.gyp:base_nacl_win64', | 90 '../base/base.gyp:base_nacl_win64', |
| 87 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn
amic_annotations', | 91 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn
amic_annotations_win64', |
| 88 ], | 92 ], |
| 89 # TODO(gregoryd): direct_dependent_settings should be shared with the | 93 # TODO(gregoryd): direct_dependent_settings should be shared with the |
| 90 # 32-bit target, but it doesn't work due to a bug in gyp | 94 # 32-bit target, but it doesn't work due to a bug in gyp |
| 91 'direct_dependent_settings': { | 95 'direct_dependent_settings': { |
| 92 'include_dirs': [ | 96 'include_dirs': [ |
| 93 '..', | 97 '..', |
| 94 ], | 98 ], |
| 95 }, | 99 }, |
| 96 'configurations': { | 100 'configurations': { |
| 97 'Common_Base': { | 101 'Common_Base': { |
| 98 'msvs_target_platform': 'x64', | 102 'msvs_target_platform': 'x64', |
| 99 }, | 103 }, |
| 100 }, | 104 }, |
| 101 }, | 105 }, |
| 102 ], | 106 ], |
| 103 }], | 107 }], |
| 104 ], | 108 ], |
| 105 } | 109 } |
| OLD | NEW |