2011-09-13 17:17:49 +00:00
|
|
|
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
# TODO: Rename files to use *_linux.cpp etc. names, to automatically include relevant files. Remove conditions section.
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
'includes': [
|
|
|
|
|
'../../common_settings.gypi', # Common settings
|
|
|
|
|
],
|
|
|
|
|
'targets': [
|
|
|
|
|
{
|
|
|
|
|
'target_name': 'system_wrappers',
|
|
|
|
|
'type': '<(library)',
|
|
|
|
|
'include_dirs': [
|
|
|
|
|
'spreadsortlib',
|
|
|
|
|
'../interface',
|
|
|
|
|
],
|
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
|
'include_dirs': [
|
|
|
|
|
'../interface',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
'sources': [
|
|
|
|
|
'../interface/aligned_malloc.h',
|
|
|
|
|
'../interface/atomic32_wrapper.h',
|
|
|
|
|
'../interface/condition_variable_wrapper.h',
|
|
|
|
|
'../interface/cpu_wrapper.h',
|
|
|
|
|
'../interface/cpu_features_wrapper.h',
|
|
|
|
|
'../interface/critical_section_wrapper.h',
|
2011-08-29 07:39:02 +00:00
|
|
|
'../interface/data_log.h',
|
2011-10-10 08:06:17 +00:00
|
|
|
'../interface/data_log_c.h',
|
2011-08-29 07:39:02 +00:00
|
|
|
'../interface/data_log_impl.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'../interface/event_wrapper.h',
|
|
|
|
|
'../interface/file_wrapper.h',
|
2011-09-13 17:17:49 +00:00
|
|
|
'../interface/fix_interlocked_exchange_pointer_windows.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'../interface/list_wrapper.h',
|
|
|
|
|
'../interface/map_wrapper.h',
|
2011-09-02 12:51:35 +00:00
|
|
|
'../interface/ref_count.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'../interface/rw_lock_wrapper.h',
|
2011-08-29 07:39:02 +00:00
|
|
|
'../interface/scoped_ptr.h',
|
2011-09-13 17:17:49 +00:00
|
|
|
'../interface/scoped_refptr.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'../interface/sort.h',
|
|
|
|
|
'../interface/thread_wrapper.h',
|
|
|
|
|
'../interface/tick_util.h',
|
|
|
|
|
'../interface/trace.h',
|
|
|
|
|
'aligned_malloc.cc',
|
|
|
|
|
'atomic32.cc',
|
|
|
|
|
'atomic32_linux.h',
|
|
|
|
|
'atomic32_mac.h',
|
|
|
|
|
'atomic32_windows.h',
|
|
|
|
|
'condition_variable.cc',
|
2011-08-01 17:04:04 +00:00
|
|
|
'condition_variable_posix.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'condition_variable_windows.h',
|
|
|
|
|
'cpu.cc',
|
|
|
|
|
'cpu_linux.h',
|
|
|
|
|
'cpu_mac.h',
|
|
|
|
|
'cpu_windows.h',
|
|
|
|
|
'cpu_features.cc',
|
|
|
|
|
'critical_section.cc',
|
2011-08-01 17:04:04 +00:00
|
|
|
'critical_section_posix.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'critical_section_windows.h',
|
2011-10-10 08:06:17 +00:00
|
|
|
'data_log_c.cc',
|
2011-07-07 08:21:25 +00:00
|
|
|
'event.cc',
|
2011-08-01 17:04:04 +00:00
|
|
|
'event_posix.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'event_windows.h',
|
|
|
|
|
'file_impl.cc',
|
|
|
|
|
'file_impl.h',
|
|
|
|
|
'list_no_stl.cc',
|
|
|
|
|
'map.cc',
|
|
|
|
|
'rw_lock.cc',
|
2011-08-01 17:04:04 +00:00
|
|
|
'rw_lock_posix.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'rw_lock_windows.h',
|
|
|
|
|
'sort.cc',
|
|
|
|
|
'thread.cc',
|
2011-08-01 17:04:04 +00:00
|
|
|
'thread_posix.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'thread_windows.h',
|
2011-09-13 17:17:49 +00:00
|
|
|
'thread_windows_set_name.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'trace_impl.cc',
|
|
|
|
|
'trace_impl.h',
|
2011-08-01 17:04:04 +00:00
|
|
|
'trace_posix.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'trace_windows.h',
|
|
|
|
|
],
|
|
|
|
|
'conditions': [
|
2011-08-01 17:04:04 +00:00
|
|
|
['os_posix==1', {
|
|
|
|
|
'sources': [
|
|
|
|
|
'condition_variable_posix.cc',
|
|
|
|
|
'critical_section_posix.cc',
|
|
|
|
|
'event_posix.cc',
|
|
|
|
|
'rw_lock_posix.cc',
|
|
|
|
|
'thread_posix.cc',
|
|
|
|
|
'trace_posix.cc',
|
|
|
|
|
],
|
|
|
|
|
}],
|
2011-08-29 07:39:02 +00:00
|
|
|
['enable_data_logging==1', {
|
|
|
|
|
'sources': [
|
|
|
|
|
'data_log.cc',
|
|
|
|
|
],
|
|
|
|
|
},{
|
|
|
|
|
'sources': [
|
|
|
|
|
'data_log_dummy.cc',
|
|
|
|
|
],
|
|
|
|
|
},],
|
2011-07-07 08:21:25 +00:00
|
|
|
['OS=="linux"', {
|
|
|
|
|
'sources': [
|
|
|
|
|
'cpu_linux.cc',
|
|
|
|
|
],
|
|
|
|
|
'link_settings': {
|
|
|
|
|
'libraries': [
|
|
|
|
|
'-lrt',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
}],
|
|
|
|
|
['OS=="mac"', {
|
|
|
|
|
'sources': [
|
|
|
|
|
'cpu_mac.cc',
|
|
|
|
|
],
|
2011-08-25 20:30:25 +00:00
|
|
|
'link_settings': {
|
|
|
|
|
'libraries': [
|
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
|
|
|
|
|
],
|
|
|
|
|
},
|
2011-07-07 08:21:25 +00:00
|
|
|
}],
|
|
|
|
|
['OS=="win"', {
|
|
|
|
|
'sources': [
|
|
|
|
|
'condition_variable_windows.cc',
|
|
|
|
|
'cpu_windows.cc',
|
|
|
|
|
'critical_section_windows.cc',
|
|
|
|
|
'event_windows.cc',
|
|
|
|
|
'rw_lock_windows.cc',
|
|
|
|
|
'thread_windows.cc',
|
|
|
|
|
'trace_windows.cc',
|
|
|
|
|
],
|
|
|
|
|
'link_settings': {
|
|
|
|
|
'libraries': [
|
|
|
|
|
'-lwinmm.lib',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
}],
|
2011-08-01 17:04:04 +00:00
|
|
|
] # conditions
|
2011-07-07 08:21:25 +00:00
|
|
|
},
|
|
|
|
|
], # targets
|
2011-10-31 17:10:01 +00:00
|
|
|
'conditions': [
|
2011-08-08 12:08:15 +00:00
|
|
|
['build_with_chromium==0', {
|
|
|
|
|
'targets': [
|
|
|
|
|
{
|
2011-10-31 17:10:01 +00:00
|
|
|
'target_name': 'system_wrappers_unittests',
|
2011-08-08 12:08:15 +00:00
|
|
|
'type': 'executable',
|
|
|
|
|
'dependencies': [
|
2011-10-31 17:10:01 +00:00
|
|
|
'system_wrappers',
|
|
|
|
|
'<(webrtc_root)/../testing/gtest.gyp:gtest',
|
|
|
|
|
'<(webrtc_root)/../test/test.gyp:test_support',
|
2011-08-08 12:08:15 +00:00
|
|
|
],
|
|
|
|
|
'sources': [
|
2011-10-31 17:10:01 +00:00
|
|
|
'cpu_wrapper_unittest.cc',
|
|
|
|
|
'list_unittest.cc',
|
|
|
|
|
'map_unittest.cc',
|
|
|
|
|
'data_log_helpers_unittest.cc',
|
|
|
|
|
'data_log_c_helpers_unittest.c',
|
|
|
|
|
'data_log_c_helpers_unittest.h',
|
|
|
|
|
'<(webrtc_root)/../test/run_all_unittests.cc',
|
|
|
|
|
],
|
|
|
|
|
'conditions': [
|
|
|
|
|
['enable_data_logging==1', {
|
|
|
|
|
'sources': [ 'data_log_unittest.cc', ],
|
|
|
|
|
}, {
|
|
|
|
|
'sources': [ 'data_log_unittest_disabled.cc', ],
|
|
|
|
|
}],
|
2011-08-08 12:08:15 +00:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
], # targets
|
|
|
|
|
}], # build_with_chromium
|
|
|
|
|
], # conditions
|
2011-07-07 08:21:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
|
# tab-width:2
|
|
|
|
|
# indent-tabs-mode:nil
|
|
|
|
|
# End:
|
|
|
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|