From 09a6cd55416e9ff8826d98c4de024b1cfa22104d Mon Sep 17 00:00:00 2001 From: Fabrice de Gans-Riberi Date: Fri, 30 Mar 2018 10:38:06 -0700 Subject: [PATCH] Prepare for |is_posix| switch in the Fuchsia build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit |is_posix| will be switched to false for Fuchsia, this is a preliminary change. Bug: chromium:812974 Change-Id: I3bfda3e056ad1e5229834286ce5d095d9204a428 Reviewed-on: https://webrtc-review.googlesource.com/65782 Reviewed-by: Patrik Höglund Commit-Queue: Fabrice de Gans-Riberi Cr-Commit-Position: refs/heads/master@{#22753} --- BUILD.gn | 4 ++-- common_audio/BUILD.gn | 2 +- modules/audio_processing/BUILD.gn | 2 +- modules/desktop_capture/BUILD.gn | 2 +- modules/video_processing/BUILD.gn | 2 +- rtc_base/BUILD.gn | 6 +++--- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 32dc81de6e..edb033c8b2 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -120,7 +120,7 @@ config("common_inherited_config") { ".", ] } - if (is_posix) { + if (is_posix || is_fuchsia) { defines += [ "WEBRTC_POSIX" ] } if (is_ios) { @@ -213,7 +213,7 @@ config("common_config") { "LOGGING_INSIDE_WEBRTC", ] } else { - if (is_posix) { + if (is_posix || is_fuchsia) { # Enable more warnings: -Wextra is currently disabled in Chromium. cflags = [ "-Wextra", diff --git a/common_audio/BUILD.gn b/common_audio/BUILD.gn index 6aee9d05d7..057b11cc42 100644 --- a/common_audio/BUILD.gn +++ b/common_audio/BUILD.gn @@ -303,7 +303,7 @@ if (current_cpu == "x86" || current_cpu == "x64") { "resampler/sinc_resampler_sse.cc", ] - if (is_posix) { + if (is_posix || is_fuchsia) { cflags = [ "-msse2" ] } diff --git a/modules/audio_processing/BUILD.gn b/modules/audio_processing/BUILD.gn index b0b425329d..95761c3d33 100644 --- a/modules/audio_processing/BUILD.gn +++ b/modules/audio_processing/BUILD.gn @@ -394,7 +394,7 @@ rtc_source_set("aec_core") { "utility/ooura_fft_sse2.cc", "utility/ooura_fft_tables_neon_sse2.h", ] - if (is_posix) { + if (is_posix || is_fuchsia) { cflags += [ "-msse2" ] } } diff --git a/modules/desktop_capture/BUILD.gn b/modules/desktop_capture/BUILD.gn index 5a4383b2f9..778d155c5f 100644 --- a/modules/desktop_capture/BUILD.gn +++ b/modules/desktop_capture/BUILD.gn @@ -391,7 +391,7 @@ if (use_desktop_capture_differ_sse2) { "differ_vector_sse2.h", ] - if (is_posix) { + if (is_posix || is_fuchsia) { cflags = [ "-msse2" ] } } diff --git a/modules/video_processing/BUILD.gn b/modules/video_processing/BUILD.gn index d0f995c009..57673bda0c 100644 --- a/modules/video_processing/BUILD.gn +++ b/modules/video_processing/BUILD.gn @@ -78,7 +78,7 @@ if (build_video_processing_sse2) { suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] } - if (is_posix) { + if (is_posix || is_fuchsia) { cflags = [ "-msse2" ] } } diff --git a/rtc_base/BUILD.gn b/rtc_base/BUILD.gn index 92088b0cb1..80e4455eba 100644 --- a/rtc_base/BUILD.gn +++ b/rtc_base/BUILD.gn @@ -452,7 +452,7 @@ rtc_source_set("rtc_base_approved_generic") { libs += [ "log" ] } - if (is_posix) { + if (is_posix || is_fuchsia) { sources += [ "file_posix.cc" ] } @@ -1019,7 +1019,7 @@ rtc_static_library("rtc_base_generic") { defines += [ "_CRT_NONSTDC_NO_DEPRECATE" ] } - if (is_posix) { + if (is_posix || is_fuchsia) { sources += [ "ifaddrs_converter.cc", "ifaddrs_converter.h", @@ -1353,7 +1353,7 @@ if (rtc_include_tests) { "win32window_unittest.cc", ] } - if (is_posix) { + if (is_posix || is_fuchsia) { sources += [ "openssladapter_unittest.cc", "ssladapter_unittest.cc",