GN: Change rtc_source_set targets --> rtc_static_library

This changes most non-test related rtc_source_set targets to be
rtc_static_library instead. Targets without any .cc files are excluded.
This should bring back the build behavior we used to have with GYP
(i.e. same symbols exported in the libjingle_peerconnection.a file, which
are used by some downstream projects).

After doing an Android build with these changes:
$ nm --defined-only -g -C out/Release/lib.unstripped/libjingle_peerconnection_so.so | grep -i createpeerconnectionf
00077c51 T Java_org_webrtc_PeerConnectionFactory_nativeCreatePeerConnectionFactory
$ nm --defined-only -g -C out/Release/obj/webrtc/api/libjingle_peerconnection.a | grep -i createpeerconnectionf
00000001 T webrtc::CreatePeerConnectionFactory(rtc::Thread*, rtc::Thread*, rtc::Thread*, webrtc::AudioDeviceModule*, cricket::WebRtcVideoEncoderFactory*, cricket::WebRtcVideoDecoderFactory*)
00000001 T webrtc::CreatePeerConnectionFactory()

See https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/cookbook.md#Note-on-static-libraries
for more details on this.

NOTICE: This should be further cleaned up in the future, to reduce
binary bloat and unnecessary linking time. Right now it's more
important to restore the desired build output though.

BUG=webrtc:6410, chromium:630755

Review-Url: https://codereview.webrtc.org/2361623004
Cr-Commit-Position: refs/heads/master@{#14364}
This commit is contained in:
kjellander 2016-09-23 00:38:52 -07:00 committed by Commit bot
parent 25f6a39181
commit b62dbbe985
36 changed files with 91 additions and 91 deletions

View File

@ -287,7 +287,7 @@ if (!is_ios || !build_with_chromium) {
} }
} }
rtc_source_set("webrtc_common") { rtc_static_library("webrtc_common") {
sources = [ sources = [
"common_types.cc", "common_types.cc",
"common_types.h", "common_types.h",
@ -313,7 +313,7 @@ if (rtc_enable_protobuf) {
} }
} }
rtc_source_set("rtc_event_log") { rtc_static_library("rtc_event_log") {
sources = [ sources = [
"call/rtc_event_log.cc", "call/rtc_event_log.cc",
"call/rtc_event_log.h", "call/rtc_event_log.h",
@ -340,7 +340,7 @@ rtc_source_set("rtc_event_log") {
} }
if (rtc_enable_protobuf) { if (rtc_enable_protobuf) {
rtc_source_set("rtc_event_log_parser") { rtc_static_library("rtc_event_log_parser") {
sources = [ sources = [
"call/rtc_event_log_parser.cc", "call/rtc_event_log_parser.cc",
"call/rtc_event_log_parser.h", "call/rtc_event_log_parser.h",

View File

@ -43,7 +43,7 @@ config("libjingle_peerconnection_warnings_config") {
} }
} }
rtc_source_set("libjingle_peerconnection") { rtc_static_library("libjingle_peerconnection") {
cflags = [] cflags = []
sources = [ sources = [
"audiotrack.cc", "audiotrack.cc",
@ -160,7 +160,7 @@ if (is_android && !build_with_chromium) {
} }
} }
rtc_source_set("libjingle_peerconnection_jni") { rtc_static_library("libjingle_peerconnection_jni") {
sources = [ sources = [
"android/jni/androidmediacodeccommon.h", "android/jni/androidmediacodeccommon.h",
"android/jni/androidmediadecoder_jni.cc", "android/jni/androidmediadecoder_jni.cc",

View File

@ -8,7 +8,7 @@
import("../build/webrtc.gni") import("../build/webrtc.gni")
rtc_source_set("audio") { rtc_static_library("audio") {
sources = [ sources = [
"audio_receive_stream.cc", "audio_receive_stream.cc",
"audio_receive_stream.h", "audio_receive_stream.h",

View File

@ -8,7 +8,7 @@
import("../build/webrtc.gni") import("../build/webrtc.gni")
rtc_source_set("call") { rtc_static_library("call") {
sources = [ sources = [
"bitrate_allocator.cc", "bitrate_allocator.cc",
"call.cc", "call.cc",

View File

@ -17,7 +17,7 @@ config("common_audio_config") {
] ]
} }
rtc_source_set("common_audio") { rtc_static_library("common_audio") {
sources = [ sources = [
"audio_converter.cc", "audio_converter.cc",
"audio_converter.h", "audio_converter.h",
@ -186,7 +186,7 @@ rtc_source_set("common_audio") {
} }
if (current_cpu == "x86" || current_cpu == "x64") { if (current_cpu == "x86" || current_cpu == "x64") {
rtc_source_set("common_audio_sse2") { rtc_static_library("common_audio_sse2") {
sources = [ sources = [
"fir_filter_sse.cc", "fir_filter_sse.cc",
"resampler/sinc_resampler_sse.cc", "resampler/sinc_resampler_sse.cc",
@ -205,7 +205,7 @@ if (current_cpu == "x86" || current_cpu == "x64") {
} }
if (rtc_build_with_neon) { if (rtc_build_with_neon) {
rtc_source_set("common_audio_neon") { rtc_static_library("common_audio_neon") {
sources = [ sources = [
"fir_filter_neon.cc", "fir_filter_neon.cc",
"resampler/sinc_resampler_neon.cc", "resampler/sinc_resampler_neon.cc",

View File

@ -15,7 +15,7 @@ config("common_video_config") {
] ]
} }
rtc_source_set("common_video") { rtc_static_library("common_video") {
sources = [ sources = [
"bitrate_adjuster.cc", "bitrate_adjuster.cc",
"h264/h264_common.cc", "h264/h264_common.cc",

View File

@ -121,7 +121,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
include_dirs = [ "objc/AppRTCDemo/common" ] include_dirs = [ "objc/AppRTCDemo/common" ]
} }
rtc_source_set("apprtc_common") { rtc_static_library("apprtc_common") {
sources = [ sources = [
"objc/AppRTCDemo/common/ARDUtilities.h", "objc/AppRTCDemo/common/ARDUtilities.h",
"objc/AppRTCDemo/common/ARDUtilities.m", "objc/AppRTCDemo/common/ARDUtilities.m",
@ -154,7 +154,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
} }
} }
rtc_source_set("apprtc_signaling") { rtc_static_library("apprtc_signaling") {
sources = [ sources = [
"objc/AppRTCDemo/ARDAppClient+Internal.h", "objc/AppRTCDemo/ARDAppClient+Internal.h",
"objc/AppRTCDemo/ARDAppClient.h", "objc/AppRTCDemo/ARDAppClient.h",
@ -270,7 +270,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
} }
if (is_mac) { if (is_mac) {
rtc_source_set("AppRTCDemo_app") { rtc_static_library("AppRTCDemo_app") {
sources = [ sources = [
"objc/AppRTCDemo/mac/APPRTCAppDelegate.h", "objc/AppRTCDemo/mac/APPRTCAppDelegate.h",
"objc/AppRTCDemo/mac/APPRTCAppDelegate.m", "objc/AppRTCDemo/mac/APPRTCAppDelegate.m",
@ -338,7 +338,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
} }
} }
rtc_source_set("socketrocket") { rtc_static_library("socketrocket") {
sources = [ sources = [
"objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.h", "objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.h",
"objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.m", "objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.m",

View File

@ -14,7 +14,7 @@ group("xmllite") {
] ]
} }
rtc_source_set("rtc_xmllite") { rtc_static_library("rtc_xmllite") {
sources = [ sources = [
"qname.cc", "qname.cc",
"qname.h", "qname.h",

View File

@ -30,7 +30,7 @@ config("xmpp_inherited_config") {
] ]
} }
rtc_source_set("rtc_xmpp") { rtc_static_library("rtc_xmpp") {
cflags = [] cflags = []
sources = [ sources = [
"asyncsocket.h", "asyncsocket.h",

View File

@ -42,7 +42,7 @@ if (is_linux && rtc_use_gtk) {
} }
} }
rtc_source_set("rtc_media") { rtc_static_library("rtc_media") {
defines = [] defines = []
libs = [] libs = []
deps = [] deps = []

View File

@ -39,7 +39,7 @@ audio_coding_deps = audio_codec_deps + [
"../../system_wrappers", "../../system_wrappers",
] ]
rtc_source_set("audio_decoder_factory_interface") { rtc_static_library("audio_decoder_factory_interface") {
sources = [ sources = [
"codecs/audio_decoder_factory.h", "codecs/audio_decoder_factory.h",
"codecs/audio_format.cc", "codecs/audio_format.cc",
@ -50,7 +50,7 @@ rtc_source_set("audio_decoder_factory_interface") {
] ]
} }
rtc_source_set("builtin_audio_decoder_factory") { rtc_static_library("builtin_audio_decoder_factory") {
sources = [ sources = [
"codecs/builtin_audio_decoder_factory.cc", "codecs/builtin_audio_decoder_factory.cc",
"codecs/builtin_audio_decoder_factory.h", "codecs/builtin_audio_decoder_factory.h",
@ -62,7 +62,7 @@ rtc_source_set("builtin_audio_decoder_factory") {
defines = audio_codec_defines defines = audio_codec_defines
} }
rtc_source_set("rent_a_codec") { rtc_static_library("rent_a_codec") {
sources = [ sources = [
"acm2/acm_codec_database.cc", "acm2/acm_codec_database.cc",
"acm2/acm_codec_database.h", "acm2/acm_codec_database.h",
@ -80,7 +80,7 @@ config("audio_coding_config") {
] ]
} }
rtc_source_set("audio_coding") { rtc_static_library("audio_coding") {
sources = [ sources = [
"acm2/acm_common_defs.h", "acm2/acm_common_defs.h",
"acm2/acm_receiver.cc", "acm2/acm_receiver.cc",
@ -124,7 +124,7 @@ rtc_source_set("audio_coding") {
defines = audio_coding_defines defines = audio_coding_defines
} }
rtc_source_set("audio_decoder_interface") { rtc_static_library("audio_decoder_interface") {
sources = [ sources = [
"codecs/audio_decoder.cc", "codecs/audio_decoder.cc",
"codecs/audio_decoder.h", "codecs/audio_decoder.h",
@ -137,7 +137,7 @@ rtc_source_set("audio_decoder_interface") {
] ]
} }
rtc_source_set("audio_encoder_interface") { rtc_static_library("audio_encoder_interface") {
sources = [ sources = [
"codecs/audio_encoder.cc", "codecs/audio_encoder.cc",
"codecs/audio_encoder.h", "codecs/audio_encoder.h",
@ -155,7 +155,7 @@ config("cng_config") {
] ]
} }
rtc_source_set("cng") { rtc_static_library("cng") {
sources = [ sources = [
"codecs/cng/audio_encoder_cng.cc", "codecs/cng/audio_encoder_cng.cc",
"codecs/cng/audio_encoder_cng.h", "codecs/cng/audio_encoder_cng.h",
@ -175,7 +175,7 @@ config("red_config") {
include_dirs = [ "codecs/red" ] include_dirs = [ "codecs/red" ]
} }
rtc_source_set("red") { rtc_static_library("red") {
sources = [ sources = [
"codecs/red/audio_encoder_copy_red.cc", "codecs/red/audio_encoder_copy_red.cc",
"codecs/red/audio_encoder_copy_red.h", "codecs/red/audio_encoder_copy_red.h",
@ -196,7 +196,7 @@ config("g711_config") {
] ]
} }
rtc_source_set("g711") { rtc_static_library("g711") {
sources = [ sources = [
"codecs/g711/audio_decoder_pcm.cc", "codecs/g711/audio_decoder_pcm.cc",
"codecs/g711/audio_decoder_pcm.h", "codecs/g711/audio_decoder_pcm.h",
@ -223,7 +223,7 @@ config("g722_config") {
] ]
} }
rtc_source_set("g722") { rtc_static_library("g722") {
sources = [ sources = [
"codecs/g722/audio_decoder_g722.cc", "codecs/g722/audio_decoder_g722.cc",
"codecs/g722/audio_decoder_g722.h", "codecs/g722/audio_decoder_g722.h",
@ -251,7 +251,7 @@ config("ilbc_config") {
] ]
} }
rtc_source_set("ilbc") { rtc_static_library("ilbc") {
sources = [ sources = [
"codecs/ilbc/abs_quant.c", "codecs/ilbc/abs_quant.c",
"codecs/ilbc/abs_quant.h", "codecs/ilbc/abs_quant.h",
@ -408,7 +408,7 @@ rtc_source_set("ilbc") {
] ]
} }
rtc_source_set("isac_common") { rtc_static_library("isac_common") {
sources = [ sources = [
"codecs/isac/audio_encoder_isac_t.h", "codecs/isac/audio_encoder_isac_t.h",
"codecs/isac/audio_encoder_isac_t_impl.h", "codecs/isac/audio_encoder_isac_t_impl.h",
@ -424,7 +424,7 @@ config("isac_config") {
] ]
} }
rtc_source_set("isac") { rtc_static_library("isac") {
sources = [ sources = [
"codecs/isac/main/include/audio_decoder_isac.h", "codecs/isac/main/include/audio_decoder_isac.h",
"codecs/isac/main/include/audio_encoder_isac.h", "codecs/isac/main/include/audio_encoder_isac.h",
@ -505,7 +505,7 @@ config("isac_fix_config") {
] ]
} }
rtc_source_set("isac_fix") { rtc_static_library("isac_fix") {
sources = [ sources = [
"codecs/isac/fix/include/audio_decoder_isacfix.h", "codecs/isac/fix/include/audio_decoder_isacfix.h",
"codecs/isac/fix/include/audio_encoder_isacfix.h", "codecs/isac/fix/include/audio_encoder_isacfix.h",
@ -608,7 +608,7 @@ rtc_source_set("isac_fix") {
} }
if (rtc_build_with_neon) { if (rtc_build_with_neon) {
rtc_source_set("isac_neon") { rtc_static_library("isac_neon") {
sources = [ sources = [
"codecs/isac/fix/source/entropy_coding_neon.c", "codecs/isac/fix/source/entropy_coding_neon.c",
"codecs/isac/fix/source/filterbanks_neon.c", "codecs/isac/fix/source/filterbanks_neon.c",
@ -647,7 +647,7 @@ config("pcm16b_config") {
] ]
} }
rtc_source_set("pcm16b") { rtc_static_library("pcm16b") {
sources = [ sources = [
"codecs/pcm16b/audio_decoder_pcm16b.cc", "codecs/pcm16b/audio_decoder_pcm16b.cc",
"codecs/pcm16b/audio_decoder_pcm16b.h", "codecs/pcm16b/audio_decoder_pcm16b.h",
@ -670,7 +670,7 @@ config("opus_config") {
include_dirs = [ "../../.." ] include_dirs = [ "../../.." ]
} }
rtc_source_set("webrtc_opus") { rtc_static_library("webrtc_opus") {
sources = [ sources = [
"codecs/opus/audio_decoder_opus.cc", "codecs/opus/audio_decoder_opus.cc",
"codecs/opus/audio_decoder_opus.h", "codecs/opus/audio_decoder_opus.h",
@ -749,7 +749,7 @@ config("neteq_config") {
] ]
} }
rtc_source_set("neteq") { rtc_static_library("neteq") {
sources = [ sources = [
"neteq/accelerate.cc", "neteq/accelerate.cc",
"neteq/accelerate.h", "neteq/accelerate.h",
@ -1002,7 +1002,7 @@ if (rtc_include_tests) {
proto_out_dir = "webrtc/audio_coding/neteq" proto_out_dir = "webrtc/audio_coding/neteq"
} }
rtc_source_set("rtc_event_log_source") { rtc_static_library("rtc_event_log_source") {
testonly = true testonly = true
sources = [ sources = [
"neteq/tools/rtc_event_log_source.cc", "neteq/tools/rtc_event_log_source.cc",

View File

@ -16,7 +16,7 @@ config("audio_conference_mixer_config") {
] ]
} }
rtc_source_set("audio_conference_mixer") { rtc_static_library("audio_conference_mixer") {
sources = [ sources = [
"include/audio_conference_mixer.h", "include/audio_conference_mixer.h",
"include/audio_conference_mixer_defines.h", "include/audio_conference_mixer_defines.h",

View File

@ -48,7 +48,7 @@ config("audio_device_warnings_config") {
} }
} }
rtc_source_set("audio_device") { rtc_static_library("audio_device") {
public_configs = [ ":audio_device_config" ] public_configs = [ ":audio_device_config" ]
deps = [ deps = [

View File

@ -12,7 +12,7 @@ config("audio_conference_mixer_config") {
include_dirs = [ "../../modules/include" ] include_dirs = [ "../../modules/include" ]
} }
rtc_source_set("audio_mixer") { rtc_static_library("audio_mixer") {
sources = [ sources = [
"audio_frame_manipulator.cc", "audio_frame_manipulator.cc",
"audio_frame_manipulator.h", "audio_frame_manipulator.h",

View File

@ -17,7 +17,7 @@ declare_args() {
aec_untrusted_delay_for_testing = false aec_untrusted_delay_for_testing = false
} }
rtc_source_set("audio_processing") { rtc_static_library("audio_processing") {
sources = [ sources = [
"aec/aec_core.cc", "aec/aec_core.cc",
"aec/aec_core.h", "aec/aec_core.h",
@ -253,7 +253,7 @@ if (rtc_enable_protobuf) {
} }
if (current_cpu == "x86" || current_cpu == "x64") { if (current_cpu == "x86" || current_cpu == "x64") {
rtc_source_set("audio_processing_sse2") { rtc_static_library("audio_processing_sse2") {
sources = [ sources = [
"aec/aec_core_sse2.cc", "aec/aec_core_sse2.cc",
"aec/aec_rdft_sse2.cc", "aec/aec_rdft_sse2.cc",
@ -272,7 +272,7 @@ if (current_cpu == "x86" || current_cpu == "x64") {
} }
if (rtc_build_with_neon) { if (rtc_build_with_neon) {
rtc_source_set("audio_processing_neon") { rtc_static_library("audio_processing_neon") {
sources = [ sources = [
"aec/aec_core_neon.cc", "aec/aec_core_neon.cc",
"aec/aec_rdft_neon.cc", "aec/aec_rdft_neon.cc",
@ -453,7 +453,7 @@ if (rtc_include_tests) {
proto_out_dir = "webrtc/modules/audio_processing" proto_out_dir = "webrtc/modules/audio_processing"
} }
rtc_source_set("audioproc_protobuf_utils") { rtc_static_library("audioproc_protobuf_utils") {
sources = [ sources = [
"test/protobuf_utils.cc", "test/protobuf_utils.cc",
"test/protobuf_utils.h", "test/protobuf_utils.h",

View File

@ -8,7 +8,7 @@
import("../../build/webrtc.gni") import("../../build/webrtc.gni")
rtc_source_set("bitrate_controller") { rtc_static_library("bitrate_controller") {
sources = [ sources = [
"bitrate_controller_impl.cc", "bitrate_controller_impl.cc",
"bitrate_controller_impl.h", "bitrate_controller_impl.h",

View File

@ -8,7 +8,7 @@
import("../../build/webrtc.gni") import("../../build/webrtc.gni")
rtc_source_set("congestion_controller") { rtc_static_library("congestion_controller") {
sources = [ sources = [
"congestion_controller.cc", "congestion_controller.cc",
"delay_based_bwe.cc", "delay_based_bwe.cc",

View File

@ -12,7 +12,7 @@ import("../../build/webrtc.gni")
use_desktop_capture_differ_sse2 = use_desktop_capture_differ_sse2 =
!is_ios && (current_cpu == "x86" || current_cpu == "x64") !is_ios && (current_cpu == "x86" || current_cpu == "x64")
rtc_source_set("primitives") { rtc_static_library("primitives") {
sources = [ sources = [
"desktop_capture_types.h", "desktop_capture_types.h",
"desktop_frame.cc", "desktop_frame.cc",
@ -24,7 +24,7 @@ rtc_source_set("primitives") {
] ]
} }
rtc_source_set("desktop_capture") { rtc_static_library("desktop_capture") {
sources = [ sources = [
"cropped_desktop_frame.cc", "cropped_desktop_frame.cc",
"cropped_desktop_frame.h", "cropped_desktop_frame.h",
@ -168,7 +168,7 @@ rtc_source_set("desktop_capture") {
if (use_desktop_capture_differ_sse2) { if (use_desktop_capture_differ_sse2) {
# Have to be compiled as a separate target because it needs to be compiled # Have to be compiled as a separate target because it needs to be compiled
# with SSE2 enabled. # with SSE2 enabled.
rtc_source_set("desktop_capture_differ_sse2") { rtc_static_library("desktop_capture_differ_sse2") {
visibility = [ ":*" ] visibility = [ ":*" ]
sources = [ sources = [
"differ_vector_sse2.cc", "differ_vector_sse2.cc",

View File

@ -12,7 +12,7 @@ config("media_file_config") {
visibility = [ ":*" ] # Only targets in this file can depend on this. visibility = [ ":*" ] # Only targets in this file can depend on this.
} }
rtc_source_set("media_file") { rtc_static_library("media_file") {
sources = [ sources = [
"media_file.h", "media_file.h",
"media_file_defines.h", "media_file_defines.h",

View File

@ -8,7 +8,7 @@
import("../../build/webrtc.gni") import("../../build/webrtc.gni")
rtc_source_set("pacing") { rtc_static_library("pacing") {
sources = [ sources = [
"bitrate_prober.cc", "bitrate_prober.cc",
"bitrate_prober.h", "bitrate_prober.h",

View File

@ -8,7 +8,7 @@
import("../../build/webrtc.gni") import("../../build/webrtc.gni")
rtc_source_set("remote_bitrate_estimator") { rtc_static_library("remote_bitrate_estimator") {
sources = [ sources = [
"aimd_rate_control.cc", "aimd_rate_control.cc",
"aimd_rate_control.h", "aimd_rate_control.h",
@ -56,7 +56,7 @@ rtc_source_set("remote_bitrate_estimator") {
} }
if (rtc_include_tests) { if (rtc_include_tests) {
rtc_source_set("bwe_simulator") { rtc_static_library("bwe_simulator") {
testonly = true testonly = true
sources = [ sources = [
"bwe_simulations.cc", "bwe_simulations.cc",

View File

@ -8,7 +8,7 @@
import("../../build/webrtc.gni") import("../../build/webrtc.gni")
rtc_source_set("rtp_rtcp") { rtc_static_library("rtp_rtcp") {
sources = [ sources = [
"include/fec_receiver.h", "include/fec_receiver.h",
"include/receive_statistics.h", "include/receive_statistics.h",

View File

@ -8,7 +8,7 @@
import("../../build/webrtc.gni") import("../../build/webrtc.gni")
rtc_source_set("utility") { rtc_static_library("utility") {
sources = [ sources = [
"include/audio_frame_operations.h", "include/audio_frame_operations.h",
"include/file_player.h", "include/file_player.h",

View File

@ -12,7 +12,7 @@ import("../../build/webrtc.gni")
# Targets must link with either 'video_capture' or # Targets must link with either 'video_capture' or
# 'video_capture_internal_impl' depending on whether they want to # 'video_capture_internal_impl' depending on whether they want to
# use the internal capturer. # use the internal capturer.
rtc_source_set("video_capture_module") { rtc_static_library("video_capture_module") {
sources = [ sources = [
"device_info_impl.cc", "device_info_impl.cc",
"device_info_impl.h", "device_info_impl.h",
@ -40,7 +40,7 @@ rtc_source_set("video_capture_module") {
} }
} }
rtc_source_set("video_capture") { rtc_static_library("video_capture") {
sources = [ sources = [
"external/device_info_external.cc", "external/device_info_external.cc",
"external/video_capture_external.cc", "external/video_capture_external.cc",
@ -87,7 +87,7 @@ if (!build_with_chromium) {
} }
} }
rtc_source_set("video_capture_internal_impl") { rtc_static_library("video_capture_internal_impl") {
configs += [ ":video_capture_internal_impl_warnings_config" ] configs += [ ":video_capture_internal_impl_warnings_config" ]
deps = [ deps = [

View File

@ -8,7 +8,7 @@
import("../../build/webrtc.gni") import("../../build/webrtc.gni")
rtc_source_set("video_coding") { rtc_static_library("video_coding") {
sources = [ sources = [
"codec_database.cc", "codec_database.cc",
"codec_database.h", "codec_database.h",
@ -95,7 +95,7 @@ rtc_source_set("video_coding") {
] ]
} }
rtc_source_set("video_coding_utility") { rtc_static_library("video_coding_utility") {
sources = [ sources = [
"utility/frame_dropper.cc", "utility/frame_dropper.cc",
"utility/frame_dropper.h", "utility/frame_dropper.h",
@ -127,7 +127,7 @@ rtc_source_set("video_coding_utility") {
] ]
} }
rtc_source_set("webrtc_h264") { rtc_static_library("webrtc_h264") {
sources = [ sources = [
"codecs/h264/h264.cc", "codecs/h264/h264.cc",
"codecs/h264/include/h264.h", "codecs/h264/include/h264.h",
@ -178,7 +178,7 @@ if (is_ios) {
} }
} }
rtc_source_set("webrtc_h264_video_toolbox") { rtc_static_library("webrtc_h264_video_toolbox") {
sources = [ sources = [
"codecs/h264/h264_video_toolbox_decoder.cc", "codecs/h264/h264_video_toolbox_decoder.cc",
"codecs/h264/h264_video_toolbox_decoder.h", "codecs/h264/h264_video_toolbox_decoder.h",
@ -223,7 +223,7 @@ if (is_ios) {
} }
} }
rtc_source_set("webrtc_i420") { rtc_static_library("webrtc_i420") {
sources = [ sources = [
"codecs/i420/i420.cc", "codecs/i420/i420.cc",
"codecs/i420/include/i420.h", "codecs/i420/include/i420.h",
@ -240,7 +240,7 @@ rtc_source_set("webrtc_i420") {
] ]
} }
rtc_source_set("webrtc_vp8") { rtc_static_library("webrtc_vp8") {
sources = [ sources = [
"codecs/vp8/default_temporal_layers.cc", "codecs/vp8/default_temporal_layers.cc",
"codecs/vp8/default_temporal_layers.h", "codecs/vp8/default_temporal_layers.h",
@ -278,7 +278,7 @@ rtc_source_set("webrtc_vp8") {
} }
} }
rtc_source_set("webrtc_vp9") { rtc_static_library("webrtc_vp9") {
sources = [ sources = [
"codecs/vp9/include/vp9.h", "codecs/vp9/include/vp9.h",
"codecs/vp9/screenshare_layers.cc", "codecs/vp9/screenshare_layers.cc",

View File

@ -11,7 +11,7 @@ import("../../build/webrtc.gni")
build_video_processing_sse2 = current_cpu == "x86" || current_cpu == "x64" build_video_processing_sse2 = current_cpu == "x86" || current_cpu == "x64"
rtc_source_set("video_processing") { rtc_static_library("video_processing") {
sources = [ sources = [
"frame_preprocessor.cc", "frame_preprocessor.cc",
"frame_preprocessor.h", "frame_preprocessor.h",
@ -56,7 +56,7 @@ rtc_source_set("video_processing") {
} }
if (build_video_processing_sse2) { if (build_video_processing_sse2) {
rtc_source_set("video_processing_sse2") { rtc_static_library("video_processing_sse2") {
sources = [ sources = [
"util/denoiser_filter_sse2.cc", "util/denoiser_filter_sse2.cc",
"util/denoiser_filter_sse2.h", "util/denoiser_filter_sse2.h",
@ -75,7 +75,7 @@ if (build_video_processing_sse2) {
} }
if (rtc_build_with_neon) { if (rtc_build_with_neon) {
rtc_source_set("video_processing_neon") { rtc_static_library("video_processing_neon") {
sources = [ sources = [
"util/denoiser_filter_neon.cc", "util/denoiser_filter_neon.cc",
"util/denoiser_filter_neon.h", "util/denoiser_filter_neon.h",

View File

@ -18,7 +18,7 @@ config("rtc_p2p_inherited_config") {
defines = [ "FEATURE_ENABLE_VOICEMAIL" ] defines = [ "FEATURE_ENABLE_VOICEMAIL" ]
} }
rtc_source_set("rtc_p2p") { rtc_static_library("rtc_p2p") {
sources = [ sources = [
"base/asyncstuntcpsocket.cc", "base/asyncstuntcpsocket.cc",
"base/asyncstuntcpsocket.h", "base/asyncstuntcpsocket.h",
@ -142,7 +142,7 @@ rtc_source_set("rtc_p2p") {
} }
} }
rtc_source_set("libstunprober") { rtc_static_library("libstunprober") {
sources = [ sources = [
"stunprober/stunprober.cc", "stunprober/stunprober.cc",
] ]

View File

@ -22,7 +22,7 @@ config("rtc_pc_config") {
] ]
} }
rtc_source_set("rtc_pc") { rtc_static_library("rtc_pc") {
defines = [] defines = []
sources = [ sources = [
"audiomonitor.cc", "audiomonitor.cc",

View File

@ -23,7 +23,7 @@ if (is_ios || (is_mac && mac_deployment_target == "10.7")) {
] ]
} }
rtc_source_set("rtc_sdk_common_objc") { rtc_static_library("rtc_sdk_common_objc") {
deps = [ deps = [
"../base:rtc_base", "../base:rtc_base",
] ]
@ -77,7 +77,7 @@ if (is_ios || (is_mac && mac_deployment_target == "10.7")) {
} }
} }
rtc_source_set("rtc_sdk_peerconnection_objc") { rtc_static_library("rtc_sdk_peerconnection_objc") {
sources = [ sources = [
"objc/Framework/Classes/RTCAVFoundationVideoSource+Private.h", "objc/Framework/Classes/RTCAVFoundationVideoSource+Private.h",
"objc/Framework/Classes/RTCAVFoundationVideoSource.mm", "objc/Framework/Classes/RTCAVFoundationVideoSource.mm",

View File

@ -15,7 +15,7 @@ group("stats") {
} }
# GYP version: webrtc/stats/stats.gyp:rtc_stats # GYP version: webrtc/stats/stats.gyp:rtc_stats
rtc_source_set("rtc_stats") { rtc_static_library("rtc_stats") {
cflags = [] cflags = []
sources = [ sources = [
"rtcstats.cc", "rtcstats.cc",

View File

@ -12,7 +12,7 @@ if (is_android) {
} }
import("../build/webrtc.gni") import("../build/webrtc.gni")
rtc_source_set("system_wrappers") { rtc_static_library("system_wrappers") {
sources = [ sources = [
"include/aligned_array.h", "include/aligned_array.h",
"include/aligned_malloc.h", "include/aligned_malloc.h",
@ -136,21 +136,21 @@ rtc_source_set("system_wrappers") {
deps += [ "../base:rtc_base_approved" ] deps += [ "../base:rtc_base_approved" ]
} }
rtc_source_set("field_trial_default") { rtc_static_library("field_trial_default") {
sources = [ sources = [
"include/field_trial_default.h", "include/field_trial_default.h",
"source/field_trial_default.cc", "source/field_trial_default.cc",
] ]
} }
rtc_source_set("metrics_default") { rtc_static_library("metrics_default") {
sources = [ sources = [
"include/metrics_default.h", "include/metrics_default.h",
"source/metrics_default.cc", "source/metrics_default.cc",
] ]
} }
rtc_source_set("system_wrappers_default") { group("system_wrappers_default") {
deps = [ deps = [
":field_trial_default", ":field_trial_default",
":metrics_default", ":metrics_default",
@ -159,7 +159,7 @@ rtc_source_set("system_wrappers_default") {
} }
if (is_android) { if (is_android) {
rtc_source_set("cpu_features_android") { rtc_static_library("cpu_features_android") {
sources = [ sources = [
"source/cpu_features_android.c", "source/cpu_features_android.c",
] ]
@ -171,7 +171,7 @@ if (is_android) {
} }
if (is_linux) { if (is_linux) {
rtc_source_set("cpu_features_linux") { rtc_static_library("cpu_features_linux") {
sources = [ sources = [
"source/cpu_features_linux.c", "source/cpu_features_linux.c",
] ]

View File

@ -12,7 +12,7 @@ if (is_android) {
import("//build/config/android/rules.gni") import("//build/config/android/rules.gni")
} }
rtc_source_set("test") { group("test") {
testonly = true testonly = true
deps = [ deps = [

View File

@ -117,7 +117,7 @@ webrtc_fuzzer_test("congestion_controller_feedback_fuzzer") {
] ]
} }
rtc_source_set("audio_decoder_fuzzer") { rtc_static_library("audio_decoder_fuzzer") {
sources = [ sources = [
"audio_decoder_fuzzer.cc", "audio_decoder_fuzzer.cc",
"audio_decoder_fuzzer.h", "audio_decoder_fuzzer.h",

View File

@ -9,7 +9,7 @@
import("//third_party/protobuf/proto_library.gni") import("//third_party/protobuf/proto_library.gni")
import("../build/webrtc.gni") import("../build/webrtc.gni")
rtc_source_set("tools") { group("tools") {
deps = [ deps = [
":command_line_parser", ":command_line_parser",
] ]
@ -23,7 +23,7 @@ rtc_source_set("tools") {
} }
} }
rtc_source_set("command_line_parser") { rtc_static_library("command_line_parser") {
sources = [ sources = [
"simple_command_line_parser.cc", "simple_command_line_parser.cc",
"simple_command_line_parser.h", "simple_command_line_parser.h",
@ -33,7 +33,7 @@ rtc_source_set("command_line_parser") {
] ]
} }
rtc_source_set("video_quality_analysis") { rtc_static_library("video_quality_analysis") {
sources = [ sources = [
"frame_analyzer/video_quality_analysis.cc", "frame_analyzer/video_quality_analysis.cc",
"frame_analyzer/video_quality_analysis.h", "frame_analyzer/video_quality_analysis.h",
@ -85,7 +85,7 @@ rtc_executable("rgba_to_i420_converter") {
] ]
} }
rtc_source_set("frame_editing_lib") { rtc_static_library("frame_editing_lib") {
sources = [ sources = [
"frame_editing/frame_editing_lib.cc", "frame_editing/frame_editing_lib.cc",
"frame_editing/frame_editing_lib.h", "frame_editing/frame_editing_lib.h",
@ -146,7 +146,7 @@ if (rtc_enable_protobuf) {
proto_out_dir = "webrtc/tools/event_log_visualizer" proto_out_dir = "webrtc/tools/event_log_visualizer"
} }
rtc_source_set("event_log_visualizer_utils") { rtc_static_library("event_log_visualizer_utils") {
sources = [ sources = [
"event_log_visualizer/analyzer.cc", "event_log_visualizer/analyzer.cc",
"event_log_visualizer/analyzer.h", "event_log_visualizer/analyzer.h",

View File

@ -8,7 +8,7 @@
import("../build/webrtc.gni") import("../build/webrtc.gni")
rtc_source_set("video") { rtc_static_library("video") {
sources = [ sources = [
"call_stats.cc", "call_stats.cc",
"call_stats.h", "call_stats.h",

View File

@ -8,7 +8,7 @@
import("../build/webrtc.gni") import("../build/webrtc.gni")
rtc_source_set("voice_engine") { rtc_static_library("voice_engine") {
sources = [ sources = [
"channel.cc", "channel.cc",
"channel.h", "channel.h",
@ -106,7 +106,7 @@ rtc_source_set("voice_engine") {
] ]
} }
rtc_source_set("level_indicator") { rtc_static_library("level_indicator") {
sources = [ sources = [
"level_indicator.cc", "level_indicator.cc",
"level_indicator.h", "level_indicator.h",
@ -142,7 +142,7 @@ if (rtc_include_tests) {
} }
} }
rtc_source_set("channel_transport") { rtc_static_library("channel_transport") {
testonly = true testonly = true
sources = [ sources = [
"test/channel_transport/channel_transport.cc", "test/channel_transport/channel_transport.cc",