From: Mike Hommey Date: Wed, 19 Oct 2022 07:00:23 +0900 Subject: Bug 1795993 - Fix webrtc FTBFS from missing sse2 flags. --- .../resource_adaptation_api_gn/moz.build | 8 +++++ .../api/audio/aec3_config_gn/moz.build | 8 +++++ .../api/audio/aec3_factory_gn/moz.build | 8 +++++ .../api/audio/audio_frame_api_gn/moz.build | 8 +++++ .../L16/audio_decoder_L16_gn/moz.build | 8 +++++ .../L16/audio_encoder_L16_gn/moz.build | 8 +++++ .../audio_codecs_api_gn/moz.build | 8 +++++ .../moz.build | 8 +++++ .../moz.build | 8 +++++ .../g711/audio_decoder_g711_gn/moz.build | 8 +++++ .../g711/audio_encoder_g711_gn/moz.build | 8 +++++ .../g722/audio_decoder_g722_gn/moz.build | 8 +++++ .../g722/audio_encoder_g722_gn/moz.build | 8 +++++ .../ilbc/audio_decoder_ilbc_gn/moz.build | 8 +++++ .../ilbc/audio_encoder_ilbc_gn/moz.build | 8 +++++ .../audio_decoder_isac_float_gn/moz.build | 8 +++++ .../audio_encoder_isac_float_gn/moz.build | 8 +++++ .../opus/audio_decoder_multiopus_gn/moz.build | 8 +++++ .../opus/audio_decoder_opus_gn/moz.build | 8 +++++ .../opus/audio_encoder_multiopus_gn/moz.build | 8 +++++ .../audio_encoder_opus_config_gn/moz.build | 8 +++++ .../opus/audio_encoder_opus_gn/moz.build | 8 +++++ .../api/audio_options_api_gn/moz.build | 8 +++++ .../libwebrtc/api/crypto/options_gn/moz.build | 8 +++++ .../api/media_stream_interface_gn/moz.build | 8 +++++ .../moz.build | 8 +++++ .../api/neteq/neteq_api_gn/moz.build | 8 +++++ .../api/neteq/tick_timer_gn/moz.build | 8 +++++ .../api/numerics/numerics_gn/moz.build | 8 +++++ .../libwebrtc/api/rtc_error_gn/moz.build | 8 +++++ .../rtc_event_log/rtc_event_log_gn/moz.build | 8 +++++ .../libwebrtc/api/rtp_headers_gn/moz.build | 8 +++++ .../api/rtp_packet_info_gn/moz.build | 8 +++++ .../libwebrtc/api/rtp_parameters_gn/moz.build | 8 +++++ .../pending_task_safety_flag_gn/moz.build | 8 +++++ .../api/task_queue/task_queue_gn/moz.build | 8 +++++ .../transport/bitrate_settings_gn/moz.build | 8 +++++ .../field_trial_based_config_gn/moz.build | 8 +++++ .../api/transport/goog_cc_gn/moz.build | 8 +++++ .../transport/network_control_gn/moz.build | 8 +++++ .../rtp/dependency_descriptor_gn/moz.build | 8 +++++ .../libwebrtc/api/transport_api_gn/moz.build | 8 +++++ .../api/units/data_rate_gn/moz.build | 8 +++++ .../api/units/data_size_gn/moz.build | 8 +++++ .../api/units/frequency_gn/moz.build | 8 +++++ .../api/units/time_delta_gn/moz.build | 8 +++++ .../api/units/timestamp_gn/moz.build | 8 +++++ .../moz.build | 8 +++++ .../api/video/encoded_frame_gn/moz.build | 8 +++++ .../api/video/encoded_image_gn/moz.build | 8 +++++ .../api/video/frame_buffer_gn/moz.build | 8 +++++ .../api/video/video_adaptation_gn/moz.build | 8 +++++ .../video_bitrate_allocation_gn/moz.build | 8 +++++ .../video_bitrate_allocator_gn/moz.build | 8 +++++ .../api/video/video_frame_gn/moz.build | 8 +++++ .../api/video/video_frame_i010_gn/moz.build | 8 +++++ .../video/video_frame_metadata_gn/moz.build | 8 +++++ .../api/video/video_rtp_headers_gn/moz.build | 8 +++++ .../moz.build | 8 +++++ .../moz.build | 8 +++++ .../moz.build | 8 +++++ .../scalability_mode_gn/moz.build | 8 +++++ .../video_codecs_api_gn/moz.build | 8 +++++ .../vp8_temporal_layers_factory_gn/moz.build | 8 +++++ .../libwebrtc/audio/audio_gn/moz.build | 8 +++++ .../audio_frame_operations_gn/moz.build | 8 +++++ .../libwebrtc/build/config/compiler/BUILD.gn | 3 +- .../resource_adaptation_gn/moz.build | 8 +++++ .../call/bitrate_allocator_gn/moz.build | 8 +++++ .../call/bitrate_configurator_gn/moz.build | 8 +++++ third_party/libwebrtc/call/call_gn/moz.build | 8 +++++ .../call/call_interfaces_gn/moz.build | 8 +++++ .../libwebrtc/call/fake_network_gn/moz.build | 8 +++++ .../call/rtp_interfaces_gn/moz.build | 8 +++++ .../libwebrtc/call/rtp_receiver_gn/moz.build | 8 +++++ .../libwebrtc/call/rtp_sender_gn/moz.build | 8 +++++ .../call/simulated_network_gn/moz.build | 8 +++++ .../libwebrtc/call/version_gn/moz.build | 8 +++++ .../call/video_stream_api_gn/moz.build | 8 +++++ .../common_audio_avx2_gn/moz.build | 10 ++++++ .../common_audio/common_audio_c_gn/moz.build | 8 +++++ .../common_audio/common_audio_cc_gn/moz.build | 8 +++++ .../common_audio/common_audio_gn/moz.build | 8 +++++ .../common_audio_sse2_gn/moz.build | 32 ++++++++++++++----- .../fir_filter_factory_gn/moz.build | 8 +++++ .../ooura/fft_size_128_gn/moz.build | 2 ++ .../ooura/fft_size_256_gn/moz.build | 8 +++++ .../spl_sqrt_floor_gn/moz.build | 8 +++++ .../common_video/common_video_gn/moz.build | 8 +++++ .../generic_frame_descriptor_gn/moz.build | 8 +++++ .../logging/rtc_event_audio_gn/moz.build | 8 +++++ .../logging/rtc_event_bwe_gn/moz.build | 8 +++++ .../logging/rtc_event_field_gn/moz.build | 8 +++++ .../rtc_event_number_encodings_gn/moz.build | 8 +++++ .../logging/rtc_event_pacing_gn/moz.build | 8 +++++ .../logging/rtc_event_rtp_rtcp_gn/moz.build | 8 +++++ .../logging/rtc_event_video_gn/moz.build | 8 +++++ .../logging/rtc_stream_config_gn/moz.build | 8 +++++ .../rtc_encoder_simulcast_proxy_gn/moz.build | 8 +++++ .../rtc_internal_video_codecs_gn/moz.build | 8 +++++ .../media/rtc_media_base_gn/moz.build | 8 +++++ .../moz.build | 8 +++++ .../async_audio_processing_gn/moz.build | 8 +++++ .../audio_coding/audio_coding_gn/moz.build | 8 +++++ .../audio_coding_opus_common_gn/moz.build | 8 +++++ .../audio_encoder_cng_gn/moz.build | 8 +++++ .../audio_network_adaptor_config_gn/moz.build | 8 +++++ .../audio_network_adaptor_gn/moz.build | 8 +++++ .../default_neteq_factory_gn/moz.build | 8 +++++ .../modules/audio_coding/g711_c_gn/moz.build | 8 +++++ .../modules/audio_coding/g711_gn/moz.build | 8 +++++ .../modules/audio_coding/g722_c_gn/moz.build | 8 +++++ .../modules/audio_coding/g722_gn/moz.build | 8 +++++ .../modules/audio_coding/ilbc_c_gn/moz.build | 8 +++++ .../modules/audio_coding/ilbc_gn/moz.build | 8 +++++ .../modules/audio_coding/isac_c_gn/moz.build | 8 +++++ .../modules/audio_coding/isac_gn/moz.build | 8 +++++ .../audio_coding/isac_vad_gn/moz.build | 8 +++++ .../legacy_encoded_audio_frame_gn/moz.build | 8 +++++ .../modules/audio_coding/neteq_gn/moz.build | 8 +++++ .../audio_coding/pcm16b_c_gn/moz.build | 8 +++++ .../modules/audio_coding/pcm16b_gn/moz.build | 8 +++++ .../modules/audio_coding/red_gn/moz.build | 8 +++++ .../audio_coding/webrtc_cng_gn/moz.build | 8 +++++ .../webrtc_multiopus_gn/moz.build | 8 +++++ .../audio_coding/webrtc_opus_gn/moz.build | 8 +++++ .../webrtc_opus_wrapper_gn/moz.build | 8 +++++ .../audio_device_buffer_gn/moz.build | 8 +++++ .../audio_device_generic_gn/moz.build | 8 +++++ .../audio_device_impl_gn/moz.build | 8 +++++ .../audio_frame_manipulator_gn/moz.build | 8 +++++ .../audio_mixer/audio_mixer_impl_gn/moz.build | 8 +++++ .../aec3/aec3_avx2_gn/moz.build | 10 ++++++ .../audio_processing/aec3/aec3_gn/moz.build | 8 +++++ .../null_aec_dump_factory_gn/moz.build | 8 +++++ .../aec_dump_interface_gn/moz.build | 8 +++++ .../aecm/aecm_core_gn/moz.build | 8 +++++ .../audio_processing/agc/agc_gn/moz.build | 8 +++++ .../analog_gain_stats_reporter_gn/moz.build | 8 +++++ .../clipping_predictor_evaluator_gn/moz.build | 8 +++++ .../agc/clipping_predictor_gn/moz.build | 8 +++++ .../moz.build | 8 +++++ .../agc/legacy_agc_gn/moz.build | 8 +++++ .../agc/level_estimation_gn/moz.build | 8 +++++ .../agc2/adaptive_digital_gn/moz.build | 8 +++++ .../agc2/biquad_filter_gn/moz.build | 8 +++++ .../agc2/cpu_features_gn/moz.build | 8 +++++ .../agc2/fixed_digital_gn/moz.build | 8 +++++ .../agc2/gain_applier_gn/moz.build | 8 +++++ .../agc2/noise_level_estimator_gn/moz.build | 8 +++++ .../rnn_vad_auto_correlation_gn/moz.build | 8 +++++ .../agc2/rnn_vad/rnn_vad_gn/moz.build | 8 +++++ .../agc2/rnn_vad/rnn_vad_layers_gn/moz.build | 8 +++++ .../rnn_vad/rnn_vad_lp_residual_gn/moz.build | 8 +++++ .../agc2/rnn_vad/rnn_vad_pitch_gn/moz.build | 8 +++++ .../rnn_vad_spectral_features_gn/moz.build | 8 +++++ .../rnn_vad/vector_math_avx2_gn/moz.build | 10 ++++++ .../agc2/vad_wrapper_gn/moz.build | 8 +++++ .../modules/audio_processing/api_gn/moz.build | 8 +++++ .../audio_processing/apm_logging_gn/moz.build | 8 +++++ .../audio_buffer_gn/moz.build | 8 +++++ .../audio_frame_proxies_gn/moz.build | 8 +++++ .../audio_processing_gn/moz.build | 8 +++++ .../audio_processing_statistics_gn/moz.build | 8 +++++ .../capture_levels_adjuster_gn/moz.build | 8 +++++ .../gain_controller2_gn/moz.build | 8 +++++ .../high_pass_filter_gn/moz.build | 8 +++++ .../audio_processing/ns/ns_gn/moz.build | 8 +++++ .../moz.build | 8 +++++ .../audio_processing/rms_level_gn/moz.build | 8 +++++ .../transient_suppressor_impl_gn/moz.build | 8 +++++ .../voice_probability_delay_unit_gn/moz.build | 8 +++++ .../cascaded_biquad_filter_gn/moz.build | 8 +++++ .../legacy_delay_estimator_gn/moz.build | 8 +++++ .../utility/pffft_wrapper_gn/moz.build | 8 +++++ .../audio_processing/vad/vad_gn/moz.build | 8 +++++ .../congestion_controller_gn/moz.build | 8 +++++ .../goog_cc/alr_detector_gn/moz.build | 8 +++++ .../goog_cc/delay_based_bwe_gn/moz.build | 8 +++++ .../goog_cc/estimators_gn/moz.build | 8 +++++ .../goog_cc/goog_cc_gn/moz.build | 8 +++++ .../link_capacity_estimator_gn/moz.build | 8 +++++ .../goog_cc/loss_based_bwe_v1_gn/moz.build | 8 +++++ .../goog_cc/loss_based_bwe_v2_gn/moz.build | 8 +++++ .../goog_cc/probe_controller_gn/moz.build | 8 +++++ .../goog_cc/pushback_controller_gn/moz.build | 8 +++++ .../goog_cc/send_side_bwe_gn/moz.build | 8 +++++ .../rtp/control_handler_gn/moz.build | 8 +++++ .../rtp/transport_feedback_gn/moz.build | 8 +++++ .../desktop_capture_differ_sse2_gn/moz.build | 17 +++++++--- .../desktop_capture_gn/moz.build | 4 +++ .../desktop_capture/primitives_gn/moz.build | 4 +++ .../pacing/interval_budget_gn/moz.build | 8 +++++ .../modules/pacing/pacing_gn/moz.build | 8 +++++ .../remote_bitrate_estimator_gn/moz.build | 8 +++++ .../rtp_rtcp/rtp_rtcp_format_gn/moz.build | 8 +++++ .../modules/rtp_rtcp/rtp_rtcp_gn/moz.build | 8 +++++ .../rtp_rtcp/rtp_video_header_gn/moz.build | 8 +++++ .../modules/third_party/fft/fft_gn/moz.build | 8 +++++ .../third_party/g711/g711_3p_gn/moz.build | 8 +++++ .../third_party/g722/g722_3p_gn/moz.build | 8 +++++ .../modules/utility/utility_gn/moz.build | 4 +++ .../video_capture_internal_impl_gn/moz.build | 4 +++ .../video_capture_module_gn/moz.build | 8 +++++ .../chain_diff_calculator_gn/moz.build | 8 +++++ .../codecs/av1/av1_svc_config_gn/moz.build | 8 +++++ .../codecs/av1/dav1d_decoder_gn/moz.build | 8 +++++ .../av1/libaom_av1_decoder_gn/moz.build | 8 +++++ .../video_coding/encoded_frame_gn/moz.build | 8 +++++ .../moz.build | 8 +++++ .../video_coding/frame_helpers_gn/moz.build | 8 +++++ .../video_coding/nack_requester_gn/moz.build | 8 +++++ .../video_coding/packet_buffer_gn/moz.build | 8 +++++ .../svc/scalability_mode_util_gn/moz.build | 8 +++++ .../svc/scalability_structures_gn/moz.build | 8 +++++ .../scalable_video_controller_gn/moz.build | 8 +++++ .../svc/svc_rate_allocator_gn/moz.build | 8 +++++ .../timing/codec_timer_gn/moz.build | 8 +++++ .../moz.build | 8 +++++ .../timing/inter_frame_delay_gn/moz.build | 8 +++++ .../timing/jitter_estimator_gn/moz.build | 8 +++++ .../timing/rtt_filter_gn/moz.build | 8 +++++ .../timing/timing_module_gn/moz.build | 8 +++++ .../video_codec_interface_gn/moz.build | 8 +++++ .../video_coding/video_coding_gn/moz.build | 8 +++++ .../video_coding_utility_gn/moz.build | 8 +++++ .../video_coding/webrtc_h264_gn/moz.build | 8 +++++ .../webrtc_libvpx_interface_gn/moz.build | 8 +++++ .../webrtc_multiplex_gn/moz.build | 8 +++++ .../video_coding/webrtc_vp8_gn/moz.build | 8 +++++ .../webrtc_vp8_scalability_gn/moz.build | 8 +++++ .../webrtc_vp8_temporal_layers_gn/moz.build | 8 +++++ .../video_coding/webrtc_vp9_gn/moz.build | 8 +++++ .../webrtc_vp9_helpers_gn/moz.build | 8 +++++ .../video_processing_gn/moz.build | 8 +++++ .../video_processing_sse2_gn/moz.build | 32 ++++++++++++++----- .../async_resolver_interface_gn/moz.build | 8 +++++ .../rtc_base/async_socket_gn/moz.build | 8 +++++ .../audio_format_to_string_gn/moz.build | 8 +++++ .../rtc_base/bit_buffer_gn/moz.build | 8 +++++ .../rtc_base/bitstream_reader_gn/moz.build | 8 +++++ .../rtc_base/byte_buffer_gn/moz.build | 8 +++++ .../rtc_base/callback_list_gn/moz.build | 8 +++++ .../libwebrtc/rtc_base/checks_gn/moz.build | 8 +++++ .../flat_containers_internal_gn/moz.build | 8 +++++ .../copy_on_write_buffer_gn/moz.build | 8 +++++ .../rtc_base/criticalsection_gn/moz.build | 8 +++++ .../rtc_base/event_tracer_gn/moz.build | 8 +++++ .../experiments/alr_experiment_gn/moz.build | 8 +++++ .../moz.build | 8 +++++ .../moz.build | 8 +++++ .../cpu_speed_experiment_gn/moz.build | 8 +++++ .../encoder_info_settings_gn/moz.build | 8 +++++ .../field_trial_parser_gn/moz.build | 8 +++++ .../moz.build | 8 +++++ .../min_video_bitrate_experiment_gn/moz.build | 8 +++++ .../quality_rampup_experiment_gn/moz.build | 8 +++++ .../quality_scaler_settings_gn/moz.build | 8 +++++ .../quality_scaling_experiment_gn/moz.build | 8 +++++ .../rate_control_settings_gn/moz.build | 8 +++++ .../rtt_mult_experiment_gn/moz.build | 8 +++++ .../moz.build | 8 +++++ .../histogram_percentile_counter_gn/moz.build | 8 +++++ .../rtc_base/ifaddrs_android_gn/moz.build | 4 +++ .../rtc_base/ip_address_gn/moz.build | 8 +++++ .../libwebrtc/rtc_base/location_gn/moz.build | 8 +++++ .../libwebrtc/rtc_base/logging_gn/moz.build | 8 +++++ .../memory/aligned_malloc_gn/moz.build | 8 +++++ .../rtc_base/net_helpers_gn/moz.build | 8 +++++ .../rtc_base/network/sent_packet_gn/moz.build | 8 +++++ .../rtc_base/network_constants_gn/moz.build | 8 +++++ .../rtc_base/null_socket_server_gn/moz.build | 8 +++++ .../rtc_base/platform_thread_gn/moz.build | 8 +++++ .../platform_thread_types_gn/moz.build | 8 +++++ .../rtc_base/race_checker_gn/moz.build | 8 +++++ .../libwebrtc/rtc_base/random_gn/moz.build | 8 +++++ .../rtc_base/rate_limiter_gn/moz.build | 8 +++++ .../rtc_base/rate_statistics_gn/moz.build | 8 +++++ .../rtc_base/rate_tracker_gn/moz.build | 8 +++++ .../libwebrtc/rtc_base/rtc_base_gn/moz.build | 8 +++++ .../libwebrtc/rtc_base/rtc_event_gn/moz.build | 8 +++++ .../rtc_base/rtc_numerics_gn/moz.build | 8 +++++ .../rtc_base/rtc_task_queue_gn/moz.build | 8 +++++ .../rtc_base/sample_counter_gn/moz.build | 8 +++++ .../rtc_base/socket_address_gn/moz.build | 8 +++++ .../libwebrtc/rtc_base/socket_gn/moz.build | 8 +++++ .../rtc_base/stringutils_gn/moz.build | 8 +++++ .../sequence_checker_internal_gn/moz.build | 8 +++++ .../synchronization/yield_gn/moz.build | 8 +++++ .../synchronization/yield_policy_gn/moz.build | 8 +++++ .../rtc_base/system/file_wrapper_gn/moz.build | 8 +++++ .../task_utils/repeating_task_gn/moz.build | 8 +++++ .../third_party/base64/base64_gn/moz.build | 8 +++++ .../third_party/sigslot/sigslot_gn/moz.build | 8 +++++ .../libwebrtc/rtc_base/threading_gn/moz.build | 8 +++++ .../time/timestamp_extrapolator_gn/moz.build | 8 +++++ .../rtc_base/timestamp_aligner_gn/moz.build | 8 +++++ .../libwebrtc/rtc_base/timeutils_gn/moz.build | 8 +++++ .../libwebrtc/rtc_base/weak_ptr_gn/moz.build | 8 +++++ .../rtc_base/zero_memory_gn/moz.build | 8 +++++ .../denormal_disabler_gn/moz.build | 8 +++++ .../system_wrappers/field_trial_gn/moz.build | 8 +++++ .../system_wrappers/metrics_gn/moz.build | 8 +++++ .../system_wrappers_gn/moz.build | 8 +++++ .../absl/base/log_severity_gn/moz.build | 8 +++++ .../base/raw_logging_internal_gn/moz.build | 8 +++++ .../absl/base/throw_delegate_gn/moz.build | 8 +++++ .../absl/numeric/int128_gn/moz.build | 8 +++++ .../absl/strings/internal_gn/moz.build | 8 +++++ .../absl/strings/strings_gn/moz.build | 8 +++++ .../types/bad_optional_access_gn/moz.build | 8 +++++ .../types/bad_variant_access_gn/moz.build | 8 +++++ .../third_party/pffft/pffft_gn/moz.build | 8 +++++ .../third_party/rnnoise/rnn_vad_gn/moz.build | 8 +++++ .../adaptation/video_adaptation_gn/moz.build | 8 +++++ .../video/decode_synchronizer_gn/moz.build | 8 +++++ .../video/frame_cadence_adapter_gn/moz.build | 8 +++++ .../video/frame_decode_timing_gn/moz.build | 8 +++++ .../video/frame_dumping_decoder_gn/moz.build | 8 +++++ .../moz.build | 8 +++++ .../unique_timestamp_counter_gn/moz.build | 8 +++++ .../libwebrtc/video/video_gn/moz.build | 8 +++++ .../moz.build | 8 +++++ .../moz.build | 8 +++++ .../video_stream_encoder_impl_gn/moz.build | 8 +++++ 325 files changed, 2610 insertions(+), 22 deletions(-) diff --git a/third_party/libwebrtc/api/adaptation/resource_adaptation_api_gn/moz.build b/third_party/libwebrtc/api/adaptation/resource_adaptation_api_gn/moz.build index 8fbfa68..85e236f 100644 --- a/third_party/libwebrtc/api/adaptation/resource_adaptation_api_gn/moz.build +++ b/third_party/libwebrtc/api/adaptation/resource_adaptation_api_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio/aec3_config_gn/moz.build b/third_party/libwebrtc/api/audio/aec3_config_gn/moz.build index 64f9396..ac1dc8f 100644 --- a/third_party/libwebrtc/api/audio/aec3_config_gn/moz.build +++ b/third_party/libwebrtc/api/audio/aec3_config_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio/aec3_factory_gn/moz.build b/third_party/libwebrtc/api/audio/aec3_factory_gn/moz.build index d71f554..a56dc74 100644 --- a/third_party/libwebrtc/api/audio/aec3_factory_gn/moz.build +++ b/third_party/libwebrtc/api/audio/aec3_factory_gn/moz.build @@ -186,6 +186,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -202,6 +206,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio/audio_frame_api_gn/moz.build b/third_party/libwebrtc/api/audio/audio_frame_api_gn/moz.build index 5178769..ab90d0e 100644 --- a/third_party/libwebrtc/api/audio/audio_frame_api_gn/moz.build +++ b/third_party/libwebrtc/api/audio/audio_frame_api_gn/moz.build @@ -179,6 +179,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -195,6 +199,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio_codecs/L16/audio_decoder_L16_gn/moz.build b/third_party/libwebrtc/api/audio_codecs/L16/audio_decoder_L16_gn/moz.build index d025ed5..847ec71 100644 --- a/third_party/libwebrtc/api/audio_codecs/L16/audio_decoder_L16_gn/moz.build +++ b/third_party/libwebrtc/api/audio_codecs/L16/audio_decoder_L16_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio_codecs/L16/audio_encoder_L16_gn/moz.build b/third_party/libwebrtc/api/audio_codecs/L16/audio_encoder_L16_gn/moz.build index 186075c..284bee1 100644 --- a/third_party/libwebrtc/api/audio_codecs/L16/audio_encoder_L16_gn/moz.build +++ b/third_party/libwebrtc/api/audio_codecs/L16/audio_encoder_L16_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio_codecs/audio_codecs_api_gn/moz.build b/third_party/libwebrtc/api/audio_codecs/audio_codecs_api_gn/moz.build index 7c58a9f..083670f 100644 --- a/third_party/libwebrtc/api/audio_codecs/audio_codecs_api_gn/moz.build +++ b/third_party/libwebrtc/api/audio_codecs/audio_codecs_api_gn/moz.build @@ -181,6 +181,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -197,6 +201,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio_codecs/builtin_audio_decoder_factory_gn/moz.build b/third_party/libwebrtc/api/audio_codecs/builtin_audio_decoder_factory_gn/moz.build index 2358f353..68529fa 100644 --- a/third_party/libwebrtc/api/audio_codecs/builtin_audio_decoder_factory_gn/moz.build +++ b/third_party/libwebrtc/api/audio_codecs/builtin_audio_decoder_factory_gn/moz.build @@ -209,6 +209,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_USE_BUILTIN_ISAC_FIX"] = "0" DEFINES["WEBRTC_USE_BUILTIN_ISAC_FLOAT"] = "1" @@ -239,6 +243,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["WEBRTC_USE_BUILTIN_ISAC_FIX"] = "0" DEFINES["WEBRTC_USE_BUILTIN_ISAC_FLOAT"] = "1" diff --git a/third_party/libwebrtc/api/audio_codecs/builtin_audio_encoder_factory_gn/moz.build b/third_party/libwebrtc/api/audio_codecs/builtin_audio_encoder_factory_gn/moz.build index e43ff4a..78d127c 100644 --- a/third_party/libwebrtc/api/audio_codecs/builtin_audio_encoder_factory_gn/moz.build +++ b/third_party/libwebrtc/api/audio_codecs/builtin_audio_encoder_factory_gn/moz.build @@ -209,6 +209,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_USE_BUILTIN_ISAC_FIX"] = "0" DEFINES["WEBRTC_USE_BUILTIN_ISAC_FLOAT"] = "1" @@ -239,6 +243,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["WEBRTC_USE_BUILTIN_ISAC_FIX"] = "0" DEFINES["WEBRTC_USE_BUILTIN_ISAC_FLOAT"] = "1" diff --git a/third_party/libwebrtc/api/audio_codecs/g711/audio_decoder_g711_gn/moz.build b/third_party/libwebrtc/api/audio_codecs/g711/audio_decoder_g711_gn/moz.build index 5756aae..ed36a5d 100644 --- a/third_party/libwebrtc/api/audio_codecs/g711/audio_decoder_g711_gn/moz.build +++ b/third_party/libwebrtc/api/audio_codecs/g711/audio_decoder_g711_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio_codecs/g711/audio_encoder_g711_gn/moz.build b/third_party/libwebrtc/api/audio_codecs/g711/audio_encoder_g711_gn/moz.build index 3bb22b0..df9d0a4 100644 --- a/third_party/libwebrtc/api/audio_codecs/g711/audio_encoder_g711_gn/moz.build +++ b/third_party/libwebrtc/api/audio_codecs/g711/audio_encoder_g711_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio_codecs/g722/audio_decoder_g722_gn/moz.build b/third_party/libwebrtc/api/audio_codecs/g722/audio_decoder_g722_gn/moz.build index a9afcbe..11734d7 100644 --- a/third_party/libwebrtc/api/audio_codecs/g722/audio_decoder_g722_gn/moz.build +++ b/third_party/libwebrtc/api/audio_codecs/g722/audio_decoder_g722_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_gn/moz.build b/third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_gn/moz.build index 2b256f9..8d34414 100644 --- a/third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_gn/moz.build +++ b/third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio_codecs/ilbc/audio_decoder_ilbc_gn/moz.build b/third_party/libwebrtc/api/audio_codecs/ilbc/audio_decoder_ilbc_gn/moz.build index b7b4646..9c9dc1f 100644 --- a/third_party/libwebrtc/api/audio_codecs/ilbc/audio_decoder_ilbc_gn/moz.build +++ b/third_party/libwebrtc/api/audio_codecs/ilbc/audio_decoder_ilbc_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio_codecs/ilbc/audio_encoder_ilbc_gn/moz.build b/third_party/libwebrtc/api/audio_codecs/ilbc/audio_encoder_ilbc_gn/moz.build index dc62483..b05f514 100644 --- a/third_party/libwebrtc/api/audio_codecs/ilbc/audio_encoder_ilbc_gn/moz.build +++ b/third_party/libwebrtc/api/audio_codecs/ilbc/audio_encoder_ilbc_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn/moz.build b/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn/moz.build index 79448f7..e3ef68e 100644 --- a/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn/moz.build +++ b/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn/moz.build @@ -169,6 +169,10 @@ if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -180,6 +184,10 @@ if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn/moz.build b/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn/moz.build index 062e40e..00eb124 100644 --- a/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn/moz.build +++ b/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn/moz.build @@ -169,6 +169,10 @@ if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -180,6 +184,10 @@ if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_multiopus_gn/moz.build b/third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_multiopus_gn/moz.build index a47f2d8..2bc9881 100644 --- a/third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_multiopus_gn/moz.build +++ b/third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_multiopus_gn/moz.build @@ -179,6 +179,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -195,6 +199,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_gn/moz.build b/third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_gn/moz.build index d60041f..bdc96c2a 100644 --- a/third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_gn/moz.build +++ b/third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_gn/moz.build @@ -186,6 +186,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -202,6 +206,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_multiopus_gn/moz.build b/third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_multiopus_gn/moz.build index aef6a67..6bae0209 100644 --- a/third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_multiopus_gn/moz.build +++ b/third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_multiopus_gn/moz.build @@ -179,6 +179,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -195,6 +199,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_config_gn/moz.build b/third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_config_gn/moz.build index 3d874ea..7c9c7f4 100644 --- a/third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_config_gn/moz.build +++ b/third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_config_gn/moz.build @@ -175,6 +175,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -191,6 +195,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_gn/moz.build b/third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_gn/moz.build index 98bce2f..59e7a5a 100644 --- a/third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_gn/moz.build +++ b/third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_gn/moz.build @@ -186,6 +186,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -202,6 +206,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/audio_options_api_gn/moz.build b/third_party/libwebrtc/api/audio_options_api_gn/moz.build index b11d9b3..af73a69 100644 --- a/third_party/libwebrtc/api/audio_options_api_gn/moz.build +++ b/third_party/libwebrtc/api/audio_options_api_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/crypto/options_gn/moz.build b/third_party/libwebrtc/api/crypto/options_gn/moz.build index 91d676f..af911bf 100644 --- a/third_party/libwebrtc/api/crypto/options_gn/moz.build +++ b/third_party/libwebrtc/api/crypto/options_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/media_stream_interface_gn/moz.build b/third_party/libwebrtc/api/media_stream_interface_gn/moz.build index 841bc83..5bf5aa2 100644 --- a/third_party/libwebrtc/api/media_stream_interface_gn/moz.build +++ b/third_party/libwebrtc/api/media_stream_interface_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/neteq/default_neteq_controller_factory_gn/moz.build b/third_party/libwebrtc/api/neteq/default_neteq_controller_factory_gn/moz.build index e04fd24..c55e637 100644 --- a/third_party/libwebrtc/api/neteq/default_neteq_controller_factory_gn/moz.build +++ b/third_party/libwebrtc/api/neteq/default_neteq_controller_factory_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/neteq/neteq_api_gn/moz.build b/third_party/libwebrtc/api/neteq/neteq_api_gn/moz.build index a12067d..eb03b19 100644 --- a/third_party/libwebrtc/api/neteq/neteq_api_gn/moz.build +++ b/third_party/libwebrtc/api/neteq/neteq_api_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/neteq/tick_timer_gn/moz.build b/third_party/libwebrtc/api/neteq/tick_timer_gn/moz.build index a96170c..2baab46 100644 --- a/third_party/libwebrtc/api/neteq/tick_timer_gn/moz.build +++ b/third_party/libwebrtc/api/neteq/tick_timer_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/numerics/numerics_gn/moz.build b/third_party/libwebrtc/api/numerics/numerics_gn/moz.build index 44d6d1c..3dc71e0 100644 --- a/third_party/libwebrtc/api/numerics/numerics_gn/moz.build +++ b/third_party/libwebrtc/api/numerics/numerics_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/rtc_error_gn/moz.build b/third_party/libwebrtc/api/rtc_error_gn/moz.build index a8296cb..16cbf5a 100644 --- a/third_party/libwebrtc/api/rtc_error_gn/moz.build +++ b/third_party/libwebrtc/api/rtc_error_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/rtc_event_log/rtc_event_log_gn/moz.build b/third_party/libwebrtc/api/rtc_event_log/rtc_event_log_gn/moz.build index 2b0b008..b9e7b3a 100644 --- a/third_party/libwebrtc/api/rtc_event_log/rtc_event_log_gn/moz.build +++ b/third_party/libwebrtc/api/rtc_event_log/rtc_event_log_gn/moz.build @@ -179,6 +179,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -195,6 +199,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/rtp_headers_gn/moz.build b/third_party/libwebrtc/api/rtp_headers_gn/moz.build index 1615966..ef07456 100644 --- a/third_party/libwebrtc/api/rtp_headers_gn/moz.build +++ b/third_party/libwebrtc/api/rtp_headers_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/rtp_packet_info_gn/moz.build b/third_party/libwebrtc/api/rtp_packet_info_gn/moz.build index a8a4516..a8bcf57 100644 --- a/third_party/libwebrtc/api/rtp_packet_info_gn/moz.build +++ b/third_party/libwebrtc/api/rtp_packet_info_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/rtp_parameters_gn/moz.build b/third_party/libwebrtc/api/rtp_parameters_gn/moz.build index a9ad014..a573ed2 100644 --- a/third_party/libwebrtc/api/rtp_parameters_gn/moz.build +++ b/third_party/libwebrtc/api/rtp_parameters_gn/moz.build @@ -175,6 +175,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -191,6 +195,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/task_queue/pending_task_safety_flag_gn/moz.build b/third_party/libwebrtc/api/task_queue/pending_task_safety_flag_gn/moz.build index c3887b4..46e4e88 100644 --- a/third_party/libwebrtc/api/task_queue/pending_task_safety_flag_gn/moz.build +++ b/third_party/libwebrtc/api/task_queue/pending_task_safety_flag_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build b/third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build index caf50afe..ef0e22b 100644 --- a/third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build +++ b/third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build b/third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build index 9ebe979..83d17d5 100644 --- a/third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build +++ b/third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build @@ -170,6 +170,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -186,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/transport/field_trial_based_config_gn/moz.build b/third_party/libwebrtc/api/transport/field_trial_based_config_gn/moz.build index 700b5a8..e54dc90 100644 --- a/third_party/libwebrtc/api/transport/field_trial_based_config_gn/moz.build +++ b/third_party/libwebrtc/api/transport/field_trial_based_config_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/transport/goog_cc_gn/moz.build b/third_party/libwebrtc/api/transport/goog_cc_gn/moz.build index 15ad847..5e2691f 100644 --- a/third_party/libwebrtc/api/transport/goog_cc_gn/moz.build +++ b/third_party/libwebrtc/api/transport/goog_cc_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/transport/network_control_gn/moz.build b/third_party/libwebrtc/api/transport/network_control_gn/moz.build index ba07009..30a2320 100644 --- a/third_party/libwebrtc/api/transport/network_control_gn/moz.build +++ b/third_party/libwebrtc/api/transport/network_control_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/transport/rtp/dependency_descriptor_gn/moz.build b/third_party/libwebrtc/api/transport/rtp/dependency_descriptor_gn/moz.build index 9d92835..bb9d911 100644 --- a/third_party/libwebrtc/api/transport/rtp/dependency_descriptor_gn/moz.build +++ b/third_party/libwebrtc/api/transport/rtp/dependency_descriptor_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/transport_api_gn/moz.build b/third_party/libwebrtc/api/transport_api_gn/moz.build index db1ced3..9956aad 100644 --- a/third_party/libwebrtc/api/transport_api_gn/moz.build +++ b/third_party/libwebrtc/api/transport_api_gn/moz.build @@ -170,6 +170,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -186,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/units/data_rate_gn/moz.build b/third_party/libwebrtc/api/units/data_rate_gn/moz.build index e4b61f8..00c3673 100644 --- a/third_party/libwebrtc/api/units/data_rate_gn/moz.build +++ b/third_party/libwebrtc/api/units/data_rate_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/units/data_size_gn/moz.build b/third_party/libwebrtc/api/units/data_size_gn/moz.build index c6effb8..68a9ac7 100644 --- a/third_party/libwebrtc/api/units/data_size_gn/moz.build +++ b/third_party/libwebrtc/api/units/data_size_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/units/frequency_gn/moz.build b/third_party/libwebrtc/api/units/frequency_gn/moz.build index 788398d..bad1b4f 100644 --- a/third_party/libwebrtc/api/units/frequency_gn/moz.build +++ b/third_party/libwebrtc/api/units/frequency_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/units/time_delta_gn/moz.build b/third_party/libwebrtc/api/units/time_delta_gn/moz.build index c487779..7e965f2 100644 --- a/third_party/libwebrtc/api/units/time_delta_gn/moz.build +++ b/third_party/libwebrtc/api/units/time_delta_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/units/timestamp_gn/moz.build b/third_party/libwebrtc/api/units/timestamp_gn/moz.build index ece2614..997f99a 100644 --- a/third_party/libwebrtc/api/units/timestamp_gn/moz.build +++ b/third_party/libwebrtc/api/units/timestamp_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/video/builtin_video_bitrate_allocator_factory_gn/moz.build b/third_party/libwebrtc/api/video/builtin_video_bitrate_allocator_factory_gn/moz.build index d130ac6..77f149a 100644 --- a/third_party/libwebrtc/api/video/builtin_video_bitrate_allocator_factory_gn/moz.build +++ b/third_party/libwebrtc/api/video/builtin_video_bitrate_allocator_factory_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/video/encoded_frame_gn/moz.build b/third_party/libwebrtc/api/video/encoded_frame_gn/moz.build index 90f9758..bfede4e 100644 --- a/third_party/libwebrtc/api/video/encoded_frame_gn/moz.build +++ b/third_party/libwebrtc/api/video/encoded_frame_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/video/encoded_image_gn/moz.build b/third_party/libwebrtc/api/video/encoded_image_gn/moz.build index 05a9a40..095b5c3 100644 --- a/third_party/libwebrtc/api/video/encoded_image_gn/moz.build +++ b/third_party/libwebrtc/api/video/encoded_image_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/video/frame_buffer_gn/moz.build b/third_party/libwebrtc/api/video/frame_buffer_gn/moz.build index de9fae8..c419db3 100644 --- a/third_party/libwebrtc/api/video/frame_buffer_gn/moz.build +++ b/third_party/libwebrtc/api/video/frame_buffer_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/video/video_adaptation_gn/moz.build b/third_party/libwebrtc/api/video/video_adaptation_gn/moz.build index 803834e..e827c1d 100644 --- a/third_party/libwebrtc/api/video/video_adaptation_gn/moz.build +++ b/third_party/libwebrtc/api/video/video_adaptation_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/video/video_bitrate_allocation_gn/moz.build b/third_party/libwebrtc/api/video/video_bitrate_allocation_gn/moz.build index e6dad36..86897e1 100644 --- a/third_party/libwebrtc/api/video/video_bitrate_allocation_gn/moz.build +++ b/third_party/libwebrtc/api/video/video_bitrate_allocation_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/video/video_bitrate_allocator_gn/moz.build b/third_party/libwebrtc/api/video/video_bitrate_allocator_gn/moz.build index f82e342..0a66a4f 100644 --- a/third_party/libwebrtc/api/video/video_bitrate_allocator_gn/moz.build +++ b/third_party/libwebrtc/api/video/video_bitrate_allocator_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/video/video_frame_gn/moz.build b/third_party/libwebrtc/api/video/video_frame_gn/moz.build index 0eef21b..a39d88a 100644 --- a/third_party/libwebrtc/api/video/video_frame_gn/moz.build +++ b/third_party/libwebrtc/api/video/video_frame_gn/moz.build @@ -189,6 +189,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -205,6 +209,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build b/third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build index 9c539a9..798e068 100644 --- a/third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build +++ b/third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build @@ -193,6 +193,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -209,6 +213,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/video/video_frame_metadata_gn/moz.build b/third_party/libwebrtc/api/video/video_frame_metadata_gn/moz.build index 995eb12..5c7a506 100644 --- a/third_party/libwebrtc/api/video/video_frame_metadata_gn/moz.build +++ b/third_party/libwebrtc/api/video/video_frame_metadata_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/video/video_rtp_headers_gn/moz.build b/third_party/libwebrtc/api/video/video_rtp_headers_gn/moz.build index b51f065..ce782727 100644 --- a/third_party/libwebrtc/api/video/video_rtp_headers_gn/moz.build +++ b/third_party/libwebrtc/api/video/video_rtp_headers_gn/moz.build @@ -181,6 +181,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -197,6 +201,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/video_codecs/builtin_video_decoder_factory_gn/moz.build b/third_party/libwebrtc/api/video_codecs/builtin_video_decoder_factory_gn/moz.build index 080b959..56ec90a 100644 --- a/third_party/libwebrtc/api/video_codecs/builtin_video_decoder_factory_gn/moz.build +++ b/third_party/libwebrtc/api/video_codecs/builtin_video_decoder_factory_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/video_codecs/builtin_video_encoder_factory_gn/moz.build b/third_party/libwebrtc/api/video_codecs/builtin_video_encoder_factory_gn/moz.build index 9eaa39a..44136024 100644 --- a/third_party/libwebrtc/api/video_codecs/builtin_video_encoder_factory_gn/moz.build +++ b/third_party/libwebrtc/api/video_codecs/builtin_video_encoder_factory_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/video_codecs/rtc_software_fallback_wrappers_gn/moz.build b/third_party/libwebrtc/api/video_codecs/rtc_software_fallback_wrappers_gn/moz.build index 005c722..9355c66 100644 --- a/third_party/libwebrtc/api/video_codecs/rtc_software_fallback_wrappers_gn/moz.build +++ b/third_party/libwebrtc/api/video_codecs/rtc_software_fallback_wrappers_gn/moz.build @@ -188,6 +188,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -204,6 +208,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/video_codecs/scalability_mode_gn/moz.build b/third_party/libwebrtc/api/video_codecs/scalability_mode_gn/moz.build index 3a93583..80d3b263 100644 --- a/third_party/libwebrtc/api/video_codecs/scalability_mode_gn/moz.build +++ b/third_party/libwebrtc/api/video_codecs/scalability_mode_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/video_codecs/video_codecs_api_gn/moz.build b/third_party/libwebrtc/api/video_codecs/video_codecs_api_gn/moz.build index 3a056cb..73c79ce 100644 --- a/third_party/libwebrtc/api/video_codecs/video_codecs_api_gn/moz.build +++ b/third_party/libwebrtc/api/video_codecs/video_codecs_api_gn/moz.build @@ -189,6 +189,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -205,6 +209,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/api/video_codecs/vp8_temporal_layers_factory_gn/moz.build b/third_party/libwebrtc/api/video_codecs/vp8_temporal_layers_factory_gn/moz.build index 7be7d67..abac637 100644 --- a/third_party/libwebrtc/api/video_codecs/vp8_temporal_layers_factory_gn/moz.build +++ b/third_party/libwebrtc/api/video_codecs/vp8_temporal_layers_factory_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/audio/audio_gn/moz.build b/third_party/libwebrtc/audio/audio_gn/moz.build index 1f619c4c..da98262 100644 --- a/third_party/libwebrtc/audio/audio_gn/moz.build +++ b/third_party/libwebrtc/audio/audio_gn/moz.build @@ -199,6 +199,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -215,6 +219,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build b/third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build index ef559b9..7f34adf 100644 --- a/third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build +++ b/third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/build/config/compiler/BUILD.gn b/third_party/libwebrtc/build/config/compiler/BUILD.gn index b4a7a5e..e68feb7 100644 --- a/third_party/libwebrtc/build/config/compiler/BUILD.gn +++ b/third_party/libwebrtc/build/config/compiler/BUILD.gn @@ -882,7 +882,6 @@ config("compiler_cpu_abi") { cflags += [ "-m64", "-march=$x64_arch", - "-msse3", ] ldflags += [ "-m64" ] } else if (target_cpu == "x86") { @@ -891,7 +890,7 @@ config("compiler_cpu_abi") { if (!is_nacl) { cflags += [ "-mfpmath=sse", - "-msse3", + "-msse2", ] } } else if (target_cpu == "arm") { diff --git a/third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build b/third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build index 3c1d8cc..a71e1aa 100644 --- a/third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build +++ b/third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build @@ -196,6 +196,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -212,6 +216,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/call/bitrate_allocator_gn/moz.build b/third_party/libwebrtc/call/bitrate_allocator_gn/moz.build index 0e14a5d..9bde1fe 100644 --- a/third_party/libwebrtc/call/bitrate_allocator_gn/moz.build +++ b/third_party/libwebrtc/call/bitrate_allocator_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/call/bitrate_configurator_gn/moz.build b/third_party/libwebrtc/call/bitrate_configurator_gn/moz.build index 4e17c8a..a7f6b1c 100644 --- a/third_party/libwebrtc/call/bitrate_configurator_gn/moz.build +++ b/third_party/libwebrtc/call/bitrate_configurator_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/call/call_gn/moz.build b/third_party/libwebrtc/call/call_gn/moz.build index 8a43be5..a724cb7 100644 --- a/third_party/libwebrtc/call/call_gn/moz.build +++ b/third_party/libwebrtc/call/call_gn/moz.build @@ -191,6 +191,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -207,6 +211,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/call/call_interfaces_gn/moz.build b/third_party/libwebrtc/call/call_interfaces_gn/moz.build index fa81c96..d89da5b 100644 --- a/third_party/libwebrtc/call/call_interfaces_gn/moz.build +++ b/third_party/libwebrtc/call/call_interfaces_gn/moz.build @@ -193,6 +193,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -209,6 +213,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/call/fake_network_gn/moz.build b/third_party/libwebrtc/call/fake_network_gn/moz.build index 6641aaf..e3aff75 100644 --- a/third_party/libwebrtc/call/fake_network_gn/moz.build +++ b/third_party/libwebrtc/call/fake_network_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/call/rtp_interfaces_gn/moz.build b/third_party/libwebrtc/call/rtp_interfaces_gn/moz.build index 9a45042..10fd829 100644 --- a/third_party/libwebrtc/call/rtp_interfaces_gn/moz.build +++ b/third_party/libwebrtc/call/rtp_interfaces_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/call/rtp_receiver_gn/moz.build b/third_party/libwebrtc/call/rtp_receiver_gn/moz.build index f245b8f..8738af5 100644 --- a/third_party/libwebrtc/call/rtp_receiver_gn/moz.build +++ b/third_party/libwebrtc/call/rtp_receiver_gn/moz.build @@ -189,6 +189,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -205,6 +209,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/call/rtp_sender_gn/moz.build b/third_party/libwebrtc/call/rtp_sender_gn/moz.build index 56e1d83..1f688d1 100644 --- a/third_party/libwebrtc/call/rtp_sender_gn/moz.build +++ b/third_party/libwebrtc/call/rtp_sender_gn/moz.build @@ -189,6 +189,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -205,6 +209,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/call/simulated_network_gn/moz.build b/third_party/libwebrtc/call/simulated_network_gn/moz.build index dc88d9e..8437b5b 100644 --- a/third_party/libwebrtc/call/simulated_network_gn/moz.build +++ b/third_party/libwebrtc/call/simulated_network_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/call/version_gn/moz.build b/third_party/libwebrtc/call/version_gn/moz.build index 6f82bc3..c96fff2 100644 --- a/third_party/libwebrtc/call/version_gn/moz.build +++ b/third_party/libwebrtc/call/version_gn/moz.build @@ -170,6 +170,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -186,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/call/video_stream_api_gn/moz.build b/third_party/libwebrtc/call/video_stream_api_gn/moz.build index ee981f9..b8a7e06 100644 --- a/third_party/libwebrtc/call/video_stream_api_gn/moz.build +++ b/third_party/libwebrtc/call/video_stream_api_gn/moz.build @@ -188,6 +188,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -204,6 +208,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build b/third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build index df7f52b..753b23f 100644 --- a/third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build +++ b/third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build @@ -167,8 +167,18 @@ if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] +if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + + CXXFLAGS += [ + "-msse2" + ] + Library("common_audio_avx2_gn") diff --git a/third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build b/third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build index 625fcd1..1b27f68 100644 --- a/third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build +++ b/third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build @@ -252,6 +252,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -285,6 +289,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build b/third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build index 241c878..36e92061 100644 --- a/third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build +++ b/third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/common_audio/common_audio_gn/moz.build b/third_party/libwebrtc/common_audio/common_audio_gn/moz.build index d81fd8f0..64d07db 100644 --- a/third_party/libwebrtc/common_audio/common_audio_gn/moz.build +++ b/third_party/libwebrtc/common_audio/common_audio_gn/moz.build @@ -198,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -214,6 +218,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build b/third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build index 93daf37..7142192 100644 --- a/third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build +++ b/third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build @@ -46,10 +46,6 @@ if CONFIG["MOZ_DEBUG"] == "1": if CONFIG["OS_TARGET"] == "Android": - CXXFLAGS += [ - "-msse2" - ] - DEFINES["ANDROID"] = True DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1" DEFINES["HAVE_SYS_UIO_H"] = True @@ -80,10 +76,6 @@ if CONFIG["OS_TARGET"] == "Darwin": if CONFIG["OS_TARGET"] == "Linux": - CXXFLAGS += [ - "-msse2" - ] - DEFINES["USE_AURA"] = "1" DEFINES["USE_GLIB"] = "1" DEFINES["USE_NSS_CERTS"] = "1" @@ -178,8 +170,32 @@ if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2", + "-msse2" + ] + OS_LIBS += [ "android_support" ] +if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Android": + + CXXFLAGS += [ + "-msse2" + ] + +if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + + CXXFLAGS += [ + "-msse2", + "-msse2" + ] + +if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": + + CXXFLAGS += [ + "-msse2" + ] + Library("common_audio_sse2_gn") diff --git a/third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build b/third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build index 47f99db..1dff4b4 100644 --- a/third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build +++ b/third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build @@ -186,6 +186,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -202,6 +206,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128_gn/moz.build b/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128_gn/moz.build index 142887b..90b3230 100644 --- a/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128_gn/moz.build +++ b/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128_gn/moz.build @@ -206,6 +206,7 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": CXXFLAGS += [ + "-msse2", "-msse2" ] @@ -238,6 +239,7 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": CXXFLAGS += [ + "-msse2", "-msse2" ] diff --git a/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_256_gn/moz.build b/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_256_gn/moz.build index b007a1e..f58d8e5 100644 --- a/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_256_gn/moz.build +++ b/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_256_gn/moz.build @@ -170,6 +170,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -186,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_gn/moz.build b/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_gn/moz.build index ec6e2ec..a35f2de 100644 --- a/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_gn/moz.build +++ b/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_gn/moz.build @@ -190,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -220,6 +224,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/common_video/common_video_gn/moz.build b/third_party/libwebrtc/common_video/common_video_gn/moz.build index 369cdc3..9e39116 100644 --- a/third_party/libwebrtc/common_video/common_video_gn/moz.build +++ b/third_party/libwebrtc/common_video/common_video_gn/moz.build @@ -201,6 +201,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -217,6 +221,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/common_video/generic_frame_descriptor/generic_frame_descriptor_gn/moz.build b/third_party/libwebrtc/common_video/generic_frame_descriptor/generic_frame_descriptor_gn/moz.build index 651826f..5827e1f 100644 --- a/third_party/libwebrtc/common_video/generic_frame_descriptor/generic_frame_descriptor_gn/moz.build +++ b/third_party/libwebrtc/common_video/generic_frame_descriptor/generic_frame_descriptor_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build b/third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build index fc4a82d..f7ee1f3 100644 --- a/third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build +++ b/third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build @@ -181,6 +181,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -197,6 +201,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build b/third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build index 49e8f52..a1f3060 100644 --- a/third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build +++ b/third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build @@ -183,6 +183,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -199,6 +203,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/logging/rtc_event_field_gn/moz.build b/third_party/libwebrtc/logging/rtc_event_field_gn/moz.build index 0d64638..5e3ac8d 100644 --- a/third_party/libwebrtc/logging/rtc_event_field_gn/moz.build +++ b/third_party/libwebrtc/logging/rtc_event_field_gn/moz.build @@ -181,6 +181,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -197,6 +201,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/logging/rtc_event_number_encodings_gn/moz.build b/third_party/libwebrtc/logging/rtc_event_number_encodings_gn/moz.build index d6d86cd..9fbb704 100644 --- a/third_party/libwebrtc/logging/rtc_event_number_encodings_gn/moz.build +++ b/third_party/libwebrtc/logging/rtc_event_number_encodings_gn/moz.build @@ -176,6 +176,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -192,6 +196,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build b/third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build index 985b84c..ab80a10 100644 --- a/third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build +++ b/third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build b/third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build index cc048c7..17c24f5 100644 --- a/third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build +++ b/third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build @@ -190,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -206,6 +210,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/logging/rtc_event_video_gn/moz.build b/third_party/libwebrtc/logging/rtc_event_video_gn/moz.build index b1758b7..fad62b6 100644 --- a/third_party/libwebrtc/logging/rtc_event_video_gn/moz.build +++ b/third_party/libwebrtc/logging/rtc_event_video_gn/moz.build @@ -179,6 +179,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -195,6 +199,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build b/third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build index 0273e15..6ec9346 100644 --- a/third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build +++ b/third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/media/rtc_encoder_simulcast_proxy_gn/moz.build b/third_party/libwebrtc/media/rtc_encoder_simulcast_proxy_gn/moz.build index 9fd4c74..56988c6 100644 --- a/third_party/libwebrtc/media/rtc_encoder_simulcast_proxy_gn/moz.build +++ b/third_party/libwebrtc/media/rtc_encoder_simulcast_proxy_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build b/third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build index 09893f4..8195c95 100644 --- a/third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build +++ b/third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build @@ -189,6 +189,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -205,6 +209,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/media/rtc_media_base_gn/moz.build b/third_party/libwebrtc/media/rtc_media_base_gn/moz.build index b9b963a..6e03152 100644 --- a/third_party/libwebrtc/media/rtc_media_base_gn/moz.build +++ b/third_party/libwebrtc/media/rtc_media_base_gn/moz.build @@ -192,6 +192,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -208,6 +212,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build b/third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build index 1bc62c2..95e8042 100644 --- a/third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build +++ b/third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/async_audio_processing/async_audio_processing_gn/moz.build b/third_party/libwebrtc/modules/async_audio_processing/async_audio_processing_gn/moz.build index 24f8656..da3a8ff 100644 --- a/third_party/libwebrtc/modules/async_audio_processing/async_audio_processing_gn/moz.build +++ b/third_party/libwebrtc/modules/async_audio_processing/async_audio_processing_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build index 3d193a4..5413160 100644 --- a/third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build @@ -189,6 +189,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -205,6 +209,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/audio_coding_opus_common_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/audio_coding_opus_common_gn/moz.build index 132dbaa..2d68003 100644 --- a/third_party/libwebrtc/modules/audio_coding/audio_coding_opus_common_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/audio_coding_opus_common_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/audio_encoder_cng_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/audio_encoder_cng_gn/moz.build index 725d37c..e6544c1 100644 --- a/third_party/libwebrtc/modules/audio_coding/audio_encoder_cng_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/audio_encoder_cng_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_config_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_config_gn/moz.build index 7ef11d4..1cc2a1a 100644 --- a/third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_config_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_config_gn/moz.build @@ -170,6 +170,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -186,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build index b65fc49..5a88356 100644 --- a/third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build @@ -195,6 +195,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -211,6 +215,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/default_neteq_factory_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/default_neteq_factory_gn/moz.build index 1576435..2fef324 100644 --- a/third_party/libwebrtc/modules/audio_coding/default_neteq_factory_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/default_neteq_factory_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build index ea97f94..f12c0cf 100644 --- a/third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build @@ -170,6 +170,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -186,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build index 80fb980..7e07287 100644 --- a/third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build @@ -179,6 +179,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -195,6 +199,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build index 87571de..4fa22a8 100644 --- a/third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build @@ -170,6 +170,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -186,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build index be80bff..3a32026 100644 --- a/third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build @@ -179,6 +179,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -195,6 +199,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/ilbc_c_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/ilbc_c_gn/moz.build index 771a415..b741b15 100644 --- a/third_party/libwebrtc/modules/audio_coding/ilbc_c_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/ilbc_c_gn/moz.build @@ -253,6 +253,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -269,6 +273,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/ilbc_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/ilbc_gn/moz.build index a652760..cbe6bc8 100644 --- a/third_party/libwebrtc/modules/audio_coding/ilbc_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/ilbc_gn/moz.build @@ -186,6 +186,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -202,6 +206,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/isac_c_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/isac_c_gn/moz.build index 09da7ad..72b82be 100644 --- a/third_party/libwebrtc/modules/audio_coding/isac_c_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/isac_c_gn/moz.build @@ -191,6 +191,10 @@ if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -202,6 +206,10 @@ if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/isac_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/isac_gn/moz.build index 5e75a5c..d0b639c 100644 --- a/third_party/libwebrtc/modules/audio_coding/isac_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/isac_gn/moz.build @@ -170,6 +170,10 @@ if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -181,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/isac_vad_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/isac_vad_gn/moz.build index 2769ce2..b041262 100644 --- a/third_party/libwebrtc/modules/audio_coding/isac_vad_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/isac_vad_gn/moz.build @@ -173,6 +173,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -189,6 +193,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/legacy_encoded_audio_frame_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/legacy_encoded_audio_frame_gn/moz.build index 81572e4..52330f7 100644 --- a/third_party/libwebrtc/modules/audio_coding/legacy_encoded_audio_frame_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/legacy_encoded_audio_frame_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build index 032a190..882516cc 100644 --- a/third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build @@ -220,6 +220,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -236,6 +240,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/pcm16b_c_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/pcm16b_c_gn/moz.build index 4828d70..cec76eb 100644 --- a/third_party/libwebrtc/modules/audio_coding/pcm16b_c_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/pcm16b_c_gn/moz.build @@ -170,6 +170,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -186,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/pcm16b_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/pcm16b_gn/moz.build index be33178..13fd71d 100644 --- a/third_party/libwebrtc/modules/audio_coding/pcm16b_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/pcm16b_gn/moz.build @@ -180,6 +180,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -196,6 +200,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/red_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/red_gn/moz.build index 8b44f5f..2dce89a8 100644 --- a/third_party/libwebrtc/modules/audio_coding/red_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/red_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/webrtc_cng_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/webrtc_cng_gn/moz.build index 8ff29da..f3c78d9 100644 --- a/third_party/libwebrtc/modules/audio_coding/webrtc_cng_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/webrtc_cng_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/webrtc_multiopus_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/webrtc_multiopus_gn/moz.build index ba2537b..04c2b235 100644 --- a/third_party/libwebrtc/modules/audio_coding/webrtc_multiopus_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/webrtc_multiopus_gn/moz.build @@ -195,6 +195,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_CODEC_ISAC"] = True OS_LIBS += [ @@ -218,6 +222,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_CODEC_ISAC"] = True DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/webrtc_opus_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/webrtc_opus_gn/moz.build index 2142946..6be0387 100644 --- a/third_party/libwebrtc/modules/audio_coding/webrtc_opus_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/webrtc_opus_gn/moz.build @@ -202,6 +202,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_CODEC_ISAC"] = True OS_LIBS += [ @@ -225,6 +229,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_CODEC_ISAC"] = True DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_coding/webrtc_opus_wrapper_gn/moz.build b/third_party/libwebrtc/modules/audio_coding/webrtc_opus_wrapper_gn/moz.build index 5a26300..0300509 100644 --- a/third_party/libwebrtc/modules/audio_coding/webrtc_opus_wrapper_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_coding/webrtc_opus_wrapper_gn/moz.build @@ -194,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_CODEC_ISAC"] = True OS_LIBS += [ @@ -217,6 +221,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_CODEC_ISAC"] = True DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_device/audio_device_buffer_gn/moz.build b/third_party/libwebrtc/modules/audio_device/audio_device_buffer_gn/moz.build index 30a6f5a..442ae43 100644 --- a/third_party/libwebrtc/modules/audio_device/audio_device_buffer_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_device/audio_device_buffer_gn/moz.build @@ -186,6 +186,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -202,6 +206,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_device/audio_device_generic_gn/moz.build b/third_party/libwebrtc/modules/audio_device/audio_device_generic_gn/moz.build index cb0ddf1..e844bb5 100644 --- a/third_party/libwebrtc/modules/audio_device/audio_device_generic_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_device/audio_device_generic_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_device/audio_device_impl_gn/moz.build b/third_party/libwebrtc/modules/audio_device/audio_device_impl_gn/moz.build index 0d8c6863..f5d912f 100644 --- a/third_party/libwebrtc/modules/audio_device/audio_device_impl_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_device/audio_device_impl_gn/moz.build @@ -190,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -206,6 +210,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_mixer/audio_frame_manipulator_gn/moz.build b/third_party/libwebrtc/modules/audio_mixer/audio_frame_manipulator_gn/moz.build index 79dbb7b..b49bf28 100644 --- a/third_party/libwebrtc/modules/audio_mixer/audio_frame_manipulator_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_mixer/audio_frame_manipulator_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_mixer/audio_mixer_impl_gn/moz.build b/third_party/libwebrtc/modules/audio_mixer/audio_mixer_impl_gn/moz.build index 1e88321..670d079 100644 --- a/third_party/libwebrtc/modules/audio_mixer/audio_mixer_impl_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_mixer/audio_mixer_impl_gn/moz.build @@ -188,6 +188,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -204,6 +208,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn/moz.build index 23ed464..8550029 100644 --- a/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn/moz.build @@ -171,8 +171,18 @@ if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] +if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + + CXXFLAGS += [ + "-msse2" + ] + Library("aec3_avx2_gn") diff --git a/third_party/libwebrtc/modules/audio_processing/aec3/aec3_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/aec3/aec3_gn/moz.build index 571aae8..84ba5f9 100644 --- a/third_party/libwebrtc/modules/audio_processing/aec3/aec3_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/aec3/aec3_gn/moz.build @@ -242,6 +242,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -258,6 +262,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/aec_dump/null_aec_dump_factory_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/aec_dump/null_aec_dump_factory_gn/moz.build index ff1c21af..4516b00 100644 --- a/third_party/libwebrtc/modules/audio_processing/aec_dump/null_aec_dump_factory_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/aec_dump/null_aec_dump_factory_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/aec_dump_interface_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/aec_dump_interface_gn/moz.build index 96883bf..8642ac2 100644 --- a/third_party/libwebrtc/modules/audio_processing/aec_dump_interface_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/aec_dump_interface_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_gn/moz.build index aec0342..6684249 100644 --- a/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_gn/moz.build @@ -195,6 +195,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -211,6 +215,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc/agc_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc/agc_gn/moz.build index f64fb94..7da897c 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc/agc_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc/agc_gn/moz.build @@ -186,6 +186,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -202,6 +206,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc/analog_gain_stats_reporter_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc/analog_gain_stats_reporter_gn/moz.build index 63f69dc..11c61d2 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc/analog_gain_stats_reporter_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc/analog_gain_stats_reporter_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc/clipping_predictor_evaluator_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc/clipping_predictor_evaluator_gn/moz.build index f5acc34..f441f79 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc/clipping_predictor_evaluator_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc/clipping_predictor_evaluator_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc/clipping_predictor_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc/clipping_predictor_gn/moz.build index fbbf08b..e95915c 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc/clipping_predictor_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc/clipping_predictor_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc/clipping_predictor_level_buffer_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc/clipping_predictor_level_buffer_gn/moz.build index e99a2d6..228d3b3 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc/clipping_predictor_level_buffer_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc/clipping_predictor_level_buffer_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc/legacy_agc_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc/legacy_agc_gn/moz.build index a9b1ddd0..3ca8fb0 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc/legacy_agc_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc/legacy_agc_gn/moz.build @@ -186,6 +186,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -202,6 +206,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc/level_estimation_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc/level_estimation_gn/moz.build index c4bdd7c..eba8064 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc/level_estimation_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc/level_estimation_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc2/adaptive_digital_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc2/adaptive_digital_gn/moz.build index 26182ba..b9efc5b 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc2/adaptive_digital_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc2/adaptive_digital_gn/moz.build @@ -190,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -206,6 +210,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc2/biquad_filter_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc2/biquad_filter_gn/moz.build index ec66966..2cc7bca 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc2/biquad_filter_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc2/biquad_filter_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc2/cpu_features_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc2/cpu_features_gn/moz.build index 53d9444..13ec89c 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc2/cpu_features_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc2/cpu_features_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc2/fixed_digital_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc2/fixed_digital_gn/moz.build index 3e76688..a7361a5 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc2/fixed_digital_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc2/fixed_digital_gn/moz.build @@ -188,6 +188,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -204,6 +208,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc2/gain_applier_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc2/gain_applier_gn/moz.build index 1e7fc30..7fab3de 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc2/gain_applier_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc2/gain_applier_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc2/noise_level_estimator_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc2/noise_level_estimator_gn/moz.build index 6b53dda..91945d4 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc2/noise_level_estimator_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc2/noise_level_estimator_gn/moz.build @@ -186,6 +186,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -202,6 +206,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_auto_correlation_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_auto_correlation_gn/moz.build index 1e156ad..d830beb 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_auto_correlation_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_auto_correlation_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_gn/moz.build index 26fa033..7964a97 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_gn/moz.build @@ -186,6 +186,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -202,6 +206,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_layers_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_layers_gn/moz.build index 9bac4ab..97f2bc8 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_layers_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_layers_gn/moz.build @@ -186,6 +186,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -202,6 +206,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_lp_residual_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_lp_residual_gn/moz.build index 19e8737..59255ad 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_lp_residual_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_lp_residual_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_pitch_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_pitch_gn/moz.build index 4d64842..7f5f921 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_pitch_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_pitch_gn/moz.build @@ -186,6 +186,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -202,6 +206,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_spectral_features_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_spectral_features_gn/moz.build index 1cdba1b..f01159a 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_spectral_features_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_spectral_features_gn/moz.build @@ -186,6 +186,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -202,6 +206,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn/moz.build index a640c19..5b8c32b 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn/moz.build @@ -166,8 +166,18 @@ if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] +if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + + CXXFLAGS += [ + "-msse2" + ] + Library("vector_math_avx2_gn") diff --git a/third_party/libwebrtc/modules/audio_processing/agc2/vad_wrapper_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/agc2/vad_wrapper_gn/moz.build index 30e1f281..7fa5ca0 100644 --- a/third_party/libwebrtc/modules/audio_processing/agc2/vad_wrapper_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/agc2/vad_wrapper_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/api_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/api_gn/moz.build index eb8d4aa..4767e35 100644 --- a/third_party/libwebrtc/modules/audio_processing/api_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/api_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/apm_logging_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/apm_logging_gn/moz.build index 555f8dc..5836eef 100644 --- a/third_party/libwebrtc/modules/audio_processing/apm_logging_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/apm_logging_gn/moz.build @@ -186,6 +186,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -202,6 +206,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/audio_buffer_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/audio_buffer_gn/moz.build index e642368..ef143d1 100644 --- a/third_party/libwebrtc/modules/audio_processing/audio_buffer_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/audio_buffer_gn/moz.build @@ -188,6 +188,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -204,6 +208,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/audio_frame_proxies_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/audio_frame_proxies_gn/moz.build index 5485891..3c6a574 100644 --- a/third_party/libwebrtc/modules/audio_processing/audio_frame_proxies_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/audio_frame_proxies_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/audio_processing_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/audio_processing_gn/moz.build index 0e55763..9487486 100644 --- a/third_party/libwebrtc/modules/audio_processing/audio_processing_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/audio_processing_gn/moz.build @@ -192,6 +192,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -208,6 +212,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/audio_processing_statistics_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/audio_processing_statistics_gn/moz.build index 9446476..124481d 100644 --- a/third_party/libwebrtc/modules/audio_processing/audio_processing_statistics_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/audio_processing_statistics_gn/moz.build @@ -170,6 +170,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -186,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/capture_levels_adjuster/capture_levels_adjuster_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/capture_levels_adjuster/capture_levels_adjuster_gn/moz.build index ded0d72..e29237e 100644 --- a/third_party/libwebrtc/modules/audio_processing/capture_levels_adjuster/capture_levels_adjuster_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/capture_levels_adjuster/capture_levels_adjuster_gn/moz.build @@ -186,6 +186,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -202,6 +206,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/gain_controller2_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/gain_controller2_gn/moz.build index b63751c..8fa7873 100644 --- a/third_party/libwebrtc/modules/audio_processing/gain_controller2_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/gain_controller2_gn/moz.build @@ -186,6 +186,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -202,6 +206,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/high_pass_filter_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/high_pass_filter_gn/moz.build index ca00a03..69130c9 100644 --- a/third_party/libwebrtc/modules/audio_processing/high_pass_filter_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/high_pass_filter_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/ns/ns_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/ns/ns_gn/moz.build index d83a789..7465b54 100644 --- a/third_party/libwebrtc/modules/audio_processing/ns/ns_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/ns/ns_gn/moz.build @@ -198,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -214,6 +218,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/optionally_built_submodule_creators_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/optionally_built_submodule_creators_gn/moz.build index b32a08b..00f3929 100644 --- a/third_party/libwebrtc/modules/audio_processing/optionally_built_submodule_creators_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/optionally_built_submodule_creators_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/rms_level_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/rms_level_gn/moz.build index cb54ed6..c84a80b 100644 --- a/third_party/libwebrtc/modules/audio_processing/rms_level_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/rms_level_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/transient/transient_suppressor_impl_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/transient/transient_suppressor_impl_gn/moz.build index b7f5a0e..68e7ad9 100644 --- a/third_party/libwebrtc/modules/audio_processing/transient/transient_suppressor_impl_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/transient/transient_suppressor_impl_gn/moz.build @@ -189,6 +189,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -205,6 +209,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/transient/voice_probability_delay_unit_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/transient/voice_probability_delay_unit_gn/moz.build index 61917bc..f243fac2 100644 --- a/third_party/libwebrtc/modules/audio_processing/transient/voice_probability_delay_unit_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/transient/voice_probability_delay_unit_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/utility/cascaded_biquad_filter_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/utility/cascaded_biquad_filter_gn/moz.build index 9147ecb..8eb3630 100644 --- a/third_party/libwebrtc/modules/audio_processing/utility/cascaded_biquad_filter_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/utility/cascaded_biquad_filter_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/utility/legacy_delay_estimator_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/utility/legacy_delay_estimator_gn/moz.build index 2df7917..efa0723 100644 --- a/third_party/libwebrtc/modules/audio_processing/utility/legacy_delay_estimator_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/utility/legacy_delay_estimator_gn/moz.build @@ -175,6 +175,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -191,6 +195,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/utility/pffft_wrapper_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/utility/pffft_wrapper_gn/moz.build index 9ecfbdf..1ddc21b 100644 --- a/third_party/libwebrtc/modules/audio_processing/utility/pffft_wrapper_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/utility/pffft_wrapper_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/audio_processing/vad/vad_gn/moz.build b/third_party/libwebrtc/modules/audio_processing/vad/vad_gn/moz.build index 8c94a12..2f8c6bf 100644 --- a/third_party/libwebrtc/modules/audio_processing/vad/vad_gn/moz.build +++ b/third_party/libwebrtc/modules/audio_processing/vad/vad_gn/moz.build @@ -192,6 +192,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -208,6 +212,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/congestion_controller/congestion_controller_gn/moz.build b/third_party/libwebrtc/modules/congestion_controller/congestion_controller_gn/moz.build index 17ab56b..cbb48cf 100644 --- a/third_party/libwebrtc/modules/congestion_controller/congestion_controller_gn/moz.build +++ b/third_party/libwebrtc/modules/congestion_controller/congestion_controller_gn/moz.build @@ -189,6 +189,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -205,6 +209,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/congestion_controller/goog_cc/alr_detector_gn/moz.build b/third_party/libwebrtc/modules/congestion_controller/goog_cc/alr_detector_gn/moz.build index 622fd6f..e7650a5 100644 --- a/third_party/libwebrtc/modules/congestion_controller/goog_cc/alr_detector_gn/moz.build +++ b/third_party/libwebrtc/modules/congestion_controller/goog_cc/alr_detector_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/congestion_controller/goog_cc/delay_based_bwe_gn/moz.build b/third_party/libwebrtc/modules/congestion_controller/goog_cc/delay_based_bwe_gn/moz.build index ac2e6ec..94c054e 100644 --- a/third_party/libwebrtc/modules/congestion_controller/goog_cc/delay_based_bwe_gn/moz.build +++ b/third_party/libwebrtc/modules/congestion_controller/goog_cc/delay_based_bwe_gn/moz.build @@ -189,6 +189,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -205,6 +209,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/congestion_controller/goog_cc/estimators_gn/moz.build b/third_party/libwebrtc/modules/congestion_controller/goog_cc/estimators_gn/moz.build index c2bee72..e022257 100644 --- a/third_party/libwebrtc/modules/congestion_controller/goog_cc/estimators_gn/moz.build +++ b/third_party/libwebrtc/modules/congestion_controller/goog_cc/estimators_gn/moz.build @@ -193,6 +193,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -209,6 +213,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/congestion_controller/goog_cc/goog_cc_gn/moz.build b/third_party/libwebrtc/modules/congestion_controller/goog_cc/goog_cc_gn/moz.build index ea12fe5..f162029 100644 --- a/third_party/libwebrtc/modules/congestion_controller/goog_cc/goog_cc_gn/moz.build +++ b/third_party/libwebrtc/modules/congestion_controller/goog_cc/goog_cc_gn/moz.build @@ -188,6 +188,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -204,6 +208,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/congestion_controller/goog_cc/link_capacity_estimator_gn/moz.build b/third_party/libwebrtc/modules/congestion_controller/goog_cc/link_capacity_estimator_gn/moz.build index b153a0e..123670e 100644 --- a/third_party/libwebrtc/modules/congestion_controller/goog_cc/link_capacity_estimator_gn/moz.build +++ b/third_party/libwebrtc/modules/congestion_controller/goog_cc/link_capacity_estimator_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v1_gn/moz.build b/third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v1_gn/moz.build index e3394c9..9c1d802 100644 --- a/third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v1_gn/moz.build +++ b/third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v1_gn/moz.build @@ -179,6 +179,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -195,6 +199,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v2_gn/moz.build b/third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v2_gn/moz.build index 4064872..5788df6 100644 --- a/third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v2_gn/moz.build +++ b/third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v2_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/congestion_controller/goog_cc/probe_controller_gn/moz.build b/third_party/libwebrtc/modules/congestion_controller/goog_cc/probe_controller_gn/moz.build index e337176..838207cb 100644 --- a/third_party/libwebrtc/modules/congestion_controller/goog_cc/probe_controller_gn/moz.build +++ b/third_party/libwebrtc/modules/congestion_controller/goog_cc/probe_controller_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/congestion_controller/goog_cc/pushback_controller_gn/moz.build b/third_party/libwebrtc/modules/congestion_controller/goog_cc/pushback_controller_gn/moz.build index b7b667317..346c03e 100644 --- a/third_party/libwebrtc/modules/congestion_controller/goog_cc/pushback_controller_gn/moz.build +++ b/third_party/libwebrtc/modules/congestion_controller/goog_cc/pushback_controller_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/congestion_controller/goog_cc/send_side_bwe_gn/moz.build b/third_party/libwebrtc/modules/congestion_controller/goog_cc/send_side_bwe_gn/moz.build index 742df43..60277de 100644 --- a/third_party/libwebrtc/modules/congestion_controller/goog_cc/send_side_bwe_gn/moz.build +++ b/third_party/libwebrtc/modules/congestion_controller/goog_cc/send_side_bwe_gn/moz.build @@ -188,6 +188,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -204,6 +208,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/congestion_controller/rtp/control_handler_gn/moz.build b/third_party/libwebrtc/modules/congestion_controller/rtp/control_handler_gn/moz.build index b81ef2d..be6fa2d5 100644 --- a/third_party/libwebrtc/modules/congestion_controller/rtp/control_handler_gn/moz.build +++ b/third_party/libwebrtc/modules/congestion_controller/rtp/control_handler_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/congestion_controller/rtp/transport_feedback_gn/moz.build b/third_party/libwebrtc/modules/congestion_controller/rtp/transport_feedback_gn/moz.build index b4d2de8..d93d0a5 100644 --- a/third_party/libwebrtc/modules/congestion_controller/rtp/transport_feedback_gn/moz.build +++ b/third_party/libwebrtc/modules/congestion_controller/rtp/transport_feedback_gn/moz.build @@ -188,6 +188,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -204,6 +208,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn/moz.build b/third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn/moz.build index 1d9b39c..17e6b23 100644 --- a/third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn/moz.build +++ b/third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn/moz.build @@ -58,10 +58,6 @@ if CONFIG["OS_TARGET"] == "Darwin": if CONFIG["OS_TARGET"] == "Linux": - CXXFLAGS += [ - "-msse2" - ] - DEFINES["USE_AURA"] = "1" DEFINES["USE_GLIB"] = "1" DEFINES["USE_NSS_CERTS"] = "1" @@ -139,4 +135,17 @@ if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux": DEFINES["USE_X11"] = "1" +if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + + CXXFLAGS += [ + "-msse2", + "-msse2" + ] + +if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": + + CXXFLAGS += [ + "-msse2" + ] + Library("desktop_capture_differ_sse2_gn") diff --git a/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build b/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build index 8631744..99ff74f 100644 --- a/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build +++ b/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build @@ -302,6 +302,10 @@ if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["WEBRTC_USE_PIPEWIRE"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build b/third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build index c0ef33e..24e2437 100644 --- a/third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build +++ b/third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build @@ -158,6 +158,10 @@ if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build b/third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build index f03ff5e..760775b 100644 --- a/third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build +++ b/third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/pacing/pacing_gn/moz.build b/third_party/libwebrtc/modules/pacing/pacing_gn/moz.build index eb2187e..e793fad 100644 --- a/third_party/libwebrtc/modules/pacing/pacing_gn/moz.build +++ b/third_party/libwebrtc/modules/pacing/pacing_gn/moz.build @@ -195,6 +195,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -211,6 +215,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_gn/moz.build b/third_party/libwebrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_gn/moz.build index 7af9c5f..677db04 100644 --- a/third_party/libwebrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_gn/moz.build +++ b/third_party/libwebrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_gn/moz.build @@ -199,6 +199,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -215,6 +219,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_format_gn/moz.build b/third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_format_gn/moz.build index 0a05e48..5816bb0 100644 --- a/third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_format_gn/moz.build +++ b/third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_format_gn/moz.build @@ -229,6 +229,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -245,6 +249,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build b/third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build index ff314f8..e314aa9 100644 --- a/third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build +++ b/third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build @@ -239,6 +239,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -255,6 +259,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/rtp_rtcp/rtp_video_header_gn/moz.build b/third_party/libwebrtc/modules/rtp_rtcp/rtp_video_header_gn/moz.build index 7bb5cb1..910f13b 100644 --- a/third_party/libwebrtc/modules/rtp_rtcp/rtp_video_header_gn/moz.build +++ b/third_party/libwebrtc/modules/rtp_rtcp/rtp_video_header_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build b/third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build index f035730..657eed3 100644 --- a/third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build +++ b/third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build @@ -170,6 +170,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -186,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/third_party/g711/g711_3p_gn/moz.build b/third_party/libwebrtc/modules/third_party/g711/g711_3p_gn/moz.build index 240656c..561738d 100644 --- a/third_party/libwebrtc/modules/third_party/g711/g711_3p_gn/moz.build +++ b/third_party/libwebrtc/modules/third_party/g711/g711_3p_gn/moz.build @@ -170,6 +170,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -186,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/third_party/g722/g722_3p_gn/moz.build b/third_party/libwebrtc/modules/third_party/g722/g722_3p_gn/moz.build index 3657b2c..947b0b1 100644 --- a/third_party/libwebrtc/modules/third_party/g722/g722_3p_gn/moz.build +++ b/third_party/libwebrtc/modules/third_party/g722/g722_3p_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/utility/utility_gn/moz.build b/third_party/libwebrtc/modules/utility/utility_gn/moz.build index 5b578af..222776d 100644 --- a/third_party/libwebrtc/modules/utility/utility_gn/moz.build +++ b/third_party/libwebrtc/modules/utility/utility_gn/moz.build @@ -175,6 +175,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] diff --git a/third_party/libwebrtc/modules/video_capture/video_capture_internal_impl_gn/moz.build b/third_party/libwebrtc/modules/video_capture/video_capture_internal_impl_gn/moz.build index d7b98c3..a150b56 100644 --- a/third_party/libwebrtc/modules/video_capture/video_capture_internal_impl_gn/moz.build +++ b/third_party/libwebrtc/modules/video_capture/video_capture_internal_impl_gn/moz.build @@ -228,6 +228,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_capture/video_capture_module_gn/moz.build b/third_party/libwebrtc/modules/video_capture/video_capture_module_gn/moz.build index 4cad010..cf4aae4 100644 --- a/third_party/libwebrtc/modules/video_capture/video_capture_module_gn/moz.build +++ b/third_party/libwebrtc/modules/video_capture/video_capture_module_gn/moz.build @@ -191,6 +191,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -207,6 +211,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/chain_diff_calculator_gn/moz.build b/third_party/libwebrtc/modules/video_coding/chain_diff_calculator_gn/moz.build index 09766af..fa501a9 100644 --- a/third_party/libwebrtc/modules/video_coding/chain_diff_calculator_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/chain_diff_calculator_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/codecs/av1/av1_svc_config_gn/moz.build b/third_party/libwebrtc/modules/video_coding/codecs/av1/av1_svc_config_gn/moz.build index f3bef36..6a404f8 100644 --- a/third_party/libwebrtc/modules/video_coding/codecs/av1/av1_svc_config_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/codecs/av1/av1_svc_config_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/codecs/av1/dav1d_decoder_gn/moz.build b/third_party/libwebrtc/modules/video_coding/codecs/av1/dav1d_decoder_gn/moz.build index c21b842..fa1d2d04 100644 --- a/third_party/libwebrtc/modules/video_coding/codecs/av1/dav1d_decoder_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/codecs/av1/dav1d_decoder_gn/moz.build @@ -191,6 +191,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -207,6 +211,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_decoder_gn/moz.build b/third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_decoder_gn/moz.build index 15ec27b..8add2b3 100644 --- a/third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_decoder_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_decoder_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build b/third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build index 2c74aec1..88d3195 100644 --- a/third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/frame_dependencies_calculator_gn/moz.build b/third_party/libwebrtc/modules/video_coding/frame_dependencies_calculator_gn/moz.build index b39c49b..bb1ad6c 100644 --- a/third_party/libwebrtc/modules/video_coding/frame_dependencies_calculator_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/frame_dependencies_calculator_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/frame_helpers_gn/moz.build b/third_party/libwebrtc/modules/video_coding/frame_helpers_gn/moz.build index 34db296..cf026bb 100644 --- a/third_party/libwebrtc/modules/video_coding/frame_helpers_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/frame_helpers_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/nack_requester_gn/moz.build b/third_party/libwebrtc/modules/video_coding/nack_requester_gn/moz.build index 82f0c8e..0901362 100644 --- a/third_party/libwebrtc/modules/video_coding/nack_requester_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/nack_requester_gn/moz.build @@ -186,6 +186,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -202,6 +206,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/packet_buffer_gn/moz.build b/third_party/libwebrtc/modules/video_coding/packet_buffer_gn/moz.build index 12ec6e5..846ee15 100644 --- a/third_party/libwebrtc/modules/video_coding/packet_buffer_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/packet_buffer_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/svc/scalability_mode_util_gn/moz.build b/third_party/libwebrtc/modules/video_coding/svc/scalability_mode_util_gn/moz.build index 2c545af9..db1c3dd 100644 --- a/third_party/libwebrtc/modules/video_coding/svc/scalability_mode_util_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/svc/scalability_mode_util_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/svc/scalability_structures_gn/moz.build b/third_party/libwebrtc/modules/video_coding/svc/scalability_structures_gn/moz.build index dbd579d..6f1feb6 100644 --- a/third_party/libwebrtc/modules/video_coding/svc/scalability_structures_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/svc/scalability_structures_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/svc/scalable_video_controller_gn/moz.build b/third_party/libwebrtc/modules/video_coding/svc/scalable_video_controller_gn/moz.build index 8e22ed6..a6a4eb1 100644 --- a/third_party/libwebrtc/modules/video_coding/svc/scalable_video_controller_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/svc/scalable_video_controller_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/svc/svc_rate_allocator_gn/moz.build b/third_party/libwebrtc/modules/video_coding/svc/svc_rate_allocator_gn/moz.build index cb5e4a4..93c76f5 100644 --- a/third_party/libwebrtc/modules/video_coding/svc/svc_rate_allocator_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/svc/svc_rate_allocator_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/timing/codec_timer_gn/moz.build b/third_party/libwebrtc/modules/video_coding/timing/codec_timer_gn/moz.build index fe230f2..43dd17d 100644 --- a/third_party/libwebrtc/modules/video_coding/timing/codec_timer_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/timing/codec_timer_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/timing/frame_delay_delta_kalman_filter_gn/moz.build b/third_party/libwebrtc/modules/video_coding/timing/frame_delay_delta_kalman_filter_gn/moz.build index 35e13f8..7002434 100644 --- a/third_party/libwebrtc/modules/video_coding/timing/frame_delay_delta_kalman_filter_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/timing/frame_delay_delta_kalman_filter_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/timing/inter_frame_delay_gn/moz.build b/third_party/libwebrtc/modules/video_coding/timing/inter_frame_delay_gn/moz.build index 84a87f2..cffa97b 100644 --- a/third_party/libwebrtc/modules/video_coding/timing/inter_frame_delay_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/timing/inter_frame_delay_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/timing/jitter_estimator_gn/moz.build b/third_party/libwebrtc/modules/video_coding/timing/jitter_estimator_gn/moz.build index f45f6f0..cf5cb9b 100644 --- a/third_party/libwebrtc/modules/video_coding/timing/jitter_estimator_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/timing/jitter_estimator_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/timing/rtt_filter_gn/moz.build b/third_party/libwebrtc/modules/video_coding/timing/rtt_filter_gn/moz.build index 54c90f4..3501181 100644 --- a/third_party/libwebrtc/modules/video_coding/timing/rtt_filter_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/timing/rtt_filter_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/timing/timing_module_gn/moz.build b/third_party/libwebrtc/modules/video_coding/timing/timing_module_gn/moz.build index 7f4e361..fd78905 100644 --- a/third_party/libwebrtc/modules/video_coding/timing/timing_module_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/timing/timing_module_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/video_codec_interface_gn/moz.build b/third_party/libwebrtc/modules/video_coding/video_codec_interface_gn/moz.build index da29622..874eb3e1 100644 --- a/third_party/libwebrtc/modules/video_coding/video_codec_interface_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/video_codec_interface_gn/moz.build @@ -188,6 +188,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -204,6 +208,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build b/third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build index f04ffa3..a32bb40 100644 --- a/third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build @@ -203,6 +203,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -219,6 +223,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/video_coding_utility_gn/moz.build b/third_party/libwebrtc/modules/video_coding/video_coding_utility_gn/moz.build index 1fb1c34..e3ca123 100644 --- a/third_party/libwebrtc/modules/video_coding/video_coding_utility_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/video_coding_utility_gn/moz.build @@ -198,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -214,6 +218,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build b/third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build index 68f59de..6bb40e7 100644 --- a/third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build @@ -192,6 +192,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -208,6 +212,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/webrtc_libvpx_interface_gn/moz.build b/third_party/libwebrtc/modules/video_coding/webrtc_libvpx_interface_gn/moz.build index 6f360d9..48d1acf 100644 --- a/third_party/libwebrtc/modules/video_coding/webrtc_libvpx_interface_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/webrtc_libvpx_interface_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/webrtc_multiplex_gn/moz.build b/third_party/libwebrtc/modules/video_coding/webrtc_multiplex_gn/moz.build index 2b1679f..8f44308 100644 --- a/third_party/libwebrtc/modules/video_coding/webrtc_multiplex_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/webrtc_multiplex_gn/moz.build @@ -190,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -206,6 +210,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build b/third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build index d4a85cb..5b389c1 100644 --- a/third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build @@ -190,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -206,6 +210,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/webrtc_vp8_scalability_gn/moz.build b/third_party/libwebrtc/modules/video_coding/webrtc_vp8_scalability_gn/moz.build index 1e8317f..cfb48cb 100644 --- a/third_party/libwebrtc/modules/video_coding/webrtc_vp8_scalability_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/webrtc_vp8_scalability_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/webrtc_vp8_temporal_layers_gn/moz.build b/third_party/libwebrtc/modules/video_coding/webrtc_vp8_temporal_layers_gn/moz.build index 2e8bb42..61d9760 100644 --- a/third_party/libwebrtc/modules/video_coding/webrtc_vp8_temporal_layers_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/webrtc_vp8_temporal_layers_gn/moz.build @@ -192,6 +192,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -208,6 +212,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build b/third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build index e3f0d17..5cda04c 100644 --- a/third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build @@ -192,6 +192,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -208,6 +212,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_coding/webrtc_vp9_helpers_gn/moz.build b/third_party/libwebrtc/modules/video_coding/webrtc_vp9_helpers_gn/moz.build index c73282c..a36c89a 100644 --- a/third_party/libwebrtc/modules/video_coding/webrtc_vp9_helpers_gn/moz.build +++ b/third_party/libwebrtc/modules/video_coding/webrtc_vp9_helpers_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_processing/video_processing_gn/moz.build b/third_party/libwebrtc/modules/video_processing/video_processing_gn/moz.build index aa332ad..35fad80 100644 --- a/third_party/libwebrtc/modules/video_processing/video_processing_gn/moz.build +++ b/third_party/libwebrtc/modules/video_processing/video_processing_gn/moz.build @@ -193,6 +193,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -209,6 +213,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn/moz.build b/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn/moz.build index 9d41f52..4b61e52 100644 --- a/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn/moz.build +++ b/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn/moz.build @@ -45,10 +45,6 @@ if CONFIG["MOZ_DEBUG"] == "1": if CONFIG["OS_TARGET"] == "Android": - CXXFLAGS += [ - "-msse2" - ] - DEFINES["ANDROID"] = True DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1" DEFINES["HAVE_SYS_UIO_H"] = True @@ -79,10 +75,6 @@ if CONFIG["OS_TARGET"] == "Darwin": if CONFIG["OS_TARGET"] == "Linux": - CXXFLAGS += [ - "-msse2" - ] - DEFINES["USE_AURA"] = "1" DEFINES["USE_GLIB"] = "1" DEFINES["USE_NSS_CERTS"] = "1" @@ -177,8 +169,32 @@ if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2", + "-msse2" + ] + OS_LIBS += [ "android_support" ] +if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Android": + + CXXFLAGS += [ + "-msse2" + ] + +if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + + CXXFLAGS += [ + "-msse2", + "-msse2" + ] + +if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": + + CXXFLAGS += [ + "-msse2" + ] + Library("video_processing_sse2_gn") diff --git a/third_party/libwebrtc/rtc_base/async_resolver_interface_gn/moz.build b/third_party/libwebrtc/rtc_base/async_resolver_interface_gn/moz.build index 5628bb3..3f5752d 100644 --- a/third_party/libwebrtc/rtc_base/async_resolver_interface_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/async_resolver_interface_gn/moz.build @@ -182,6 +182,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -198,6 +202,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/async_socket_gn/moz.build b/third_party/libwebrtc/rtc_base/async_socket_gn/moz.build index 732d822..9b8256f 100644 --- a/third_party/libwebrtc/rtc_base/async_socket_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/async_socket_gn/moz.build @@ -182,6 +182,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -198,6 +202,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/audio_format_to_string_gn/moz.build b/third_party/libwebrtc/rtc_base/audio_format_to_string_gn/moz.build index 10985c3..3c1beb4 100644 --- a/third_party/libwebrtc/rtc_base/audio_format_to_string_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/audio_format_to_string_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build b/third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build index b3daad9..c637406 100644 --- a/third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/bitstream_reader_gn/moz.build b/third_party/libwebrtc/rtc_base/bitstream_reader_gn/moz.build index 5578717..2d69397 100644 --- a/third_party/libwebrtc/rtc_base/bitstream_reader_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/bitstream_reader_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/byte_buffer_gn/moz.build b/third_party/libwebrtc/rtc_base/byte_buffer_gn/moz.build index ab65698..b835608 100644 --- a/third_party/libwebrtc/rtc_base/byte_buffer_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/byte_buffer_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/callback_list_gn/moz.build b/third_party/libwebrtc/rtc_base/callback_list_gn/moz.build index 6c63dc7..4445d76 100644 --- a/third_party/libwebrtc/rtc_base/callback_list_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/callback_list_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/checks_gn/moz.build b/third_party/libwebrtc/rtc_base/checks_gn/moz.build index 1c7ee11..e0af0a1 100644 --- a/third_party/libwebrtc/rtc_base/checks_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/checks_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/containers/flat_containers_internal_gn/moz.build b/third_party/libwebrtc/rtc_base/containers/flat_containers_internal_gn/moz.build index aeba5a1f..aa05eb0 100644 --- a/third_party/libwebrtc/rtc_base/containers/flat_containers_internal_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/containers/flat_containers_internal_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/copy_on_write_buffer_gn/moz.build b/third_party/libwebrtc/rtc_base/copy_on_write_buffer_gn/moz.build index 5a3b34c..04c029d 100644 --- a/third_party/libwebrtc/rtc_base/copy_on_write_buffer_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/copy_on_write_buffer_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build b/third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build index 9e2ce84..b44ed25 100644 --- a/third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/event_tracer_gn/moz.build b/third_party/libwebrtc/rtc_base/event_tracer_gn/moz.build index 50d3678..cb13df8 100644 --- a/third_party/libwebrtc/rtc_base/event_tracer_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/event_tracer_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build b/third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build index 6fae52b..6f7ca39 100644 --- a/third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/experiments/balanced_degradation_settings_gn/moz.build b/third_party/libwebrtc/rtc_base/experiments/balanced_degradation_settings_gn/moz.build index 4e7e01c..4a21ab4 100644 --- a/third_party/libwebrtc/rtc_base/experiments/balanced_degradation_settings_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/experiments/balanced_degradation_settings_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/experiments/bandwidth_quality_scaler_settings_gn/moz.build b/third_party/libwebrtc/rtc_base/experiments/bandwidth_quality_scaler_settings_gn/moz.build index b77512e..6f550d30 100644 --- a/third_party/libwebrtc/rtc_base/experiments/bandwidth_quality_scaler_settings_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/experiments/bandwidth_quality_scaler_settings_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/experiments/cpu_speed_experiment_gn/moz.build b/third_party/libwebrtc/rtc_base/experiments/cpu_speed_experiment_gn/moz.build index b2eda23..c01df40 100644 --- a/third_party/libwebrtc/rtc_base/experiments/cpu_speed_experiment_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/experiments/cpu_speed_experiment_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/experiments/encoder_info_settings_gn/moz.build b/third_party/libwebrtc/rtc_base/experiments/encoder_info_settings_gn/moz.build index 28b528d..b6a837a 100644 --- a/third_party/libwebrtc/rtc_base/experiments/encoder_info_settings_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/experiments/encoder_info_settings_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/experiments/field_trial_parser_gn/moz.build b/third_party/libwebrtc/rtc_base/experiments/field_trial_parser_gn/moz.build index b87d19d..f1d406e 100644 --- a/third_party/libwebrtc/rtc_base/experiments/field_trial_parser_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/experiments/field_trial_parser_gn/moz.build @@ -181,6 +181,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -197,6 +201,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/experiments/keyframe_interval_settings_experiment_gn/moz.build b/third_party/libwebrtc/rtc_base/experiments/keyframe_interval_settings_experiment_gn/moz.build index 4fc29dd..67a9927 100644 --- a/third_party/libwebrtc/rtc_base/experiments/keyframe_interval_settings_experiment_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/experiments/keyframe_interval_settings_experiment_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/experiments/min_video_bitrate_experiment_gn/moz.build b/third_party/libwebrtc/rtc_base/experiments/min_video_bitrate_experiment_gn/moz.build index eb80428..60672ef 100644 --- a/third_party/libwebrtc/rtc_base/experiments/min_video_bitrate_experiment_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/experiments/min_video_bitrate_experiment_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/experiments/quality_rampup_experiment_gn/moz.build b/third_party/libwebrtc/rtc_base/experiments/quality_rampup_experiment_gn/moz.build index b1c8c0d..995a262 100644 --- a/third_party/libwebrtc/rtc_base/experiments/quality_rampup_experiment_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/experiments/quality_rampup_experiment_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings_gn/moz.build b/third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings_gn/moz.build index e03ac53..532a0ac 100644 --- a/third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/experiments/quality_scaling_experiment_gn/moz.build b/third_party/libwebrtc/rtc_base/experiments/quality_scaling_experiment_gn/moz.build index 8eab3b6..ad92026 100644 --- a/third_party/libwebrtc/rtc_base/experiments/quality_scaling_experiment_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/experiments/quality_scaling_experiment_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/experiments/rate_control_settings_gn/moz.build b/third_party/libwebrtc/rtc_base/experiments/rate_control_settings_gn/moz.build index 0d2c512..383043a 100644 --- a/third_party/libwebrtc/rtc_base/experiments/rate_control_settings_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/experiments/rate_control_settings_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/experiments/rtt_mult_experiment_gn/moz.build b/third_party/libwebrtc/rtc_base/experiments/rtt_mult_experiment_gn/moz.build index a2d84ca..11f41f9 100644 --- a/third_party/libwebrtc/rtc_base/experiments/rtt_mult_experiment_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/experiments/rtt_mult_experiment_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/experiments/stable_target_rate_experiment_gn/moz.build b/third_party/libwebrtc/rtc_base/experiments/stable_target_rate_experiment_gn/moz.build index 587c408..8db1337 100644 --- a/third_party/libwebrtc/rtc_base/experiments/stable_target_rate_experiment_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/experiments/stable_target_rate_experiment_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/histogram_percentile_counter_gn/moz.build b/third_party/libwebrtc/rtc_base/histogram_percentile_counter_gn/moz.build index b4a901c..1e33e7b 100644 --- a/third_party/libwebrtc/rtc_base/histogram_percentile_counter_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/histogram_percentile_counter_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/ifaddrs_android_gn/moz.build b/third_party/libwebrtc/rtc_base/ifaddrs_android_gn/moz.build index 404b7f5..4c4ae05 100644 --- a/third_party/libwebrtc/rtc_base/ifaddrs_android_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/ifaddrs_android_gn/moz.build @@ -81,6 +81,10 @@ if CONFIG["CPU_ARCH"] == "arm": if CONFIG["CPU_ARCH"] == "x86": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] diff --git a/third_party/libwebrtc/rtc_base/ip_address_gn/moz.build b/third_party/libwebrtc/rtc_base/ip_address_gn/moz.build index 686dd85..8e527c2 100644 --- a/third_party/libwebrtc/rtc_base/ip_address_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/ip_address_gn/moz.build @@ -182,6 +182,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -198,6 +202,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/location_gn/moz.build b/third_party/libwebrtc/rtc_base/location_gn/moz.build index e5ccd52..bb071c2 100644 --- a/third_party/libwebrtc/rtc_base/location_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/location_gn/moz.build @@ -170,6 +170,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -186,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/logging_gn/moz.build b/third_party/libwebrtc/rtc_base/logging_gn/moz.build index 25c1b29..4ed50b3 100644 --- a/third_party/libwebrtc/rtc_base/logging_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/logging_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build b/third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build index aeb2867..ab3de421 100644 --- a/third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/net_helpers_gn/moz.build b/third_party/libwebrtc/rtc_base/net_helpers_gn/moz.build index 9544696..bcc958b 100644 --- a/third_party/libwebrtc/rtc_base/net_helpers_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/net_helpers_gn/moz.build @@ -182,6 +182,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -198,6 +202,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build b/third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build index e91b1dd..491703f 100644 --- a/third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build @@ -170,6 +170,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -186,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/network_constants_gn/moz.build b/third_party/libwebrtc/rtc_base/network_constants_gn/moz.build index 14b68b4..05bbb06 100644 --- a/third_party/libwebrtc/rtc_base/network_constants_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/network_constants_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/null_socket_server_gn/moz.build b/third_party/libwebrtc/rtc_base/null_socket_server_gn/moz.build index 52ae3bc..44c2034 100644 --- a/third_party/libwebrtc/rtc_base/null_socket_server_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/null_socket_server_gn/moz.build @@ -182,6 +182,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -198,6 +202,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build b/third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build index c759dfd..fbc161e 100644 --- a/third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build b/third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build index 5962bb5..0087192 100644 --- a/third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build @@ -170,6 +170,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -186,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/race_checker_gn/moz.build b/third_party/libwebrtc/rtc_base/race_checker_gn/moz.build index e1eee7a..b06d2df 100644 --- a/third_party/libwebrtc/rtc_base/race_checker_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/race_checker_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/random_gn/moz.build b/third_party/libwebrtc/rtc_base/random_gn/moz.build index a0f473e..4bde747 100644 --- a/third_party/libwebrtc/rtc_base/random_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/random_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build b/third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build index f3b8159..70306d4 100644 --- a/third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/rate_statistics_gn/moz.build b/third_party/libwebrtc/rtc_base/rate_statistics_gn/moz.build index fdb0812..ab0774c 100644 --- a/third_party/libwebrtc/rtc_base/rate_statistics_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/rate_statistics_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/rate_tracker_gn/moz.build b/third_party/libwebrtc/rtc_base/rate_tracker_gn/moz.build index b793860..c86b682 100644 --- a/third_party/libwebrtc/rtc_base/rate_tracker_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/rate_tracker_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/rtc_base_gn/moz.build b/third_party/libwebrtc/rtc_base/rtc_base_gn/moz.build index 5b5c480..4b8e41d 100644 --- a/third_party/libwebrtc/rtc_base/rtc_base_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/rtc_base_gn/moz.build @@ -210,6 +210,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -226,6 +230,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build b/third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build index 8357ece..f8a9d99 100644 --- a/third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build b/third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build index 46355c5..6699b02 100644 --- a/third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build @@ -176,6 +176,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -192,6 +196,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/rtc_task_queue_gn/moz.build b/third_party/libwebrtc/rtc_base/rtc_task_queue_gn/moz.build index 333461b..8a1fe58 100644 --- a/third_party/libwebrtc/rtc_base/rtc_task_queue_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/rtc_task_queue_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/sample_counter_gn/moz.build b/third_party/libwebrtc/rtc_base/sample_counter_gn/moz.build index da05f0b..dae08d1 100644 --- a/third_party/libwebrtc/rtc_base/sample_counter_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/sample_counter_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/socket_address_gn/moz.build b/third_party/libwebrtc/rtc_base/socket_address_gn/moz.build index 615800a..8f2840a 100644 --- a/third_party/libwebrtc/rtc_base/socket_address_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/socket_address_gn/moz.build @@ -182,6 +182,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -198,6 +202,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/socket_gn/moz.build b/third_party/libwebrtc/rtc_base/socket_gn/moz.build index a77aa3b..69cab03 100644 --- a/third_party/libwebrtc/rtc_base/socket_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/socket_gn/moz.build @@ -182,6 +182,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -198,6 +202,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/stringutils_gn/moz.build b/third_party/libwebrtc/rtc_base/stringutils_gn/moz.build index a28a8193..853932b 100644 --- a/third_party/libwebrtc/rtc_base/stringutils_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/stringutils_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/synchronization/sequence_checker_internal_gn/moz.build b/third_party/libwebrtc/rtc_base/synchronization/sequence_checker_internal_gn/moz.build index e930dc4..ec28ce3 100644 --- a/third_party/libwebrtc/rtc_base/synchronization/sequence_checker_internal_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/synchronization/sequence_checker_internal_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build b/third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build index c1c194d..6147698 100644 --- a/third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build @@ -170,6 +170,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -186,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build b/third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build index 3f9531f..11d6b02 100644 --- a/third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build b/third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build index 7dcc5ec..37f1a04 100644 --- a/third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/task_utils/repeating_task_gn/moz.build b/third_party/libwebrtc/rtc_base/task_utils/repeating_task_gn/moz.build index 46a6aca..9e5147f 100644 --- a/third_party/libwebrtc/rtc_base/task_utils/repeating_task_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/task_utils/repeating_task_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/third_party/base64/base64_gn/moz.build b/third_party/libwebrtc/rtc_base/third_party/base64/base64_gn/moz.build index c123810..f5864a3 100644 --- a/third_party/libwebrtc/rtc_base/third_party/base64/base64_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/third_party/base64/base64_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/third_party/sigslot/sigslot_gn/moz.build b/third_party/libwebrtc/rtc_base/third_party/sigslot/sigslot_gn/moz.build index 7d7f886..f475776 100644 --- a/third_party/libwebrtc/rtc_base/third_party/sigslot/sigslot_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/third_party/sigslot/sigslot_gn/moz.build @@ -170,6 +170,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -186,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/threading_gn/moz.build b/third_party/libwebrtc/rtc_base/threading_gn/moz.build index 5620799..cd18d97 100644 --- a/third_party/libwebrtc/rtc_base/threading_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/threading_gn/moz.build @@ -188,6 +188,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -204,6 +208,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/time/timestamp_extrapolator_gn/moz.build b/third_party/libwebrtc/rtc_base/time/timestamp_extrapolator_gn/moz.build index af464b0..89ea991 100644 --- a/third_party/libwebrtc/rtc_base/time/timestamp_extrapolator_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/time/timestamp_extrapolator_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/timestamp_aligner_gn/moz.build b/third_party/libwebrtc/rtc_base/timestamp_aligner_gn/moz.build index be466ad..4f715b3 100644 --- a/third_party/libwebrtc/rtc_base/timestamp_aligner_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/timestamp_aligner_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/timeutils_gn/moz.build b/third_party/libwebrtc/rtc_base/timeutils_gn/moz.build index 782ed92..2f6bd5a 100644 --- a/third_party/libwebrtc/rtc_base/timeutils_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/timeutils_gn/moz.build @@ -180,6 +180,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -196,6 +200,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build b/third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build index 11b1483..4e594f6 100644 --- a/third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/rtc_base/zero_memory_gn/moz.build b/third_party/libwebrtc/rtc_base/zero_memory_gn/moz.build index 1b5f0d9..31ba34a 100644 --- a/third_party/libwebrtc/rtc_base/zero_memory_gn/moz.build +++ b/third_party/libwebrtc/rtc_base/zero_memory_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/system_wrappers/denormal_disabler_gn/moz.build b/third_party/libwebrtc/system_wrappers/denormal_disabler_gn/moz.build index ed0facb..a5a30d5 100644 --- a/third_party/libwebrtc/system_wrappers/denormal_disabler_gn/moz.build +++ b/third_party/libwebrtc/system_wrappers/denormal_disabler_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build b/third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build index 6fe8360..5acdef2 100644 --- a/third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build +++ b/third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build @@ -178,6 +178,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -194,6 +198,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/system_wrappers/metrics_gn/moz.build b/third_party/libwebrtc/system_wrappers/metrics_gn/moz.build index b17503c..bdaedd5 100644 --- a/third_party/libwebrtc/system_wrappers/metrics_gn/moz.build +++ b/third_party/libwebrtc/system_wrappers/metrics_gn/moz.build @@ -174,6 +174,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -190,6 +194,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build b/third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build index 46d6c22..486898f 100644 --- a/third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build +++ b/third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build @@ -199,6 +199,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -215,6 +219,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/third_party/abseil-cpp/absl/base/log_severity_gn/moz.build b/third_party/libwebrtc/third_party/abseil-cpp/absl/base/log_severity_gn/moz.build index f96ddd9..f980c1a 100644 --- a/third_party/libwebrtc/third_party/abseil-cpp/absl/base/log_severity_gn/moz.build +++ b/third_party/libwebrtc/third_party/abseil-cpp/absl/base/log_severity_gn/moz.build @@ -133,6 +133,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -147,6 +151,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["_GNU_SOURCE"] = True if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": diff --git a/third_party/libwebrtc/third_party/abseil-cpp/absl/base/raw_logging_internal_gn/moz.build b/third_party/libwebrtc/third_party/abseil-cpp/absl/base/raw_logging_internal_gn/moz.build index 5dc6a84..d1023ea 100644 --- a/third_party/libwebrtc/third_party/abseil-cpp/absl/base/raw_logging_internal_gn/moz.build +++ b/third_party/libwebrtc/third_party/abseil-cpp/absl/base/raw_logging_internal_gn/moz.build @@ -133,6 +133,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -147,6 +151,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["_GNU_SOURCE"] = True if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": diff --git a/third_party/libwebrtc/third_party/abseil-cpp/absl/base/throw_delegate_gn/moz.build b/third_party/libwebrtc/third_party/abseil-cpp/absl/base/throw_delegate_gn/moz.build index a95db63..516cad6 100644 --- a/third_party/libwebrtc/third_party/abseil-cpp/absl/base/throw_delegate_gn/moz.build +++ b/third_party/libwebrtc/third_party/abseil-cpp/absl/base/throw_delegate_gn/moz.build @@ -133,6 +133,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -147,6 +151,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["_GNU_SOURCE"] = True if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": diff --git a/third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/int128_gn/moz.build b/third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/int128_gn/moz.build index d927703..f9bc44e 100644 --- a/third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/int128_gn/moz.build +++ b/third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/int128_gn/moz.build @@ -133,6 +133,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -147,6 +151,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["_GNU_SOURCE"] = True if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": diff --git a/third_party/libwebrtc/third_party/abseil-cpp/absl/strings/internal_gn/moz.build b/third_party/libwebrtc/third_party/abseil-cpp/absl/strings/internal_gn/moz.build index a62204b..5fa737d 100644 --- a/third_party/libwebrtc/third_party/abseil-cpp/absl/strings/internal_gn/moz.build +++ b/third_party/libwebrtc/third_party/abseil-cpp/absl/strings/internal_gn/moz.build @@ -135,6 +135,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -149,6 +153,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["_GNU_SOURCE"] = True if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": diff --git a/third_party/libwebrtc/third_party/abseil-cpp/absl/strings/strings_gn/moz.build b/third_party/libwebrtc/third_party/abseil-cpp/absl/strings/strings_gn/moz.build index d855b7b..a959236 100644 --- a/third_party/libwebrtc/third_party/abseil-cpp/absl/strings/strings_gn/moz.build +++ b/third_party/libwebrtc/third_party/abseil-cpp/absl/strings/strings_gn/moz.build @@ -148,6 +148,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -162,6 +166,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["_GNU_SOURCE"] = True if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": diff --git a/third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_optional_access_gn/moz.build b/third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_optional_access_gn/moz.build index 146f86e..3f29719d 100644 --- a/third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_optional_access_gn/moz.build +++ b/third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_optional_access_gn/moz.build @@ -133,6 +133,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -147,6 +151,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["_GNU_SOURCE"] = True if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": diff --git a/third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_variant_access_gn/moz.build b/third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_variant_access_gn/moz.build index 4af1048..e502ef5 100644 --- a/third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_variant_access_gn/moz.build +++ b/third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_variant_access_gn/moz.build @@ -133,6 +133,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -147,6 +151,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["_GNU_SOURCE"] = True if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": diff --git a/third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build b/third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build index be95ea0..8f0506e 100644 --- a/third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build +++ b/third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build @@ -141,6 +141,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -155,6 +159,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CFLAGS += [ + "-msse2" + ] + DEFINES["_GNU_SOURCE"] = True if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": diff --git a/third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build b/third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build index 37ea6a9..f7fb59e 100644 --- a/third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build +++ b/third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build @@ -136,6 +136,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -150,6 +154,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["_GNU_SOURCE"] = True if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": diff --git a/third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build b/third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build index a1f7c3b..8093a56 100644 --- a/third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build +++ b/third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build @@ -196,6 +196,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -212,6 +216,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/video/decode_synchronizer_gn/moz.build b/third_party/libwebrtc/video/decode_synchronizer_gn/moz.build index 413feef..3056d7c 100644 --- a/third_party/libwebrtc/video/decode_synchronizer_gn/moz.build +++ b/third_party/libwebrtc/video/decode_synchronizer_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/video/frame_cadence_adapter_gn/moz.build b/third_party/libwebrtc/video/frame_cadence_adapter_gn/moz.build index 1f9b0da..8dacb02 100644 --- a/third_party/libwebrtc/video/frame_cadence_adapter_gn/moz.build +++ b/third_party/libwebrtc/video/frame_cadence_adapter_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/video/frame_decode_timing_gn/moz.build b/third_party/libwebrtc/video/frame_decode_timing_gn/moz.build index 6d3c945..df1cf13 100644 --- a/third_party/libwebrtc/video/frame_decode_timing_gn/moz.build +++ b/third_party/libwebrtc/video/frame_decode_timing_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build b/third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build index 6cd9226..12fba4f 100644 --- a/third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build +++ b/third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/video/task_queue_frame_decode_scheduler_gn/moz.build b/third_party/libwebrtc/video/task_queue_frame_decode_scheduler_gn/moz.build index 11be038..b3866f7 100644 --- a/third_party/libwebrtc/video/task_queue_frame_decode_scheduler_gn/moz.build +++ b/third_party/libwebrtc/video/task_queue_frame_decode_scheduler_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/video/unique_timestamp_counter_gn/moz.build b/third_party/libwebrtc/video/unique_timestamp_counter_gn/moz.build index e2984f7..7df52c0 100644 --- a/third_party/libwebrtc/video/unique_timestamp_counter_gn/moz.build +++ b/third_party/libwebrtc/video/unique_timestamp_counter_gn/moz.build @@ -170,6 +170,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -186,6 +190,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/video/video_gn/moz.build b/third_party/libwebrtc/video/video_gn/moz.build index bc06006..88b20d4 100644 --- a/third_party/libwebrtc/video/video_gn/moz.build +++ b/third_party/libwebrtc/video/video_gn/moz.build @@ -209,6 +209,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -225,6 +229,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/video/video_receive_stream_timeout_tracker_gn/moz.build b/third_party/libwebrtc/video/video_receive_stream_timeout_tracker_gn/moz.build index b9d00d7..da0c24c8 100644 --- a/third_party/libwebrtc/video/video_receive_stream_timeout_tracker_gn/moz.build +++ b/third_party/libwebrtc/video/video_receive_stream_timeout_tracker_gn/moz.build @@ -185,6 +185,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -201,6 +205,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/video/video_stream_buffer_controller_gn/moz.build b/third_party/libwebrtc/video/video_stream_buffer_controller_gn/moz.build index f5b2508..226e6c3 100644 --- a/third_party/libwebrtc/video/video_stream_buffer_controller_gn/moz.build +++ b/third_party/libwebrtc/video/video_stream_buffer_controller_gn/moz.build @@ -187,6 +187,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -203,6 +207,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True diff --git a/third_party/libwebrtc/video/video_stream_encoder_impl_gn/moz.build b/third_party/libwebrtc/video/video_stream_encoder_impl_gn/moz.build index e47ba1d..b22128e 100644 --- a/third_party/libwebrtc/video/video_stream_encoder_impl_gn/moz.build +++ b/third_party/libwebrtc/video/video_stream_encoder_impl_gn/moz.build @@ -192,6 +192,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": + CXXFLAGS += [ + "-msse2" + ] + OS_LIBS += [ "android_support" ] @@ -208,6 +212,10 @@ if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": + CXXFLAGS += [ + "-msse2" + ] + DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["_GNU_SOURCE"] = True