2012-04-19 14:28:45 +00:00
|
|
|
# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
2011-09-13 17:17:49 +00:00
|
|
|
#
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
{
|
2011-12-15 00:17:43 +00:00
|
|
|
'includes': [ '../../build/common.gypi', ],
|
2011-07-07 08:21:25 +00:00
|
|
|
'targets': [
|
|
|
|
|
{
|
|
|
|
|
'target_name': 'system_wrappers',
|
|
|
|
|
'type': '<(library)',
|
|
|
|
|
'include_dirs': [
|
|
|
|
|
'spreadsortlib',
|
|
|
|
|
'../interface',
|
|
|
|
|
],
|
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
|
'include_dirs': [
|
|
|
|
|
'../interface',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
'sources': [
|
|
|
|
|
'../interface/aligned_malloc.h',
|
2012-04-19 14:28:45 +00:00
|
|
|
'../interface/atomic32.h',
|
2013-01-17 14:01:20 +00:00
|
|
|
'../interface/clock.h',
|
2012-04-10 11:53:07 +00:00
|
|
|
'../interface/compile_assert.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'../interface/condition_variable_wrapper.h',
|
2011-11-08 08:44:17 +00:00
|
|
|
'../interface/cpu_info.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'../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',
|
2012-12-11 21:19:08 +00:00
|
|
|
'../interface/event_tracer.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'../interface/event_wrapper.h',
|
|
|
|
|
'../interface/file_wrapper.h',
|
2011-12-15 00:17:43 +00:00
|
|
|
'../interface/fix_interlocked_exchange_pointer_win.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'../interface/list_wrapper.h',
|
2012-11-14 19:07:54 +00:00
|
|
|
'../interface/logging.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'../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',
|
2012-06-18 11:24:57 +00:00
|
|
|
'../interface/sleep.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'../interface/sort.h',
|
2011-12-14 02:36:33 +00:00
|
|
|
'../interface/static_instance.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'../interface/thread_wrapper.h',
|
|
|
|
|
'../interface/tick_util.h',
|
|
|
|
|
'../interface/trace.h',
|
2012-12-11 21:19:08 +00:00
|
|
|
'../interface/trace_event.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'aligned_malloc.cc',
|
2012-04-19 14:28:45 +00:00
|
|
|
'atomic32_mac.cc',
|
2012-04-19 15:38:10 +00:00
|
|
|
'atomic32_posix.cc',
|
2012-04-19 14:28:45 +00:00
|
|
|
'atomic32_win.cc',
|
2013-01-17 14:01:20 +00:00
|
|
|
'clock.cc',
|
2011-07-07 08:21:25 +00:00
|
|
|
'condition_variable.cc',
|
2011-12-15 00:17:43 +00:00
|
|
|
'condition_variable_posix.cc',
|
2011-08-01 17:04:04 +00:00
|
|
|
'condition_variable_posix.h',
|
2011-12-15 00:17:43 +00:00
|
|
|
'condition_variable_win.cc',
|
|
|
|
|
'condition_variable_win.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'cpu.cc',
|
2011-12-15 00:17:43 +00:00
|
|
|
'cpu_no_op.cc',
|
2011-11-08 08:44:17 +00:00
|
|
|
'cpu_info.cc',
|
2011-12-15 00:17:43 +00:00
|
|
|
'cpu_linux.cc',
|
2011-07-07 08:21:25 +00:00
|
|
|
'cpu_linux.h',
|
2011-12-15 00:17:43 +00:00
|
|
|
'cpu_mac.cc',
|
2011-07-07 08:21:25 +00:00
|
|
|
'cpu_mac.h',
|
2011-12-15 00:17:43 +00:00
|
|
|
'cpu_win.cc',
|
|
|
|
|
'cpu_win.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'cpu_features.cc',
|
|
|
|
|
'critical_section.cc',
|
2011-12-15 00:17:43 +00:00
|
|
|
'critical_section_posix.cc',
|
2011-08-01 17:04:04 +00:00
|
|
|
'critical_section_posix.h',
|
2011-12-15 00:17:43 +00:00
|
|
|
'critical_section_win.cc',
|
|
|
|
|
'critical_section_win.h',
|
|
|
|
|
'data_log.cc',
|
2011-10-10 08:06:17 +00:00
|
|
|
'data_log_c.cc',
|
2011-12-15 00:17:43 +00:00
|
|
|
'data_log_no_op.cc',
|
2011-07-07 08:21:25 +00:00
|
|
|
'event.cc',
|
2011-12-15 00:17:43 +00:00
|
|
|
'event_posix.cc',
|
2011-08-01 17:04:04 +00:00
|
|
|
'event_posix.h',
|
2012-12-11 21:19:08 +00:00
|
|
|
'event_tracer.cc',
|
2011-12-15 00:17:43 +00:00
|
|
|
'event_win.cc',
|
|
|
|
|
'event_win.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'file_impl.cc',
|
|
|
|
|
'file_impl.h',
|
|
|
|
|
'list_no_stl.cc',
|
2012-11-14 19:07:54 +00:00
|
|
|
'logging.cc',
|
2012-11-23 19:30:59 +00:00
|
|
|
'logging_no_op.cc',
|
2011-07-07 08:21:25 +00:00
|
|
|
'map.cc',
|
|
|
|
|
'rw_lock.cc',
|
2012-09-25 20:27:51 +00:00
|
|
|
'rw_lock_generic.cc',
|
|
|
|
|
'rw_lock_generic.h',
|
2011-12-15 00:17:43 +00:00
|
|
|
'rw_lock_posix.cc',
|
2011-08-01 17:04:04 +00:00
|
|
|
'rw_lock_posix.h',
|
2011-12-15 00:17:43 +00:00
|
|
|
'rw_lock_win.cc',
|
|
|
|
|
'rw_lock_win.h',
|
2012-11-07 13:37:19 +00:00
|
|
|
'set_thread_name_win.h',
|
2012-06-18 11:24:57 +00:00
|
|
|
'sleep.cc',
|
2011-07-07 08:21:25 +00:00
|
|
|
'sort.cc',
|
2012-11-07 13:37:19 +00:00
|
|
|
'tick_util.cc',
|
2011-07-07 08:21:25 +00:00
|
|
|
'thread.cc',
|
2011-12-15 00:17:43 +00:00
|
|
|
'thread_posix.cc',
|
2011-08-01 17:04:04 +00:00
|
|
|
'thread_posix.h',
|
2011-12-15 00:17:43 +00:00
|
|
|
'thread_win.cc',
|
|
|
|
|
'thread_win.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
'trace_impl.cc',
|
|
|
|
|
'trace_impl.h',
|
2011-12-15 00:17:43 +00:00
|
|
|
'trace_impl_no_op.cc',
|
|
|
|
|
'trace_posix.cc',
|
2011-08-01 17:04:04 +00:00
|
|
|
'trace_posix.h',
|
2011-12-15 00:17:43 +00:00
|
|
|
'trace_win.cc',
|
|
|
|
|
'trace_win.h',
|
2011-07-07 08:21:25 +00:00
|
|
|
],
|
|
|
|
|
'conditions': [
|
2011-08-29 07:39:02 +00:00
|
|
|
['enable_data_logging==1', {
|
2011-12-15 00:17:43 +00:00
|
|
|
'sources!': [ 'data_log_no_op.cc', ],
|
2012-11-14 19:07:54 +00:00
|
|
|
}, {
|
2011-12-15 00:17:43 +00:00
|
|
|
'sources!': [ 'data_log.cc', ],
|
2011-08-29 07:39:02 +00:00
|
|
|
},],
|
2012-11-14 19:07:54 +00:00
|
|
|
['enable_tracing==1', {
|
|
|
|
|
'sources!': [
|
2012-11-23 19:30:59 +00:00
|
|
|
'logging_no_op.cc',
|
2012-11-14 19:07:54 +00:00
|
|
|
'trace_impl_no_op.cc',
|
|
|
|
|
],
|
|
|
|
|
}, {
|
|
|
|
|
'sources!': [
|
2012-11-23 19:30:59 +00:00
|
|
|
'logging.cc',
|
2012-11-14 19:07:54 +00:00
|
|
|
'trace_impl.cc',
|
|
|
|
|
'trace_impl.h',
|
|
|
|
|
'trace_posix.cc',
|
|
|
|
|
'trace_posix.h',
|
|
|
|
|
'trace_win.cc',
|
|
|
|
|
'trace_win.h',
|
|
|
|
|
],
|
|
|
|
|
}],
|
2012-05-08 15:20:02 +00:00
|
|
|
['OS=="android"', {
|
|
|
|
|
'dependencies': [ 'cpu_features_android', ],
|
|
|
|
|
}],
|
2011-07-07 08:21:25 +00:00
|
|
|
['OS=="linux"', {
|
|
|
|
|
'link_settings': {
|
2011-12-15 00:17:43 +00:00
|
|
|
'libraries': [ '-lrt', ],
|
2011-07-07 08:21:25 +00:00
|
|
|
},
|
|
|
|
|
}],
|
|
|
|
|
['OS=="mac"', {
|
2011-08-25 20:30:25 +00:00
|
|
|
'link_settings': {
|
2011-12-15 00:17:43 +00:00
|
|
|
'libraries': [ '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework', ],
|
2011-08-25 20:30:25 +00:00
|
|
|
},
|
2012-04-19 15:38:10 +00:00
|
|
|
'sources!': [
|
|
|
|
|
'atomic32_posix.cc',
|
|
|
|
|
],
|
2011-07-07 08:21:25 +00:00
|
|
|
}],
|
|
|
|
|
['OS=="win"', {
|
|
|
|
|
'link_settings': {
|
2011-12-15 00:17:43 +00:00
|
|
|
'libraries': [ '-lwinmm.lib', ],
|
2011-07-07 08:21:25 +00:00
|
|
|
},
|
|
|
|
|
}],
|
2011-11-08 08:44:17 +00:00
|
|
|
['build_with_chromium==1', {
|
|
|
|
|
'sources!': [
|
|
|
|
|
'cpu.cc',
|
2011-12-15 00:17:43 +00:00
|
|
|
'cpu_linux.h',
|
|
|
|
|
'cpu_mac.h',
|
|
|
|
|
'cpu_win.h',
|
2011-11-08 08:44:17 +00:00
|
|
|
],
|
|
|
|
|
}, {
|
|
|
|
|
'sources!': [
|
2011-12-15 00:17:43 +00:00
|
|
|
'cpu_no_op.cc',
|
2011-11-08 08:44:17 +00:00
|
|
|
],
|
2012-11-14 19:07:54 +00:00
|
|
|
}],
|
2012-09-10 17:58:21 +00:00
|
|
|
], # conditions
|
|
|
|
|
'target_conditions': [
|
|
|
|
|
# We need to do this in a target_conditions block to override the
|
|
|
|
|
# filename_rules filters.
|
|
|
|
|
['OS=="ios"', {
|
|
|
|
|
# Pull in specific Mac files for iOS (which have been filtered out
|
|
|
|
|
# by file name rules).
|
|
|
|
|
'sources/': [
|
|
|
|
|
['include', '^atomic32_mac\\.'],
|
|
|
|
|
['include', '^cpu_mac\\.'],
|
|
|
|
|
],
|
|
|
|
|
'sources!': [
|
|
|
|
|
'atomic32_posix.cc',
|
|
|
|
|
],
|
|
|
|
|
}],
|
|
|
|
|
],
|
2011-07-07 08:21:25 +00:00
|
|
|
},
|
|
|
|
|
], # targets
|
2011-10-31 17:10:01 +00:00
|
|
|
'conditions': [
|
2012-05-08 15:20:02 +00:00
|
|
|
['OS=="android"', {
|
|
|
|
|
'targets': [
|
|
|
|
|
{
|
|
|
|
|
'variables': {
|
|
|
|
|
# Treat this as third-party code.
|
|
|
|
|
'chromium_code': 0,
|
|
|
|
|
},
|
|
|
|
|
'target_name': 'cpu_features_android',
|
|
|
|
|
'type': '<(library)',
|
|
|
|
|
'sources': [
|
2012-05-08 21:33:04 +00:00
|
|
|
# TODO(leozwang): Ideally we want to audomatically exclude .c files
|
|
|
|
|
# as with .cc files, gyp currently only excludes .cc files.
|
|
|
|
|
'cpu_features_android.c',
|
2012-05-08 15:20:02 +00:00
|
|
|
],
|
2012-11-19 04:04:10 +00:00
|
|
|
'conditions': [
|
|
|
|
|
['build_with_chromium==1', {
|
2012-12-05 22:54:52 +00:00
|
|
|
'conditions': [
|
|
|
|
|
['android_build_type != 0', {
|
|
|
|
|
'libraries': [
|
|
|
|
|
'cpufeatures.a'
|
|
|
|
|
],
|
|
|
|
|
}, {
|
|
|
|
|
'dependencies': [
|
|
|
|
|
'<(android_ndk_root)/android_tools_ndk.gyp:cpu_features',
|
|
|
|
|
],
|
|
|
|
|
}],
|
2012-11-19 04:04:10 +00:00
|
|
|
],
|
|
|
|
|
}, {
|
|
|
|
|
'sources': [
|
|
|
|
|
'android/cpu-features.c',
|
|
|
|
|
'android/cpu-features.h',
|
|
|
|
|
],
|
|
|
|
|
}],
|
|
|
|
|
],
|
2012-05-08 15:20:02 +00:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
}],
|
2012-05-24 13:23:35 +00:00
|
|
|
['include_tests==1', {
|
2011-08-08 12:08:15 +00:00
|
|
|
'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',
|
2012-06-27 01:41:54 +00:00
|
|
|
'<(DEPTH)/testing/gtest.gyp:gtest',
|
|
|
|
|
'<(webrtc_root)/test/test.gyp:test_support_main',
|
2011-08-08 12:08:15 +00:00
|
|
|
],
|
|
|
|
|
'sources': [
|
2012-09-29 03:49:36 +00:00
|
|
|
'aligned_malloc_unittest.cc',
|
2012-06-19 13:49:48 +00:00
|
|
|
'condition_variable_unittest.cc',
|
2011-10-31 17:10:01 +00:00
|
|
|
'cpu_wrapper_unittest.cc',
|
2012-02-08 18:53:50 +00:00
|
|
|
'cpu_measurement_harness.h',
|
|
|
|
|
'cpu_measurement_harness.cc',
|
2012-06-20 06:45:56 +00:00
|
|
|
'critical_section_unittest.cc',
|
2012-12-11 21:19:08 +00:00
|
|
|
'event_tracer_unittest.cc',
|
2011-10-31 17:10:01 +00:00
|
|
|
'list_unittest.cc',
|
2012-11-14 19:07:54 +00:00
|
|
|
'logging_unittest.cc',
|
2011-10-31 17:10:01 +00:00
|
|
|
'map_unittest.cc',
|
2011-12-15 00:17:43 +00:00
|
|
|
'data_log_unittest.cc',
|
|
|
|
|
'data_log_unittest_disabled.cc',
|
2011-10-31 17:10:01 +00:00
|
|
|
'data_log_helpers_unittest.cc',
|
|
|
|
|
'data_log_c_helpers_unittest.c',
|
|
|
|
|
'data_log_c_helpers_unittest.h',
|
2012-05-22 15:57:34 +00:00
|
|
|
'thread_unittest.cc',
|
2012-10-05 14:36:54 +00:00
|
|
|
'thread_posix_unittest.cc',
|
2012-02-08 18:53:50 +00:00
|
|
|
'trace_unittest.cc',
|
2012-06-18 13:22:08 +00:00
|
|
|
'unittest_utilities_unittest.cc',
|
2011-10-31 17:10:01 +00:00
|
|
|
],
|
|
|
|
|
'conditions': [
|
|
|
|
|
['enable_data_logging==1', {
|
2011-12-15 00:17:43 +00:00
|
|
|
'sources!': [ 'data_log_unittest_disabled.cc', ],
|
2011-10-31 17:10:01 +00:00
|
|
|
}, {
|
2011-12-15 00:17:43 +00:00
|
|
|
'sources!': [ 'data_log_unittest.cc', ],
|
2011-10-31 17:10:01 +00:00
|
|
|
}],
|
2012-10-17 18:03:49 +00:00
|
|
|
['os_posix==0', {
|
2012-10-05 14:36:54 +00:00
|
|
|
'sources!': [ 'thread_posix_unittest.cc', ],
|
|
|
|
|
}],
|
2011-08-08 12:08:15 +00:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
], # targets
|
2012-05-24 13:23:35 +00:00
|
|
|
}], # include_tests
|
2011-08-08 12:08:15 +00:00
|
|
|
], # 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:
|