Move system_wrappers.gyp files to the proper directory.

Build targets should not refer to non-subpaths as was happening before when
 source/system_wrappers.gyp refers to ../interface/ files.

R=kjellander@webrtc.org, tommi@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/37609004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@8057 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
andresp@webrtc.org 2015-01-14 09:30:52 +00:00
parent a35f741bb0
commit 86e1e487e7
58 changed files with 379 additions and 373 deletions

View File

@ -357,8 +357,8 @@
'<(webrtc_root)/webrtc.gyp:webrtc', '<(webrtc_root)/webrtc.gyp:webrtc',
'<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine', '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
'<(webrtc_root)/sound/sound.gyp:rtc_sound', '<(webrtc_root)/sound/sound.gyp:rtc_sound',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers_default', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
'<(webrtc_root)/libjingle/xmllite/xmllite.gyp:rtc_xmllite', '<(webrtc_root)/libjingle/xmllite/xmllite.gyp:rtc_xmllite',
'<(webrtc_root)/libjingle/xmpp/xmpp.gyp:rtc_xmpp', '<(webrtc_root)/libjingle/xmpp/xmpp.gyp:rtc_xmpp',
'<(webrtc_root)/p2p/p2p.gyp:rtc_p2p', '<(webrtc_root)/p2p/p2p.gyp:rtc_p2p',

View File

@ -59,7 +59,7 @@ def main():
'modules_tests': 'webrtc/modules/modules_tests.isolate', 'modules_tests': 'webrtc/modules/modules_tests.isolate',
'modules_unittests': 'webrtc/modules/modules_unittests.isolate', 'modules_unittests': 'webrtc/modules/modules_unittests.isolate',
'system_wrappers_unittests': 'system_wrappers_unittests':
'webrtc/system_wrappers/source/system_wrappers_unittests.isolate', 'webrtc/system_wrappers/system_wrappers_unittests.isolate',
'test_support_unittests': 'webrtc/test/test_support_unittests.isolate', 'test_support_unittests': 'webrtc/test/test_support_unittests.isolate',
'tools_unittests': 'webrtc/tools/tools_unittests.isolate', 'tools_unittests': 'webrtc/tools/tools_unittests.isolate',
'video_capture_tests': 'video_capture_tests':

View File

@ -96,7 +96,7 @@
'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)system_wrappers_unittests<(SHARED_LIB_SUFFIX)', 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)system_wrappers_unittests<(SHARED_LIB_SUFFIX)',
}, },
'dependencies': [ 'dependencies': [
'<(webrtc_root)/system_wrappers/source/system_wrappers_tests.gyp:system_wrappers_unittests', '<(webrtc_root)/system_wrappers/system_wrappers_tests.gyp:system_wrappers_unittests',
], ],
'includes': [ 'includes': [
'../../build/apk_test.gypi', '../../build/apk_test.gypi',

View File

@ -15,7 +15,7 @@
'target_name': 'common_audio', 'target_name': 'common_audio',
'type': 'static_library', 'type': 'static_library',
'dependencies': [ 'dependencies': [
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'include_dirs': [ 'include_dirs': [
'resampler/include', 'resampler/include',

View File

@ -18,7 +18,7 @@
'libyuv/include', 'libyuv/include',
], ],
'dependencies': [ 'dependencies': [
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'direct_dependent_settings': { 'direct_dependent_settings': {
'include_dirs': [ 'include_dirs': [

View File

@ -15,7 +15,7 @@
'dependencies': [ 'dependencies': [
'<(webrtc_root)/common_video/common_video.gyp:common_video', '<(webrtc_root)/common_video/common_video.gyp:common_video',
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/test/test.gyp:test_support_main', '<(webrtc_root)/test/test.gyp:test_support_main',
], ],
'sources': [ 'sources': [

View File

@ -13,7 +13,7 @@
'type': 'static_library', 'type': 'static_library',
'dependencies': [ 'dependencies': [
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio', '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'include_dirs': [ 'include_dirs': [
'../interface', '../interface',

View File

@ -16,7 +16,7 @@
'iSACFix', 'iSACFix',
'webrtc_opus', 'webrtc_opus',
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/test/test.gyp:test_support_main', '<(webrtc_root)/test/test.gyp:test_support_main',
], ],
'sources': [ 'sources': [

View File

@ -18,7 +18,7 @@
'PCM16B', 'PCM16B',
'red', 'red',
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio', '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'audio_coding_defines': [], 'audio_coding_defines': [],
'conditions': [ 'conditions': [
@ -160,8 +160,8 @@
'audio_coding_module', 'audio_coding_module',
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(webrtc_root)/test/test.gyp:test_support', '<(webrtc_root)/test/test.gyp:test_support',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers_default', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags', '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
], ],
'sources': [ 'sources': [
@ -178,8 +178,8 @@
'audio_coding_module', 'audio_coding_module',
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(webrtc_root)/test/test.gyp:test_support', '<(webrtc_root)/test/test.gyp:test_support',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers_default', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags', '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
], ],
'sources': [ 'sources': [

View File

@ -21,7 +21,7 @@
#include "audio_coding_module.h" #include "audio_coding_module.h"
#include "engine_configurations.h" #include "engine_configurations.h"
#include "rw_lock_wrapper.h" #include "webrtc/system_wrappers/interface/rw_lock_wrapper.h"
// TODO(tlegrand): Consider removing usage of gtest. // TODO(tlegrand): Consider removing usage of gtest.
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"

View File

@ -13,10 +13,10 @@
#include <math.h> #include <math.h>
#include "common_types.h" #include "webrtc/common_types.h"
#include "SpatialAudio.h" #include "webrtc/modules/audio_coding/main/test/SpatialAudio.h"
#include "trace.h" #include "webrtc/system_wrappers/interface/trace.h"
#include "utility.h" #include "webrtc/system_wrappers/interface/trace.h"
#include "webrtc/test/testsupport/fileutils.h" #include "webrtc/test/testsupport/fileutils.h"
namespace webrtc { namespace webrtc {

View File

@ -28,7 +28,7 @@
'<@(codecs)', '<@(codecs)',
'<(DEPTH)/third_party/opus/opus.gyp:opus', '<(DEPTH)/third_party/opus/opus.gyp:opus',
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio', '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'audio_decoder_interface', 'audio_decoder_interface',
], ],
}, },

View File

@ -87,7 +87,7 @@
'neteq_unittest_tools', 'neteq_unittest_tools',
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags', '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers_default', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
], ],
'sources': [ 'sources': [
'tools/rtp_analyze.cc', 'tools/rtp_analyze.cc',
@ -135,7 +135,7 @@
'type': 'executable', 'type': 'executable',
'dependencies': [ 'dependencies': [
'neteq_test_tools', 'neteq_test_tools',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'sources': [ 'sources': [
'test/rtp_to_text.cc', 'test/rtp_to_text.cc',

View File

@ -17,7 +17,7 @@
* *
*/ */
#include "data_log.h" #include "webrtc/system_wrappers/interface/data_log.h"
#include "NETEQTEST_DummyRTPpacket.h" #include "NETEQTEST_DummyRTPpacket.h"
#include "NETEQTEST_RTPpacket.h" #include "NETEQTEST_RTPpacket.h"

View File

@ -14,7 +14,7 @@
'dependencies': [ 'dependencies': [
'audio_processing', 'audio_processing',
'webrtc_utility', 'webrtc_utility',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'include_dirs': [ 'include_dirs': [
'../interface', '../interface',

View File

@ -14,7 +14,7 @@
'dependencies': [ 'dependencies': [
'webrtc_utility', 'webrtc_utility',
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio', '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'include_dirs': [ 'include_dirs': [
'.', '.',
@ -223,7 +223,7 @@
'webrtc_utility', 'webrtc_utility',
'<(webrtc_root)/test/test.gyp:test_support_main', '<(webrtc_root)/test/test.gyp:test_support_main',
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'sources': [ 'sources': [
'test/audio_device_test_api.cc', 'test/audio_device_test_api.cc',
@ -237,7 +237,7 @@
'audio_device', 'audio_device',
'webrtc_utility', 'webrtc_utility',
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio', '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/test/test.gyp:test_support', '<(webrtc_root)/test/test.gyp:test_support',
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
], ],
@ -277,7 +277,7 @@
'webrtc_utility', 'webrtc_utility',
'<(DEPTH)/testing/gmock.gyp:gmock', '<(DEPTH)/testing/gmock.gyp:gmock',
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/test/test.gyp:test_support_main', '<(webrtc_root)/test/test.gyp:test_support_main',
], ],
'sources': [ 'sources': [

View File

@ -28,7 +28,7 @@
'<(webrtc_root)/base/base.gyp:rtc_base_approved', '<(webrtc_root)/base/base.gyp:rtc_base_approved',
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio', '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'<(webrtc_root)/modules/modules.gyp:iSAC', '<(webrtc_root)/modules/modules.gyp:iSAC',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'sources': [ 'sources': [
'aec/aec_core.c', 'aec/aec_core.c',

View File

@ -30,7 +30,7 @@
'audio_processing', 'audio_processing',
'audioproc_debug_proto', 'audioproc_debug_proto',
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/test/test.gyp:test_support', '<(webrtc_root)/test/test.gyp:test_support',
], ],
'sources': [ 'test/process_test.cc', ], 'sources': [ 'test/process_test.cc', ],
@ -50,7 +50,7 @@
'type': 'executable', 'type': 'executable',
'dependencies': [ 'dependencies': [
'audioproc_debug_proto', 'audioproc_debug_proto',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio', '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags', '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
], ],

View File

@ -12,7 +12,7 @@
'target_name': 'bitrate_controller', 'target_name': 'bitrate_controller',
'type': 'static_library', 'type': 'static_library',
'dependencies': [ 'dependencies': [
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'sources': [ 'sources': [
'bitrate_controller_impl.cc', 'bitrate_controller_impl.cc',

View File

@ -12,7 +12,7 @@
'target_name': 'desktop_capture', 'target_name': 'desktop_capture',
'type': 'static_library', 'type': 'static_library',
'dependencies': [ 'dependencies': [
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/base/base.gyp:rtc_base', '<(webrtc_root)/base/base.gyp:rtc_base',
], ],
'sources': [ 'sources': [

View File

@ -12,7 +12,7 @@
'target_name': 'media_file', 'target_name': 'media_file',
'type': 'static_library', 'type': 'static_library',
'dependencies': [ 'dependencies': [
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'include_dirs': [ 'include_dirs': [
'../interface', '../interface',

View File

@ -98,7 +98,7 @@
'<(webrtc_root)/modules/remote_bitrate_estimator/remote_bitrate_estimator_components.gyp:rbe_components', '<(webrtc_root)/modules/remote_bitrate_estimator/remote_bitrate_estimator_components.gyp:rbe_components',
'<(webrtc_root)/modules/video_coding/codecs/vp8/vp8.gyp:webrtc_vp8', '<(webrtc_root)/modules/video_coding/codecs/vp8/vp8.gyp:webrtc_vp8',
'<(webrtc_root)/modules/video_coding/codecs/vp9/vp9.gyp:webrtc_vp9', '<(webrtc_root)/modules/video_coding/codecs/vp9/vp9.gyp:webrtc_vp9',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/test/test.gyp:frame_generator', '<(webrtc_root)/test/test.gyp:frame_generator',
'<(webrtc_root)/test/test.gyp:rtp_test_utils', '<(webrtc_root)/test/test.gyp:rtp_test_utils',
'<(webrtc_root)/test/test.gyp:test_support_main', '<(webrtc_root)/test/test.gyp:test_support_main',
@ -361,7 +361,7 @@
'<(webrtc_root)/common_video/common_video.gyp:common_video', '<(webrtc_root)/common_video/common_video.gyp:common_video',
'<(webrtc_root)/modules/video_coding/codecs/vp8/vp8.gyp:webrtc_vp8', '<(webrtc_root)/modules/video_coding/codecs/vp8/vp8.gyp:webrtc_vp8',
'<(webrtc_root)/modules/video_coding/codecs/vp9/vp9.gyp:webrtc_vp9', '<(webrtc_root)/modules/video_coding/codecs/vp9/vp9.gyp:webrtc_vp9',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/test/metrics.gyp:metrics', '<(webrtc_root)/test/metrics.gyp:metrics',
'<(webrtc_root)/test/test.gyp:test_support', '<(webrtc_root)/test/test.gyp:test_support',
'<(webrtc_root)/test/test.gyp:test_support_main', '<(webrtc_root)/test/test.gyp:test_support_main',

View File

@ -12,7 +12,7 @@
'target_name': 'paced_sender', 'target_name': 'paced_sender',
'type': 'static_library', 'type': 'static_library',
'dependencies': [ 'dependencies': [
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'sources': [ 'sources': [
'include/paced_sender.h', 'include/paced_sender.h',

View File

@ -16,7 +16,7 @@
'type': 'static_library', 'type': 'static_library',
'dependencies': [ 'dependencies': [
'<(webrtc_root)/modules/remote_bitrate_estimator/remote_bitrate_estimator_components.gyp:rbe_components', '<(webrtc_root)/modules/remote_bitrate_estimator/remote_bitrate_estimator_components.gyp:rbe_components',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'sources': [ 'sources': [
'include/bwe_defines.h', 'include/bwe_defines.h',
@ -29,7 +29,7 @@
'target_name': 'bwe_tools_util', 'target_name': 'bwe_tools_util',
'type': 'static_library', 'type': 'static_library',
'dependencies': [ 'dependencies': [
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'rtp_rtcp', 'rtp_rtcp',
], ],
'sources': [ 'sources': [
@ -44,8 +44,8 @@
'../rtp_rtcp/source/rtp_rtcp.gypi', '../rtp_rtcp/source/rtp_rtcp.gypi',
], ],
'dependencies': [ 'dependencies': [
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers_default', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
'bwe_tools_util', 'bwe_tools_util',
'rtp_rtcp', 'rtp_rtcp',
], ],
@ -67,8 +67,8 @@
'../rtp_rtcp/source/rtp_rtcp.gypi', '../rtp_rtcp/source/rtp_rtcp.gypi',
], ],
'dependencies': [ 'dependencies': [
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers_default', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
'bwe_tools_util', 'bwe_tools_util',
'rtp_rtcp', 'rtp_rtcp',
], ],

View File

@ -12,7 +12,7 @@
'target_name': 'rtp_rtcp', 'target_name': 'rtp_rtcp',
'type': 'static_library', 'type': 'static_library',
'dependencies': [ 'dependencies': [
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/modules/modules.gyp:paced_sender', '<(webrtc_root)/modules/modules.gyp:paced_sender',
'<(webrtc_root)/modules/modules.gyp:remote_bitrate_estimator', '<(webrtc_root)/modules/modules.gyp:remote_bitrate_estimator',
], ],

View File

@ -15,7 +15,7 @@
'matlab_plotting', 'matlab_plotting',
'rtp_rtcp', 'rtp_rtcp',
'udp_transport', 'udp_transport',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'sources': [ 'sources': [
'BWEStandAlone/BWEStandAlone.cc', 'BWEStandAlone/BWEStandAlone.cc',
@ -39,7 +39,7 @@
'type': 'static_library', 'type': 'static_library',
'dependencies': [ 'dependencies': [
'matlab_plotting_include', 'matlab_plotting_include',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'include_dirs': [ 'include_dirs': [
'/opt/matlab2010a/extern/include', '/opt/matlab2010a/extern/include',

View File

@ -12,9 +12,9 @@
#include "webrtc/system_wrappers/interface/logging.h" #include "webrtc/system_wrappers/interface/logging.h"
#ifdef WEBRTC_MODULE_UTILITY_VIDEO #ifdef WEBRTC_MODULE_UTILITY_VIDEO
#include "frame_scaler.h" #include "webrtc/modules/utility/source/frame_scaler.h"
#include "tick_util.h" #include "webrtc/modules/utility/source/video_coder.h"
#include "video_coder.h" #include "webrtc/system_wrappers/interface/tick_util.h"
#endif #endif
namespace webrtc { namespace webrtc {

View File

@ -15,10 +15,10 @@
#include "webrtc/system_wrappers/interface/logging.h" #include "webrtc/system_wrappers/interface/logging.h"
#ifdef WEBRTC_MODULE_UTILITY_VIDEO #ifdef WEBRTC_MODULE_UTILITY_VIDEO
#include "critical_section_wrapper.h" #include "webrtc/modules/utility/source/frame_scaler.h"
#include "frame_scaler.h" #include "webrtc/modules/utility/source/video_coder.h"
#include "video_coder.h" #include "webrtc/modules/utility/source/video_frames_queue.h"
#include "video_frames_queue.h" #include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
#endif #endif
namespace webrtc { namespace webrtc {

View File

@ -31,9 +31,9 @@
#include "webrtc/typedefs.h" #include "webrtc/typedefs.h"
#ifdef WEBRTC_MODULE_UTILITY_VIDEO #ifdef WEBRTC_MODULE_UTILITY_VIDEO
#include "frame_scaler.h" #include "webrtc/modules/utility/source/frame_scaler.h"
#include "video_coder.h" #include "webrtc/modules/utility/source/video_coder.h"
#include "video_frames_queue.h" #include "webrtc/modules/utility/source/video_frames_queue.h"
#endif #endif
namespace webrtc { namespace webrtc {

View File

@ -15,7 +15,7 @@
'audio_coding_module', 'audio_coding_module',
'media_file', 'media_file',
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio', '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'sources': [ 'sources': [
'../interface/audio_frame_operations.h', '../interface/audio_frame_operations.h',

View File

@ -18,7 +18,7 @@
'dependencies': [ 'dependencies': [
'webrtc_utility', 'webrtc_utility',
'<(webrtc_root)/common_video/common_video.gyp:common_video', '<(webrtc_root)/common_video/common_video.gyp:common_video',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'sources': [ 'sources': [
'device_info_impl.cc', 'device_info_impl.cc',
@ -163,7 +163,7 @@
'video_capture_module', 'video_capture_module',
'video_capture_module_internal_impl', 'video_capture_module_internal_impl',
'webrtc_utility', 'webrtc_utility',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
], ],
'sources': [ 'sources': [

View File

@ -12,7 +12,7 @@
'target_name': 'webrtc_i420', 'target_name': 'webrtc_i420',
'type': 'static_library', 'type': 'static_library',
'dependencies': [ 'dependencies': [
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'sources': [ 'sources': [
'../interface/i420.h', '../interface/i420.h',

View File

@ -17,7 +17,7 @@
'video_codecs_test_framework', 'video_codecs_test_framework',
'webrtc_video_coding', 'webrtc_video_coding',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags', '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers_default', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
'<(webrtc_root)/test/metrics.gyp:metrics', '<(webrtc_root)/test/metrics.gyp:metrics',
'<(webrtc_vp8_dir)/vp8.gyp:webrtc_vp8', '<(webrtc_vp8_dir)/vp8.gyp:webrtc_vp8',
], ],

View File

@ -17,7 +17,7 @@
'dependencies': [ 'dependencies': [
'<(webrtc_root)/common_video/common_video.gyp:common_video', '<(webrtc_root)/common_video/common_video.gyp:common_video',
'<(webrtc_root)/modules/video_coding/utility/video_coding_utility.gyp:video_coding_utility', '<(webrtc_root)/modules/video_coding/utility/video_coding_utility.gyp:video_coding_utility',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'conditions': [ 'conditions': [
['build_libvpx==1', { ['build_libvpx==1', {
@ -64,7 +64,7 @@
'<(webrtc_root)/common_video/common_video.gyp:common_video', '<(webrtc_root)/common_video/common_video.gyp:common_video',
'<(webrtc_root)/test/metrics.gyp:metrics', '<(webrtc_root)/test/metrics.gyp:metrics',
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/test/test.gyp:test_support_main', '<(webrtc_root)/test/test.gyp:test_support_main',
'<(webrtc_root)/tools/internal_tools.gyp:command_line_parser', '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
], ],

View File

@ -17,7 +17,7 @@
'dependencies': [ 'dependencies': [
'<(webrtc_root)/common_video/common_video.gyp:common_video', '<(webrtc_root)/common_video/common_video.gyp:common_video',
'<(webrtc_root)/modules/video_coding/utility/video_coding_utility.gyp:video_coding_utility', '<(webrtc_root)/modules/video_coding/utility/video_coding_utility.gyp:video_coding_utility',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'conditions': [ 'conditions': [
['build_libvpx==1', { ['build_libvpx==1', {

View File

@ -15,7 +15,7 @@
'webrtc_i420', 'webrtc_i420',
'<(webrtc_root)/common_video/common_video.gyp:common_video', '<(webrtc_root)/common_video/common_video.gyp:common_video',
'<(webrtc_root)/modules/video_coding/utility/video_coding_utility.gyp:video_coding_utility', '<(webrtc_root)/modules/video_coding/utility/video_coding_utility.gyp:video_coding_utility',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_vp8_dir)/vp8.gyp:webrtc_vp8', '<(webrtc_vp8_dir)/vp8.gyp:webrtc_vp8',
'<(webrtc_vp9_dir)/vp9.gyp:webrtc_vp9', '<(webrtc_vp9_dir)/vp9.gyp:webrtc_vp9',
], ],

View File

@ -20,7 +20,7 @@
'<(webrtc_root)/test/test.gyp:test_support', '<(webrtc_root)/test/test.gyp:test_support',
'<(webrtc_root)/test/metrics.gyp:metrics', '<(webrtc_root)/test/metrics.gyp:metrics',
'<(webrtc_root)/common_video/common_video.gyp:common_video', '<(webrtc_root)/common_video/common_video.gyp:common_video',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers_default', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
'<(webrtc_root)/test/webrtc_test_common.gyp:webrtc_test_common', '<(webrtc_root)/test/webrtc_test_common.gyp:webrtc_test_common',
], ],
'sources': [ 'sources': [

View File

@ -15,7 +15,7 @@
'target_name': 'video_coding_utility', 'target_name': 'video_coding_utility',
'type': 'static_library', 'type': 'static_library',
'dependencies': [ 'dependencies': [
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'sources': [ 'sources': [
'frame_dropper.cc', 'frame_dropper.cc',

View File

@ -15,7 +15,7 @@
'webrtc_utility', 'webrtc_utility',
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio', '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'<(webrtc_root)/common_video/common_video.gyp:common_video', '<(webrtc_root)/common_video/common_video.gyp:common_video',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'sources': [ 'sources': [
'../interface/video_processing.h', '../interface/video_processing.h',

View File

@ -18,7 +18,7 @@
'dependencies': [ 'dependencies': [
'webrtc_utility', 'webrtc_utility',
'<(webrtc_root)/common_video/common_video.gyp:common_video', '<(webrtc_root)/common_video/common_video.gyp:common_video',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'sources': [ 'sources': [
'external/video_render_external_impl.cc', 'external/video_render_external_impl.cc',
@ -159,7 +159,7 @@
'dependencies': [ 'dependencies': [
'video_render_module_internal_impl', 'video_render_module_internal_impl',
'webrtc_utility', 'webrtc_utility',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/common_video/common_video.gyp:common_video', '<(webrtc_root)/common_video/common_video.gyp:common_video',
], ],
'sources': [ 'sources': [

View File

@ -9,12 +9,6 @@
import("//build/config/android/config.gni") import("//build/config/android/config.gni")
import("../build/webrtc.gni") import("../build/webrtc.gni")
config("system_wrappers_inherited_config") {
include_dirs = [
"interface",
]
}
static_library("system_wrappers") { static_library("system_wrappers") {
sources = [ sources = [
"interface/aligned_array.h", "interface/aligned_array.h",
@ -116,7 +110,6 @@ static_library("system_wrappers") {
public_configs = [ public_configs = [
"..:common_inherited_config", "..:common_inherited_config",
":system_wrappers_inherited_config",
] ]
if (rtc_enable_data_logging) { if (rtc_enable_data_logging) {
@ -188,10 +181,6 @@ static_library("system_wrappers") {
] ]
} }
include_dirs = [
"source/spreadsortlib",
]
deps += [ deps += [
"../base:rtc_base_approved", "../base:rtc_base_approved",
] ]

View File

@ -24,7 +24,7 @@
// //
// Or link with a default one provided in: // Or link with a default one provided in:
// //
// system_wrappers/source/system_wrappers.gyp:field_trial_default // system_wrappers/system_wrappers.gyp:field_trial_default
// //
// //
// They are designed to wire up directly to chrome field trials and to speed up // They are designed to wire up directly to chrome field trials and to speed up

View File

@ -41,7 +41,7 @@
// Histogram* histogram_pointer, const std::string& name, int sample); // Histogram* histogram_pointer, const std::string& name, int sample);
// //
// - or link with the default implementations (i.e. // - or link with the default implementations (i.e.
// system_wrappers/source/system_wrappers.gyp:metrics_default). // system_wrappers/system_wrappers.gyp:metrics_default).
// //
// //
// Example usage: // Example usage:

View File

@ -5,246 +5,10 @@
# tree. An additional intellectual property rights grant can be found # tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project authors may # in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree. # be found in the AUTHORS file in the root of the source tree.
#
# TODO(andresp): Remove this file once chromium is referencing
# webrtc/system_wrappers/system_wrappers.gyp directly.
{ {
'includes': [ '../../build/common.gypi', ], 'includes': [ '../system_wrappers.gypi', ],
'targets': [
{
'target_name': 'system_wrappers',
'type': 'static_library',
'include_dirs': [
'spreadsortlib',
'../interface',
],
'dependencies': [
'../../base/base.gyp:rtc_base_approved',
],
'direct_dependent_settings': {
'include_dirs': [
'../interface',
],
},
'sources': [
'../interface/aligned_array.h',
'../interface/aligned_malloc.h',
'../interface/atomic32.h',
'../interface/clock.h',
'../interface/condition_variable_wrapper.h',
'../interface/cpu_info.h',
'../interface/cpu_features_wrapper.h',
'../interface/critical_section_wrapper.h',
'../interface/data_log.h',
'../interface/data_log_c.h',
'../interface/data_log_impl.h',
'../interface/event_tracer.h',
'../interface/event_wrapper.h',
'../interface/field_trial.h',
'../interface/file_wrapper.h',
'../interface/fix_interlocked_exchange_pointer_win.h',
'../interface/logcat_trace_context.h',
'../interface/logging.h',
'../interface/metrics.h',
'../interface/ref_count.h',
'../interface/rtp_to_ntp.h',
'../interface/rw_lock_wrapper.h',
'../interface/scoped_ptr.h',
'../interface/scoped_refptr.h',
'../interface/scoped_vector.h',
'../interface/sleep.h',
'../interface/sort.h',
'../interface/static_instance.h',
'../interface/stl_util.h',
'../interface/stringize_macros.h',
'../interface/thread_wrapper.h',
'../interface/tick_util.h',
'../interface/timestamp_extrapolator.h',
'../interface/trace.h',
'../interface/trace_event.h',
'../interface/utf_util_win.h',
'aligned_malloc.cc',
'atomic32_mac.cc',
'atomic32_posix.cc',
'atomic32_win.cc',
'clock.cc',
'condition_variable.cc',
'condition_variable_posix.cc',
'condition_variable_posix.h',
'condition_variable_event_win.cc',
'condition_variable_event_win.h',
'condition_variable_native_win.cc',
'condition_variable_native_win.h',
'cpu_info.cc',
'cpu_features.cc',
'critical_section.cc',
'critical_section_posix.cc',
'critical_section_posix.h',
'critical_section_win.cc',
'critical_section_win.h',
'data_log.cc',
'data_log_c.cc',
'data_log_no_op.cc',
'event.cc',
'event_posix.cc',
'event_posix.h',
'event_tracer.cc',
'event_win.cc',
'event_win.h',
'file_impl.cc',
'file_impl.h',
'logcat_trace_context.cc',
'logging.cc',
'rtp_to_ntp.cc',
'rw_lock.cc',
'rw_lock_generic.cc',
'rw_lock_generic.h',
'rw_lock_posix.cc',
'rw_lock_posix.h',
'rw_lock_win.cc',
'rw_lock_win.h',
'set_thread_name_win.h',
'sleep.cc',
'sort.cc',
'tick_util.cc',
'thread.cc',
'thread_posix.cc',
'thread_posix.h',
'thread_win.cc',
'thread_win.h',
'timestamp_extrapolator.cc',
'trace_impl.cc',
'trace_impl.h',
'trace_posix.cc',
'trace_posix.h',
'trace_win.cc',
'trace_win.h',
],
'conditions': [
['enable_data_logging==1', {
'sources!': [ 'data_log_no_op.cc', ],
}, {
'sources!': [ 'data_log.cc', ],
},],
['OS=="android"', {
'defines': [
'WEBRTC_THREAD_RR',
# TODO(leozwang): Investigate CLOCK_REALTIME and CLOCK_MONOTONIC
# support on Android. Keep WEBRTC_CLOCK_TYPE_REALTIME for now,
# remove it after I verify that CLOCK_MONOTONIC is fully functional
# with condition and event functions in system_wrappers.
'WEBRTC_CLOCK_TYPE_REALTIME',
],
'dependencies': [ 'cpu_features_android', ],
'link_settings': {
'libraries': [
'-llog',
],
},
}, { # OS!="android"
'sources!': [
'../interface/logcat_trace_context.h',
'logcat_trace_context.cc',
],
}],
['OS=="linux"', {
'defines': [
'WEBRTC_THREAD_RR',
# TODO(andrew): can we select this automatically?
# Define this if the Linux system does not support CLOCK_MONOTONIC.
#'WEBRTC_CLOCK_TYPE_REALTIME',
],
'link_settings': {
'libraries': [ '-lrt', ],
},
}],
['OS=="mac"', {
'link_settings': {
'libraries': [ '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework', ],
},
'sources!': [
'atomic32_posix.cc',
],
}],
['OS=="ios" or OS=="mac"', {
'defines': [
'WEBRTC_THREAD_RR',
'WEBRTC_CLOCK_TYPE_REALTIME',
],
}],
['OS=="win"', {
'link_settings': {
'libraries': [ '-lwinmm.lib', ],
},
}],
], # 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\\.'],
],
'sources!': [
'atomic32_posix.cc',
],
}],
],
# Disable warnings to enable Win64 build, issue 1323.
'msvs_disabled_warnings': [
4267, # size_t to int truncation.
4334, # Ignore warning on shift operator promotion.
],
}, {
'target_name': 'field_trial_default',
'type': 'static_library',
'sources': [
'field_trial_default.cc',
],
'dependencies': [
'system_wrappers',
]
}, {
'target_name': 'metrics_default',
'type': 'static_library',
'sources': [
'metrics_default.cc',
],
'dependencies': [
'system_wrappers',
]
}, {
'target_name': 'system_wrappers_default',
'type': 'static_library',
'dependencies': [
'field_trial_default',
'metrics_default',
]
},
], # targets
'conditions': [
['OS=="android"', {
'targets': [
{
'target_name': 'cpu_features_android',
'type': 'static_library',
'sources': [
'cpu_features_android.c',
],
'conditions': [
['android_webview_build == 1', {
'libraries': [
'cpufeatures.a'
],
}, {
'dependencies': [
'<(android_ndk_root)/android_tools_ndk.gyp:cpu_features',
],
}],
],
},
],
}],
], # conditions
} }

View File

@ -0,0 +1,12 @@
# Copyright (c) 2012 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.
{
'includes': [ 'system_wrappers.gypi', ],
}

View File

@ -0,0 +1,241 @@
# Copyright (c) 2012 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.
{
'includes': [ '../build/common.gypi', ],
'targets': [
{
'target_name': 'system_wrappers',
'type': 'static_library',
'dependencies': [
'../base/base.gyp:rtc_base_approved',
],
'sources': [
'interface/aligned_array.h',
'interface/aligned_malloc.h',
'interface/atomic32.h',
'interface/clock.h',
'interface/condition_variable_wrapper.h',
'interface/cpu_info.h',
'interface/cpu_features_wrapper.h',
'interface/critical_section_wrapper.h',
'interface/data_log.h',
'interface/data_log_c.h',
'interface/data_log_impl.h',
'interface/event_tracer.h',
'interface/event_wrapper.h',
'interface/field_trial.h',
'interface/file_wrapper.h',
'interface/fix_interlocked_exchange_pointer_win.h',
'interface/logcat_trace_context.h',
'interface/logging.h',
'interface/metrics.h',
'interface/ref_count.h',
'interface/rtp_to_ntp.h',
'interface/rw_lock_wrapper.h',
'interface/scoped_ptr.h',
'interface/scoped_refptr.h',
'interface/scoped_vector.h',
'interface/sleep.h',
'interface/sort.h',
'interface/static_instance.h',
'interface/stl_util.h',
'interface/stringize_macros.h',
'interface/thread_wrapper.h',
'interface/tick_util.h',
'interface/timestamp_extrapolator.h',
'interface/trace.h',
'interface/trace_event.h',
'interface/utf_util_win.h',
'source/aligned_malloc.cc',
'source/atomic32_mac.cc',
'source/atomic32_posix.cc',
'source/atomic32_win.cc',
'source/clock.cc',
'source/condition_variable.cc',
'source/condition_variable_posix.cc',
'source/condition_variable_posix.h',
'source/condition_variable_event_win.cc',
'source/condition_variable_event_win.h',
'source/condition_variable_native_win.cc',
'source/condition_variable_native_win.h',
'source/cpu_info.cc',
'source/cpu_features.cc',
'source/critical_section.cc',
'source/critical_section_posix.cc',
'source/critical_section_posix.h',
'source/critical_section_win.cc',
'source/critical_section_win.h',
'source/data_log.cc',
'source/data_log_c.cc',
'source/data_log_no_op.cc',
'source/event.cc',
'source/event_posix.cc',
'source/event_posix.h',
'source/event_tracer.cc',
'source/event_win.cc',
'source/event_win.h',
'source/file_impl.cc',
'source/file_impl.h',
'source/logcat_trace_context.cc',
'source/logging.cc',
'source/rtp_to_ntp.cc',
'source/rw_lock.cc',
'source/rw_lock_generic.cc',
'source/rw_lock_generic.h',
'source/rw_lock_posix.cc',
'source/rw_lock_posix.h',
'source/rw_lock_win.cc',
'source/rw_lock_win.h',
'source/set_thread_name_win.h',
'source/sleep.cc',
'source/sort.cc',
'source/tick_util.cc',
'source/thread.cc',
'source/thread_posix.cc',
'source/thread_posix.h',
'source/thread_win.cc',
'source/thread_win.h',
'source/timestamp_extrapolator.cc',
'source/trace_impl.cc',
'source/trace_impl.h',
'source/trace_posix.cc',
'source/trace_posix.h',
'source/trace_win.cc',
'source/trace_win.h',
],
'conditions': [
['enable_data_logging==1', {
'sources!': [ 'source/data_log_no_op.cc', ],
}, {
'sources!': [ 'source/data_log.cc', ],
},],
['OS=="android"', {
'defines': [
'WEBRTC_THREAD_RR',
# TODO(leozwang): Investigate CLOCK_REALTIME and CLOCK_MONOTONIC
# support on Android. Keep WEBRTC_CLOCK_TYPE_REALTIME for now,
# remove it after I verify that CLOCK_MONOTONIC is fully functional
# with condition and event functions in system_wrappers.
'WEBRTC_CLOCK_TYPE_REALTIME',
],
'dependencies': [ 'cpu_features_android', ],
'link_settings': {
'libraries': [
'-llog',
],
},
}, { # OS!="android"
'sources!': [
'interface/logcat_trace_context.h',
'source/logcat_trace_context.cc',
],
}],
['OS=="linux"', {
'defines': [
'WEBRTC_THREAD_RR',
# TODO(andrew): can we select this automatically?
# Define this if the Linux system does not support CLOCK_MONOTONIC.
#'WEBRTC_CLOCK_TYPE_REALTIME',
],
'link_settings': {
'libraries': [ '-lrt', ],
},
}],
['OS=="mac"', {
'link_settings': {
'libraries': [ '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework', ],
},
'sources!': [
'source/atomic32_posix.cc',
],
}],
['OS=="ios" or OS=="mac"', {
'defines': [
'WEBRTC_THREAD_RR',
'WEBRTC_CLOCK_TYPE_REALTIME',
],
}],
['OS=="win"', {
'link_settings': {
'libraries': [ '-lwinmm.lib', ],
},
}],
], # 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', '^source/atomic32_mac\\.'],
],
'sources!': [
'source/atomic32_posix.cc',
],
}],
],
# Disable warnings to enable Win64 build, issue 1323.
'msvs_disabled_warnings': [
4267, # size_t to int truncation.
4334, # Ignore warning on shift operator promotion.
],
}, {
'target_name': 'field_trial_default',
'type': 'static_library',
'sources': [
'source/field_trial_default.cc',
],
'dependencies': [
'system_wrappers',
]
}, {
'target_name': 'metrics_default',
'type': 'static_library',
'sources': [
'source/metrics_default.cc',
],
'dependencies': [
'system_wrappers',
]
}, {
'target_name': 'system_wrappers_default',
'type': 'static_library',
'dependencies': [
'field_trial_default',
'metrics_default',
]
},
], # targets
'conditions': [
['OS=="android"', {
'targets': [
{
'target_name': 'cpu_features_android',
'type': 'static_library',
'sources': [
'source/cpu_features_android.c',
],
'conditions': [
['android_webview_build == 1', {
'libraries': [
'cpufeatures.a'
],
}, {
'dependencies': [
'<(android_ndk_root)/android_tools_ndk.gyp:cpu_features',
],
}],
],
},
],
}],
], # conditions
}

View File

@ -7,44 +7,44 @@
# be found in the AUTHORS file in the root of the source tree. # be found in the AUTHORS file in the root of the source tree.
{ {
'includes': ['../../build/common.gypi',], 'includes': ['../build/common.gypi',],
'targets': [ 'targets': [
{ {
'target_name': 'system_wrappers_unittests', 'target_name': 'system_wrappers_unittests',
'type': '<(gtest_target_type)', 'type': '<(gtest_target_type)',
'dependencies': [ 'dependencies': [
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/test/test.gyp:test_support_main', '<(webrtc_root)/test/test.gyp:test_support_main',
], ],
'sources': [ 'sources': [
'aligned_array_unittest.cc', 'source/aligned_array_unittest.cc',
'aligned_malloc_unittest.cc', 'source/aligned_malloc_unittest.cc',
'clock_unittest.cc', 'source/clock_unittest.cc',
'condition_variable_unittest.cc', 'source/condition_variable_unittest.cc',
'critical_section_unittest.cc', 'source/critical_section_unittest.cc',
'event_tracer_unittest.cc', 'source/event_tracer_unittest.cc',
'logging_unittest.cc', 'source/logging_unittest.cc',
'data_log_unittest.cc', 'source/data_log_unittest.cc',
'data_log_unittest_disabled.cc', 'source/data_log_unittest_disabled.cc',
'data_log_helpers_unittest.cc', 'source/data_log_helpers_unittest.cc',
'data_log_c_helpers_unittest.c', 'source/data_log_c_helpers_unittest.c',
'data_log_c_helpers_unittest.h', 'source/data_log_c_helpers_unittest.h',
'rtp_to_ntp_unittest.cc', 'source/rtp_to_ntp_unittest.cc',
'scoped_vector_unittest.cc', 'source/scoped_vector_unittest.cc',
'stringize_macros_unittest.cc', 'source/stringize_macros_unittest.cc',
'stl_util_unittest.cc', 'source/stl_util_unittest.cc',
'thread_unittest.cc', 'source/thread_unittest.cc',
'thread_posix_unittest.cc', 'source/thread_posix_unittest.cc',
], ],
'conditions': [ 'conditions': [
['enable_data_logging==1', { ['enable_data_logging==1', {
'sources!': [ 'data_log_unittest_disabled.cc', ], 'sources!': [ 'source/data_log_unittest_disabled.cc', ],
}, { }, {
'sources!': [ 'data_log_unittest.cc', ], 'sources!': [ 'source/data_log_unittest.cc', ],
}], }],
['os_posix==0', { ['os_posix==0', {
'sources!': [ 'thread_posix_unittest.cc', ], 'sources!': [ 'source/thread_posix_unittest.cc', ],
}], }],
['OS=="android"', { ['OS=="android"', {
'dependencies': [ 'dependencies': [
@ -79,7 +79,7 @@
'system_wrappers_unittests', 'system_wrappers_unittests',
], ],
'includes': [ 'includes': [
'../../build/isolate.gypi', '../build/isolate.gypi',
], ],
'sources': [ 'sources': [
'system_wrappers_unittests.isolate', 'system_wrappers_unittests.isolate',

View File

@ -21,7 +21,7 @@
'type': 'static_library', 'type': 'static_library',
'dependencies': [ 'dependencies': [
'<(webrtc_root)/common_video/common_video.gyp:common_video', '<(webrtc_root)/common_video/common_video.gyp:common_video',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'sources': [ 'sources': [
'testsupport/metrics/video_metrics.h', 'testsupport/metrics/video_metrics.h',

View File

@ -17,7 +17,7 @@
'type': 'static_library', 'type': 'static_library',
'dependencies': [ 'dependencies': [
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'sources': [ 'sources': [
'channel_transport/channel_transport.cc', 'channel_transport/channel_transport.cc',
@ -75,7 +75,7 @@
'field_trial.h', 'field_trial.h',
], ],
'dependencies': [ 'dependencies': [
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
}, },
{ {
@ -88,7 +88,7 @@
'field_trial', 'field_trial',
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags', '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:metrics_default', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default',
], ],
}, },
{ {
@ -97,7 +97,7 @@
'dependencies': [ 'dependencies': [
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(DEPTH)/testing/gmock.gyp:gmock', '<(DEPTH)/testing/gmock.gyp:gmock',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'sources': [ 'sources': [
'testsupport/fileutils.cc', 'testsupport/fileutils.cc',
@ -129,7 +129,7 @@
'<(DEPTH)/testing/gmock.gyp:gmock', '<(DEPTH)/testing/gmock.gyp:gmock',
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags', '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:metrics_default', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default',
], ],
'sources': [ 'sources': [
'run_all_unittests.cc', 'run_all_unittests.cc',

View File

@ -91,7 +91,7 @@
'type': 'executable', 'type': 'executable',
'dependencies': [ 'dependencies': [
'<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine', '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers_default', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
], ],
'sources': [ 'sources': [
'force_mic_volume_max/force_mic_volume_max.cc', 'force_mic_volume_max/force_mic_volume_max.cc',
@ -120,7 +120,7 @@
'dependencies': [ 'dependencies': [
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags', '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers_default', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
'<(webrtc_root)/test/test.gyp:channel_transport', '<(webrtc_root)/test/test.gyp:channel_transport',
'<(webrtc_root)/test/test.gyp:test_support', '<(webrtc_root)/test/test.gyp:test_support',
'agc_manager', 'agc_manager',
@ -137,7 +137,7 @@
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags', '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'<(webrtc_root)/test/test.gyp:test_support', '<(webrtc_root)/test/test.gyp:test_support',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers_default', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
'agc_manager', 'agc_manager',
], ],
'sources': [ 'sources': [
@ -163,7 +163,7 @@
'dependencies': [ 'dependencies': [
'<(webrtc_root)/test/test.gyp:channel_transport', '<(webrtc_root)/test/test.gyp:channel_transport',
'<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine', '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers_default', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags', '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
], ],

View File

@ -12,8 +12,8 @@
'target_name': 'vie_auto_test', 'target_name': 'vie_auto_test',
'type': 'executable', 'type': 'executable',
'dependencies': [ 'dependencies': [
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:metrics_default', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default',
'<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl', '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl',
'<(webrtc_root)/modules/modules.gyp:video_render_module_internal_impl', '<(webrtc_root)/modules/modules.gyp:video_render_module_internal_impl',
'<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine', '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',

View File

@ -11,7 +11,7 @@
'target_name': 'libvietest', 'target_name': 'libvietest',
'type': 'static_library', 'type': 'static_library',
'dependencies': [ 'dependencies': [
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(webrtc_root)/test/test.gyp:test_support', '<(webrtc_root)/test/test.gyp:test_support',
'video_engine_core', 'video_engine_core',

View File

@ -31,7 +31,7 @@
'<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine', '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
# system_wrappers # system_wrappers
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'sources': [ 'sources': [
# interface # interface

View File

@ -24,7 +24,7 @@
'<(webrtc_root)/modules/modules.gyp:media_file', '<(webrtc_root)/modules/modules.gyp:media_file',
'<(webrtc_root)/modules/modules.gyp:rtp_rtcp', '<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
'<(webrtc_root)/modules/modules.gyp:webrtc_utility', '<(webrtc_root)/modules/modules.gyp:webrtc_utility',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
], ],
'sources': [ 'sources': [
'../common_types.h', '../common_types.h',
@ -119,7 +119,7 @@
'<(webrtc_root)/modules/modules.gyp:media_file', '<(webrtc_root)/modules/modules.gyp:media_file',
'<(webrtc_root)/modules/modules.gyp:rtp_rtcp', '<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
'<(webrtc_root)/modules/modules.gyp:webrtc_utility', '<(webrtc_root)/modules/modules.gyp:webrtc_utility',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/test/test.gyp:test_support_main', '<(webrtc_root)/test/test.gyp:test_support_main',
], ],
'sources': [ 'sources': [
@ -147,8 +147,8 @@
'<(DEPTH)/testing/gmock.gyp:gmock', '<(DEPTH)/testing/gmock.gyp:gmock',
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags', '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers_default', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
'<(webrtc_root)/test/test.gyp:channel_transport', '<(webrtc_root)/test/test.gyp:channel_transport',
'<(webrtc_root)/test/test.gyp:test_support', '<(webrtc_root)/test/test.gyp:test_support',
], ],
@ -215,8 +215,8 @@
'voice_engine', 'voice_engine',
'<(DEPTH)/testing/gtest.gyp:gtest', '<(DEPTH)/testing/gtest.gyp:gtest',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags', '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers_default', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
'<(webrtc_root)/test/test.gyp:channel_transport', '<(webrtc_root)/test/test.gyp:channel_transport',
'<(webrtc_root)/test/test.gyp:test_support', '<(webrtc_root)/test/test.gyp:test_support',
], ],
@ -236,7 +236,7 @@
'type': 'executable', 'type': 'executable',
'dependencies': [ 'dependencies': [
'voice_engine', 'voice_engine',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/test/test.gyp:test_support', '<(webrtc_root)/test/test.gyp:test_support',
], ],
'sources': [ 'sources': [

View File

@ -32,7 +32,7 @@
'libjingle/xmpp/xmpp.gyp:*', 'libjingle/xmpp/xmpp.gyp:*',
'modules/modules.gyp:*', 'modules/modules.gyp:*',
'p2p/p2p.gyp:*', 'p2p/p2p.gyp:*',
'system_wrappers/source/system_wrappers.gyp:*', 'system_wrappers/system_wrappers.gyp:*',
'video_engine/video_engine.gyp:*', 'video_engine/video_engine.gyp:*',
'voice_engine/voice_engine.gyp:*', 'voice_engine/voice_engine.gyp:*',
'<(webrtc_vp8_dir)/vp8.gyp:*', '<(webrtc_vp8_dir)/vp8.gyp:*',
@ -51,7 +51,7 @@
['include_tests==1', { ['include_tests==1', {
'dependencies': [ 'dependencies': [
'common_video/common_video_unittests.gyp:*', 'common_video/common_video_unittests.gyp:*',
'system_wrappers/source/system_wrappers_tests.gyp:*', 'system_wrappers/system_wrappers_tests.gyp:*',
'test/metrics.gyp:*', 'test/metrics.gyp:*',
'test/test.gyp:*', 'test/test.gyp:*',
'test/webrtc_test_common.gyp:webrtc_test_common_unittests', 'test/webrtc_test_common.gyp:webrtc_test_common_unittests',

View File

@ -18,7 +18,7 @@
'<(DEPTH)/third_party/icu/icu.gyp:icuuc', '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
'<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl', '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl',
'<(webrtc_root)/modules/modules.gyp:video_render_module_internal_impl', '<(webrtc_root)/modules/modules.gyp:video_render_module_internal_impl',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers_default', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
'<(webrtc_root)/test/test.gyp:channel_transport', '<(webrtc_root)/test/test.gyp:channel_transport',
'<(webrtc_root)/video_engine/video_engine.gyp:video_engine_core', '<(webrtc_root)/video_engine/video_engine.gyp:video_engine_core',
'<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine', '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',

View File

@ -58,7 +58,7 @@
'test/webrtc_test_common.gyp:webrtc_test_renderer', 'test/webrtc_test_common.gyp:webrtc_test_renderer',
'<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl', '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl',
'<(webrtc_root)/modules/modules.gyp:video_render_module_impl', '<(webrtc_root)/modules/modules.gyp:video_render_module_impl',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'test/test.gyp:test_main', 'test/test.gyp:test_main',
'webrtc', 'webrtc',
], ],
@ -86,7 +86,7 @@
'test/webrtc_test_common.gyp:webrtc_test_renderer', 'test/webrtc_test_common.gyp:webrtc_test_renderer',
'<(webrtc_root)/modules/modules.gyp:video_capture_module_impl', '<(webrtc_root)/modules/modules.gyp:video_capture_module_impl',
'<(webrtc_root)/modules/modules.gyp:video_render_module_impl', '<(webrtc_root)/modules/modules.gyp:video_render_module_impl',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers_default', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
'webrtc', 'webrtc',
], ],
}, },