andrew@webrtc.org | a3c6d61 | 2011-09-13 17:17:49 +0000 | [diff] [blame] | 1 | # Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license |
| 4 | # that can be found in the LICENSE file in the root of the source |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 8 | |
| 9 | # TODO: Rename files to use *_linux.cpp etc. names, to automatically include relevant files. Remove conditions section. |
| 10 | |
| 11 | { |
| 12 | 'includes': [ |
| 13 | '../../common_settings.gypi', # Common settings |
| 14 | ], |
| 15 | 'targets': [ |
| 16 | { |
| 17 | 'target_name': 'system_wrappers', |
| 18 | 'type': '<(library)', |
| 19 | 'include_dirs': [ |
| 20 | 'spreadsortlib', |
| 21 | '../interface', |
| 22 | ], |
| 23 | 'direct_dependent_settings': { |
| 24 | 'include_dirs': [ |
| 25 | '../interface', |
| 26 | ], |
| 27 | }, |
| 28 | 'sources': [ |
| 29 | '../interface/aligned_malloc.h', |
| 30 | '../interface/atomic32_wrapper.h', |
| 31 | '../interface/condition_variable_wrapper.h', |
| 32 | '../interface/cpu_wrapper.h', |
| 33 | '../interface/cpu_features_wrapper.h', |
| 34 | '../interface/critical_section_wrapper.h', |
stefan@webrtc.org | c9cff24 | 2011-08-29 07:39:02 +0000 | [diff] [blame] | 35 | '../interface/data_log.h', |
henrik.lundin@webrtc.org | d855bd4 | 2011-10-10 08:06:17 +0000 | [diff] [blame] | 36 | '../interface/data_log_c.h', |
stefan@webrtc.org | c9cff24 | 2011-08-29 07:39:02 +0000 | [diff] [blame] | 37 | '../interface/data_log_impl.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 38 | '../interface/event_wrapper.h', |
| 39 | '../interface/file_wrapper.h', |
andrew@webrtc.org | a3c6d61 | 2011-09-13 17:17:49 +0000 | [diff] [blame] | 40 | '../interface/fix_interlocked_exchange_pointer_windows.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 41 | '../interface/list_wrapper.h', |
| 42 | '../interface/map_wrapper.h', |
perkj@google.com | 88a0da8 | 2011-09-02 12:51:35 +0000 | [diff] [blame] | 43 | '../interface/ref_count.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 44 | '../interface/rw_lock_wrapper.h', |
stefan@webrtc.org | c9cff24 | 2011-08-29 07:39:02 +0000 | [diff] [blame] | 45 | '../interface/scoped_ptr.h', |
andrew@webrtc.org | a3c6d61 | 2011-09-13 17:17:49 +0000 | [diff] [blame] | 46 | '../interface/scoped_refptr.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 47 | '../interface/sort.h', |
| 48 | '../interface/thread_wrapper.h', |
| 49 | '../interface/tick_util.h', |
| 50 | '../interface/trace.h', |
| 51 | 'aligned_malloc.cc', |
| 52 | 'atomic32.cc', |
| 53 | 'atomic32_linux.h', |
| 54 | 'atomic32_mac.h', |
| 55 | 'atomic32_windows.h', |
| 56 | 'condition_variable.cc', |
ajm@google.com | b5c49ff | 2011-08-01 17:04:04 +0000 | [diff] [blame] | 57 | 'condition_variable_posix.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 58 | 'condition_variable_windows.h', |
| 59 | 'cpu.cc', |
| 60 | 'cpu_linux.h', |
| 61 | 'cpu_mac.h', |
| 62 | 'cpu_windows.h', |
| 63 | 'cpu_features.cc', |
| 64 | 'critical_section.cc', |
ajm@google.com | b5c49ff | 2011-08-01 17:04:04 +0000 | [diff] [blame] | 65 | 'critical_section_posix.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 66 | 'critical_section_windows.h', |
henrik.lundin@webrtc.org | d855bd4 | 2011-10-10 08:06:17 +0000 | [diff] [blame] | 67 | 'data_log_c.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 68 | 'event.cc', |
ajm@google.com | b5c49ff | 2011-08-01 17:04:04 +0000 | [diff] [blame] | 69 | 'event_posix.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 70 | 'event_windows.h', |
| 71 | 'file_impl.cc', |
| 72 | 'file_impl.h', |
| 73 | 'list_no_stl.cc', |
| 74 | 'map.cc', |
| 75 | 'rw_lock.cc', |
ajm@google.com | b5c49ff | 2011-08-01 17:04:04 +0000 | [diff] [blame] | 76 | 'rw_lock_posix.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 77 | 'rw_lock_windows.h', |
| 78 | 'sort.cc', |
| 79 | 'thread.cc', |
ajm@google.com | b5c49ff | 2011-08-01 17:04:04 +0000 | [diff] [blame] | 80 | 'thread_posix.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 81 | 'thread_windows.h', |
andrew@webrtc.org | a3c6d61 | 2011-09-13 17:17:49 +0000 | [diff] [blame] | 82 | 'thread_windows_set_name.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 83 | 'trace_impl.cc', |
| 84 | 'trace_impl.h', |
ajm@google.com | b5c49ff | 2011-08-01 17:04:04 +0000 | [diff] [blame] | 85 | 'trace_posix.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 86 | 'trace_windows.h', |
| 87 | ], |
| 88 | 'conditions': [ |
ajm@google.com | b5c49ff | 2011-08-01 17:04:04 +0000 | [diff] [blame] | 89 | ['os_posix==1', { |
| 90 | 'sources': [ |
| 91 | 'condition_variable_posix.cc', |
| 92 | 'critical_section_posix.cc', |
| 93 | 'event_posix.cc', |
| 94 | 'rw_lock_posix.cc', |
| 95 | 'thread_posix.cc', |
| 96 | 'trace_posix.cc', |
| 97 | ], |
| 98 | }], |
stefan@webrtc.org | c9cff24 | 2011-08-29 07:39:02 +0000 | [diff] [blame] | 99 | ['enable_data_logging==1', { |
| 100 | 'sources': [ |
| 101 | 'data_log.cc', |
| 102 | ], |
| 103 | },{ |
| 104 | 'sources': [ |
| 105 | 'data_log_dummy.cc', |
| 106 | ], |
| 107 | },], |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 108 | ['OS=="linux"', { |
| 109 | 'sources': [ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 110 | 'cpu_linux.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 111 | ], |
| 112 | 'link_settings': { |
| 113 | 'libraries': [ |
| 114 | '-lrt', |
| 115 | ], |
| 116 | }, |
| 117 | }], |
| 118 | ['OS=="mac"', { |
| 119 | 'sources': [ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 120 | 'cpu_mac.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 121 | ], |
zakkhoyt@google.com | 59af6f1 | 2011-08-25 20:30:25 +0000 | [diff] [blame] | 122 | 'link_settings': { |
| 123 | 'libraries': [ |
| 124 | '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework', |
| 125 | ], |
| 126 | }, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 127 | }], |
| 128 | ['OS=="win"', { |
| 129 | 'sources': [ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 130 | 'condition_variable_windows.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 131 | 'cpu_windows.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 132 | 'critical_section_windows.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 133 | 'event_windows.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 134 | 'rw_lock_windows.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 135 | 'thread_windows.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 136 | 'trace_windows.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 137 | ], |
| 138 | 'link_settings': { |
| 139 | 'libraries': [ |
| 140 | '-lwinmm.lib', |
| 141 | ], |
| 142 | }, |
| 143 | }], |
ajm@google.com | b5c49ff | 2011-08-01 17:04:04 +0000 | [diff] [blame] | 144 | ] # conditions |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 145 | }, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 146 | ], # targets |
kjellander@webrtc.org | 177bb52 | 2011-10-31 17:10:01 +0000 | [diff] [blame^] | 147 | 'conditions': [ |
xians@google.com | 8706256 | 2011-08-08 12:08:15 +0000 | [diff] [blame] | 148 | ['build_with_chromium==0', { |
| 149 | 'targets': [ |
| 150 | { |
kjellander@webrtc.org | 177bb52 | 2011-10-31 17:10:01 +0000 | [diff] [blame^] | 151 | 'target_name': 'system_wrappers_unittests', |
xians@google.com | 8706256 | 2011-08-08 12:08:15 +0000 | [diff] [blame] | 152 | 'type': 'executable', |
| 153 | 'dependencies': [ |
kjellander@webrtc.org | 177bb52 | 2011-10-31 17:10:01 +0000 | [diff] [blame^] | 154 | 'system_wrappers', |
| 155 | '<(webrtc_root)/../testing/gtest.gyp:gtest', |
| 156 | '<(webrtc_root)/../test/test.gyp:test_support', |
xians@google.com | 8706256 | 2011-08-08 12:08:15 +0000 | [diff] [blame] | 157 | ], |
| 158 | 'sources': [ |
kjellander@webrtc.org | 177bb52 | 2011-10-31 17:10:01 +0000 | [diff] [blame^] | 159 | 'cpu_wrapper_unittest.cc', |
| 160 | 'list_unittest.cc', |
| 161 | 'map_unittest.cc', |
| 162 | 'data_log_helpers_unittest.cc', |
| 163 | 'data_log_c_helpers_unittest.c', |
| 164 | 'data_log_c_helpers_unittest.h', |
| 165 | '<(webrtc_root)/../test/run_all_unittests.cc', |
| 166 | ], |
| 167 | 'conditions': [ |
| 168 | ['enable_data_logging==1', { |
| 169 | 'sources': [ 'data_log_unittest.cc', ], |
| 170 | }, { |
| 171 | 'sources': [ 'data_log_unittest_disabled.cc', ], |
| 172 | }], |
xians@google.com | 8706256 | 2011-08-08 12:08:15 +0000 | [diff] [blame] | 173 | ], |
| 174 | }, |
| 175 | ], # targets |
| 176 | }], # build_with_chromium |
| 177 | ], # conditions |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 178 | } |
| 179 | |
| 180 | # Local Variables: |
| 181 | # tab-width:2 |
| 182 | # indent-tabs-mode:nil |
| 183 | # End: |
| 184 | # vim: set expandtab tabstop=2 shiftwidth=2: |