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. 8 9 { 10 'includes': [ '../../build/common.gypi', ], 11 'targets': [ 12 { 13 'target_name': 'system_wrappers', 14 'type': '<(library)', 15 'include_dirs': [ 16 'spreadsortlib', 17 '../interface', 18 ], 19 'direct_dependent_settings': { 20 'include_dirs': [ 21 '../interface', 22 ], 23 }, 24 'sources': [ 25 '../interface/aligned_malloc.h', 26 '../interface/atomic32_wrapper.h', 27 '../interface/condition_variable_wrapper.h', 28 '../interface/cpu_info.h', 29 '../interface/cpu_wrapper.h', 30 '../interface/cpu_features_wrapper.h', 31 '../interface/critical_section_wrapper.h', 32 '../interface/data_log.h', 33 '../interface/data_log_c.h', 34 '../interface/data_log_impl.h', 35 '../interface/event_wrapper.h', 36 '../interface/file_wrapper.h', 37 '../interface/fix_interlocked_exchange_pointer_win.h', 38 '../interface/list_wrapper.h', 39 '../interface/map_wrapper.h', 40 '../interface/ref_count.h', 41 '../interface/rw_lock_wrapper.h', 42 '../interface/scoped_ptr.h', 43 '../interface/scoped_refptr.h', 44 '../interface/sort.h', 45 '../interface/static_instance.h', 46 '../interface/thread_wrapper.h', 47 '../interface/tick_util.h', 48 '../interface/trace.h', 49 'aligned_malloc.cc', 50 'atomic32.cc', 51 'atomic32_linux.h', 52 'atomic32_mac.h', 53 'atomic32_win.h', 54 'condition_variable.cc', 55 'condition_variable_posix.cc', 56 'condition_variable_posix.h', 57 'condition_variable_win.cc', 58 'condition_variable_win.h', 59 'cpu.cc', 60 'cpu_no_op.cc', 61 'cpu_info.cc', 62 'cpu_linux.cc', 63 'cpu_linux.h', 64 'cpu_mac.cc', 65 'cpu_mac.h', 66 'cpu_win.cc', 67 'cpu_win.h', 68 'cpu_features.cc', 69 'critical_section.cc', 70 'critical_section_posix.cc', 71 'critical_section_posix.h', 72 'critical_section_win.cc', 73 'critical_section_win.h', 74 'data_log.cc', 75 'data_log_c.cc', 76 'data_log_no_op.cc', 77 'event.cc', 78 'event_posix.cc', 79 'event_posix.h', 80 'event_win.cc', 81 'event_win.h', 82 'file_impl.cc', 83 'file_impl.h', 84 'list_no_stl.cc', 85 'map.cc', 86 'rw_lock.cc', 87 'rw_lock_posix.cc', 88 'rw_lock_posix.h', 89 'rw_lock_win.cc', 90 'rw_lock_win.h', 91 'sort.cc', 92 'thread.cc', 93 'thread_posix.cc', 94 'thread_posix.h', 95 'thread_win.cc', 96 'thread_win.h', 97 'set_thread_name_win.h', 98 'trace_impl.cc', 99 'trace_impl.h', 100 'trace_impl_no_op.cc', 101 'trace_posix.cc', 102 'trace_posix.h', 103 'trace_win.cc', 104 'trace_win.h', 105 ], 106 'conditions': [ 107 ['enable_data_logging==1', { 108 'sources!': [ 'data_log_no_op.cc', ], 109 },{ 110 'sources!': [ 'data_log.cc', ], 111 },], 112 ['OS=="linux"', { 113 'link_settings': { 114 'libraries': [ '-lrt', ], 115 }, 116 }], 117 ['OS=="mac"', { 118 'link_settings': { 119 'libraries': [ '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework', ], 120 }, 121 }], 122 ['OS=="win"', { 123 'link_settings': { 124 'libraries': [ '-lwinmm.lib', ], 125 }, 126 }], 127 ['build_with_chromium==1', { 128 'sources!': [ 129 'cpu.cc', 130 'cpu_linux.h', 131 'cpu_mac.h', 132 'cpu_win.h', 133 'trace_impl.cc', 134 'trace_impl.h', 135 'trace_posix.cc', 136 'trace_posix.h', 137 'trace_win.cc', 138 'trace_win.h', 139 ], 140 }, { 141 'sources!': [ 142 'cpu_no_op.cc', 143 'trace_impl_no_op.cc', 144 ], 145 }] 146 ] # conditions 147 }, 148 ], # targets 149 'conditions': [ 150 ['build_with_chromium==0', { 151 'targets': [ 152 { 153 'target_name': 'system_wrappers_unittests', 154 'type': 'executable', 155 'dependencies': [ 156 'system_wrappers', 157 '<(webrtc_root)/../testing/gtest.gyp:gtest', 158 '<(webrtc_root)/../test/test.gyp:test_support_main', 159 ], 160 'sources': [ 161 'cpu_wrapper_unittest.cc', 162 'list_unittest.cc', 163 'map_unittest.cc', 164 'data_log_unittest.cc', 165 'data_log_unittest_disabled.cc', 166 'data_log_helpers_unittest.cc', 167 'data_log_c_helpers_unittest.c', 168 'data_log_c_helpers_unittest.h', 169 ], 170 'conditions': [ 171 ['enable_data_logging==1', { 172 'sources!': [ 'data_log_unittest_disabled.cc', ], 173 }, { 174 'sources!': [ 'data_log_unittest.cc', ], 175 }], 176 ], 177 }, 178 ], # targets 179 }], # build_with_chromium 180 ], # conditions 181 } 182 183 # Local Variables: 184 # tab-width:2 185 # indent-tabs-mode:nil 186 # End: 187 # vim: set expandtab tabstop=2 shiftwidth=2: 188