mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-06-08 20:29:36 +00:00
274 lines
9.0 KiB
Python
274 lines
9.0 KiB
Python
# 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.
|
|
|
|
{
|
|
'targets': [
|
|
{
|
|
# Note this library is missing an implementation for the video capture.
|
|
# Targets must link with either 'video_capture' or
|
|
# 'video_capture_module_internal_impl' depending on whether they want to
|
|
# use the internal capturer.
|
|
'target_name': 'video_capture_module',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'webrtc_utility',
|
|
'<(webrtc_root)/common.gyp:webrtc_common',
|
|
'<(webrtc_root)/common_video/common_video.gyp:common_video',
|
|
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
|
|
],
|
|
'cflags_mozilla': [
|
|
'$(NSPR_CFLAGS)',
|
|
],
|
|
'sources': [
|
|
'device_info_impl.cc',
|
|
'device_info_impl.h',
|
|
'include/video_capture.h',
|
|
'include/video_capture_defines.h',
|
|
'include/video_capture_factory.h',
|
|
'video_capture_config.h',
|
|
'video_capture_delay.h',
|
|
'video_capture_factory.cc',
|
|
'video_capture_impl.cc',
|
|
'video_capture_impl.h',
|
|
],
|
|
},
|
|
{
|
|
# Default video capture module implementation that only supports external
|
|
# capture.
|
|
'target_name': 'video_capture',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'video_capture_module',
|
|
],
|
|
'cflags_mozilla': [
|
|
'$(NSPR_CFLAGS)',
|
|
],
|
|
'sources': [
|
|
'external/device_info_external.cc',
|
|
'external/video_capture_external.cc',
|
|
],
|
|
},
|
|
], # targets
|
|
'conditions': [
|
|
['build_with_chromium==0', {
|
|
'targets': [
|
|
{
|
|
'target_name': 'video_capture_module_internal_impl',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'video_capture_module',
|
|
'<(webrtc_root)/common.gyp:webrtc_common',
|
|
],
|
|
'cflags_mozilla': [
|
|
'$(NSPR_CFLAGS)',
|
|
],
|
|
'conditions': [
|
|
['include_v4l2_video_capture==1', {
|
|
'sources': [
|
|
'linux/device_info_linux.cc',
|
|
'linux/device_info_linux.h',
|
|
'linux/video_capture_linux.cc',
|
|
'linux/video_capture_linux.h',
|
|
],
|
|
}], # linux
|
|
['OS=="mac"', {
|
|
'sources': [
|
|
'mac/quicktime/video_capture_quick_time.h',
|
|
'mac/quicktime/video_capture_quick_time_info.h',
|
|
'mac/video_capture_mac.mm',
|
|
'mac/quicktime/video_capture_quick_time.cc',
|
|
'mac/quicktime/video_capture_quick_time_info.cc',
|
|
],
|
|
'link_settings': {
|
|
'xcode_settings': {
|
|
'OTHER_LDFLAGS': [
|
|
'-framework Cocoa',
|
|
'-framework QTKit',
|
|
],
|
|
},
|
|
},
|
|
}], # mac
|
|
['OS=="win"', {
|
|
'conditions': [
|
|
['build_with_mozilla==0', {
|
|
'dependencies': [
|
|
'<(DEPTH)/third_party/winsdk_samples/winsdk_samples.gyp:directshow_baseclasses',
|
|
],
|
|
}],
|
|
],
|
|
'sources': [
|
|
'windows/device_info_ds.cc',
|
|
'windows/device_info_ds.h',
|
|
'windows/device_info_mf.cc',
|
|
'windows/device_info_mf.h',
|
|
'windows/help_functions_ds.cc',
|
|
'windows/help_functions_ds.h',
|
|
'windows/sink_filter_ds.cc',
|
|
'windows/sink_filter_ds.h',
|
|
'windows/video_capture_ds.cc',
|
|
'windows/video_capture_ds.h',
|
|
'windows/video_capture_factory_windows.cc',
|
|
'windows/video_capture_mf.cc',
|
|
'windows/video_capture_mf.h',
|
|
'windows/BasePin.cpp',
|
|
'windows/BaseFilter.cpp',
|
|
'windows/BaseInputPin.cpp',
|
|
'windows/MediaType.cpp',
|
|
],
|
|
'link_settings': {
|
|
'libraries': [
|
|
'-lStrmiids.lib',
|
|
],
|
|
},
|
|
}], # win
|
|
['OS=="android"', {
|
|
'sources': [
|
|
'android/device_info_android.cc',
|
|
'android/device_info_android.h',
|
|
'android/video_capture_android.cc',
|
|
'android/video_capture_android.h',
|
|
],
|
|
}], # android
|
|
['OS=="ios"', {
|
|
'sources': [
|
|
'ios/device_info_ios.h',
|
|
'ios/device_info_ios.mm',
|
|
'ios/device_info_ios_objc.h',
|
|
'ios/device_info_ios_objc.mm',
|
|
'ios/rtc_video_capture_ios_objc.h',
|
|
'ios/rtc_video_capture_ios_objc.mm',
|
|
'ios/video_capture_ios.h',
|
|
'ios/video_capture_ios.mm',
|
|
],
|
|
'xcode_settings': {
|
|
'CLANG_ENABLE_OBJC_ARC': 'YES',
|
|
},
|
|
'cflags_mozilla': [
|
|
'-fobjc-arc',
|
|
],
|
|
'all_dependent_settings': {
|
|
'xcode_settings': {
|
|
'OTHER_LDFLAGS': [
|
|
'-framework AVFoundation',
|
|
'-framework CoreMedia',
|
|
'-framework CoreVideo',
|
|
'-framework UIKit',
|
|
],
|
|
},
|
|
},
|
|
}], # ios
|
|
], # conditions
|
|
},
|
|
],
|
|
}], # build_with_chromium==0
|
|
['include_tests==1', {
|
|
'targets': [
|
|
{
|
|
'target_name': 'video_capture_tests',
|
|
'type': '<(gtest_target_type)',
|
|
'dependencies': [
|
|
'video_capture_module',
|
|
'video_capture_module_internal_impl',
|
|
'webrtc_utility',
|
|
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
|
|
'<(DEPTH)/testing/gtest.gyp:gtest',
|
|
],
|
|
'sources': [
|
|
'ensure_initialized.cc',
|
|
'ensure_initialized.h',
|
|
'test/video_capture_unittest.cc',
|
|
'test/video_capture_main_mac.mm',
|
|
],
|
|
'conditions': [
|
|
['OS!="win" and OS!="android"', {
|
|
'cflags': [
|
|
'-Wno-write-strings',
|
|
],
|
|
'ldflags': [
|
|
'-lpthread -lm',
|
|
],
|
|
}],
|
|
['include_v4l2_video_capture==1', {
|
|
'libraries': [
|
|
'-lXext',
|
|
'-lX11',
|
|
],
|
|
}],
|
|
['OS=="linux"', {
|
|
'libraries': [
|
|
'-lrt',
|
|
],
|
|
}],
|
|
['OS=="android"', {
|
|
'dependencies': [
|
|
'<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
|
|
],
|
|
# Need to disable error due to the line in
|
|
# base/android/jni_android.h triggering it:
|
|
# const BASE_EXPORT jobject GetApplicationContext()
|
|
# error: type qualifiers ignored on function return type
|
|
'cflags': [
|
|
'-Wno-ignored-qualifiers',
|
|
],
|
|
}],
|
|
['OS=="mac"', {
|
|
'dependencies': [
|
|
# Link with a special main for mac so we can use the webcam.
|
|
'<(webrtc_root)/test/test.gyp:test_support_main_threaded_mac',
|
|
],
|
|
'xcode_settings': {
|
|
# TODO(andrew): CoreAudio and AudioToolbox shouldn't be needed.
|
|
'OTHER_LDFLAGS': [
|
|
'-framework Foundation -framework AppKit -framework Cocoa -framework OpenGL -framework CoreVideo -framework CoreAudio -framework AudioToolbox',
|
|
],
|
|
},
|
|
}], # OS=="mac"
|
|
['OS!="mac"', {
|
|
'dependencies': [
|
|
# Otherwise, use the regular main.
|
|
'<(webrtc_root)/test/test.gyp:test_support_main',
|
|
],
|
|
}], # OS!="mac"
|
|
] # conditions
|
|
},
|
|
], # targets
|
|
'conditions': [
|
|
['OS=="android"', {
|
|
'targets': [
|
|
{
|
|
'target_name': 'video_capture_tests_apk_target',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
'<(apk_tests_path):video_capture_tests_apk',
|
|
],
|
|
},
|
|
],
|
|
}],
|
|
['test_isolation_mode != "noop"', {
|
|
'targets': [
|
|
{
|
|
'target_name': 'video_capture_tests_run',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
'video_capture_tests',
|
|
],
|
|
'includes': [
|
|
'../../build/isolate.gypi',
|
|
],
|
|
'sources': [
|
|
'video_capture_tests.isolate',
|
|
],
|
|
},
|
|
],
|
|
}],
|
|
],
|
|
}],
|
|
],
|
|
}
|
|
|