Prepare for |is_posix| switch in the Fuchsia build

|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 <phoglund@webrtc.org>
Commit-Queue: Fabrice de Gans-Riberi <fdegans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#22753}
This commit is contained in:
Fabrice de Gans-Riberi
2018-03-30 10:38:06 -07:00
committed by Commit Bot
parent 1641ca3dd3
commit 09a6cd5541
6 changed files with 9 additions and 9 deletions

View File

@ -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",

View File

@ -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" ]
}

View File

@ -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" ]
}
}

View File

@ -391,7 +391,7 @@ if (use_desktop_capture_differ_sse2) {
"differ_vector_sse2.h",
]
if (is_posix) {
if (is_posix || is_fuchsia) {
cflags = [ "-msse2" ]
}
}

View File

@ -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" ]
}
}

View File

@ -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",