OLD | NEW |
(Empty) | |
| 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 'includes': [ |
| 7 '../build/common.gypi', |
| 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=="linux"', {'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 'targets': [ |
| 30 { |
| 31 'target_name': 'ipc', |
| 32 'type': '<(library)', |
| 33 'dependencies': [ |
| 34 '../base/base.gyp:base', |
| 35 ], |
| 36 'include_dirs': [ |
| 37 '..', |
| 38 ], |
| 39 'sources': [ |
| 40 'file_descriptor_set_posix.cc', |
| 41 'file_descriptor_set_posix.h', |
| 42 'ipc_channel.h', |
| 43 'ipc_channel_handle.h', |
| 44 'ipc_channel_posix.cc', |
| 45 'ipc_channel_posix.h', |
| 46 'ipc_channel_proxy.cc', |
| 47 'ipc_channel_proxy.h', |
| 48 'ipc_channel_win.cc', |
| 49 'ipc_channel_win.h', |
| 50 'ipc_descriptors.h', |
| 51 'ipc_logging.cc', |
| 52 'ipc_logging.h', |
| 53 'ipc_message.cc', |
| 54 'ipc_message.h', |
| 55 'ipc_message_macros.h', |
| 56 'ipc_message_utils.cc', |
| 57 'ipc_message_utils.h', |
| 58 'ipc_switches.cc', |
| 59 'ipc_switches.h', |
| 60 'ipc_sync_channel.cc', |
| 61 'ipc_sync_channel.h', |
| 62 'ipc_sync_message.cc', |
| 63 'ipc_sync_message.h', |
| 64 ], |
| 65 'direct_dependent_settings': { |
| 66 'include_dirs': [ |
| 67 '..', |
| 68 ], |
| 69 }, |
| 70 }, |
| 71 { |
| 72 'target_name': 'ipc_tests', |
| 73 'type': 'executable', |
| 74 'msvs_guid': 'B92AE829-E1CD-4781-824A-DCB1603A1672', |
| 75 'dependencies': [ |
| 76 'ipc', |
| 77 '../base/base.gyp:base', |
| 78 '../testing/gtest.gyp:gtest', |
| 79 ], |
| 80 'include_dirs': [ |
| 81 '..' |
| 82 ], |
| 83 'sources': [ |
| 84 'file_descriptor_set_unittest.cc', |
| 85 'ipc_fuzzing_tests.cc', |
| 86 'ipc_message_unittest.cc', |
| 87 'ipc_send_fds_test.cc', |
| 88 'ipc_sync_channel_unittest.cc', |
| 89 'ipc_sync_message_unittest.cc', |
| 90 'ipc_sync_message_unittest.h', |
| 91 'ipc_tests.cc', |
| 92 'ipc_tests.h', |
| 93 ], |
| 94 'conditions': [ |
| 95 ['OS=="linux"', { |
| 96 'dependencies': [ |
| 97 '../build/linux/system.gyp:gtk', |
| 98 ], |
| 99 }], |
| 100 ['OS=="linux" and toolkit_views==1', { |
| 101 'dependencies': [ |
| 102 '../views/views.gyp:views', |
| 103 ], |
| 104 }], |
| 105 ], |
| 106 }, |
| 107 ] |
| 108 } |
OLD | NEW |