| OLD | NEW |
| 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
| 4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
| 5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
| 10 import("../../build/webrtc.gni") | 10 import("../../build/webrtc.gni") |
| 11 | 11 |
| 12 build_video_processing_sse2 = current_cpu == "x86" || current_cpu == "x64" | 12 build_video_processing_sse2 = current_cpu == "x86" || current_cpu == "x64" |
| 13 | 13 |
| 14 rtc_static_library("video_processing") { | 14 rtc_static_library("video_processing") { |
| 15 sources = [ | 15 sources = [ |
| 16 "util/denoiser_filter.cc", | 16 "util/denoiser_filter.cc", |
| 17 "util/denoiser_filter.h", | 17 "util/denoiser_filter.h", |
| 18 "util/denoiser_filter_c.cc", | 18 "util/denoiser_filter_c.cc", |
| 19 "util/denoiser_filter_c.h", | 19 "util/denoiser_filter_c.h", |
| 20 "util/noise_estimation.cc", | 20 "util/noise_estimation.cc", |
| 21 "util/noise_estimation.h", | 21 "util/noise_estimation.h", |
| 22 "util/skin_detection.cc", | 22 "util/skin_detection.cc", |
| 23 "util/skin_detection.h", | 23 "util/skin_detection.h", |
| 24 "video_denoiser.cc", | 24 "video_denoiser.cc", |
| 25 "video_denoiser.h", | 25 "video_denoiser.h", |
| 26 ] | 26 ] |
| 27 | 27 |
| 28 deps = [ | 28 deps = [ |
| 29 "../../base:rtc_base_approved", | |
| 30 "../../common_audio", | 29 "../../common_audio", |
| 31 "../../common_video", | 30 "../../common_video", |
| 32 "../../modules/utility", | 31 "../../modules/utility", |
| 33 "../../system_wrappers", | 32 "../../system_wrappers", |
| 34 ] | 33 ] |
| 35 if (build_video_processing_sse2) { | 34 if (build_video_processing_sse2) { |
| 36 deps += [ ":video_processing_sse2" ] | 35 deps += [ ":video_processing_sse2" ] |
| 37 } | 36 } |
| 38 if (rtc_build_with_neon) { | 37 if (rtc_build_with_neon) { |
| 39 deps += [ ":video_processing_neon" ] | 38 deps += [ ":video_processing_neon" ] |
| 40 } | 39 } |
| 41 | 40 |
| 42 if (!build_with_chromium && is_clang) { | 41 if (!build_with_chromium && is_clang) { |
| 43 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 42 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 44 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 43 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 45 } | 44 } |
| 46 } | 45 } |
| 47 | 46 |
| 48 if (build_video_processing_sse2) { | 47 if (build_video_processing_sse2) { |
| 49 rtc_static_library("video_processing_sse2") { | 48 rtc_static_library("video_processing_sse2") { |
| 50 # TODO(mbonadei): Remove (bugs.webrtc.org/6828) | |
| 51 # Errors on cyclic dependency with :video_processing if enabled. | |
| 52 check_includes = false | |
| 53 | |
| 54 sources = [ | 49 sources = [ |
| 55 "util/denoiser_filter_sse2.cc", | 50 "util/denoiser_filter_sse2.cc", |
| 56 "util/denoiser_filter_sse2.h", | 51 "util/denoiser_filter_sse2.h", |
| 57 ] | 52 ] |
| 58 | 53 |
| 59 deps = [ | |
| 60 "../../base:rtc_base_approved", | |
| 61 "../../system_wrappers", | |
| 62 ] | |
| 63 | |
| 64 if (!build_with_chromium && is_clang) { | 54 if (!build_with_chromium && is_clang) { |
| 65 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 55 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 66 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 56 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 67 } | 57 } |
| 68 | 58 |
| 69 if (is_posix) { | 59 if (is_posix) { |
| 70 cflags = [ "-msse2" ] | 60 cflags = [ "-msse2" ] |
| 71 } | 61 } |
| 72 } | 62 } |
| 73 } | 63 } |
| 74 | 64 |
| 75 if (rtc_build_with_neon) { | 65 if (rtc_build_with_neon) { |
| 76 rtc_static_library("video_processing_neon") { | 66 rtc_static_library("video_processing_neon") { |
| 77 sources = [ | 67 sources = [ |
| 78 "util/denoiser_filter_neon.cc", | 68 "util/denoiser_filter_neon.cc", |
| 79 "util/denoiser_filter_neon.h", | 69 "util/denoiser_filter_neon.h", |
| 80 ] | 70 ] |
| 81 if (current_cpu != "arm64") { | 71 if (current_cpu != "arm64") { |
| 82 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ] | 72 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ] |
| 83 cflags = [ "-mfpu=neon" ] | 73 cflags = [ "-mfpu=neon" ] |
| 84 } | 74 } |
| 85 } | 75 } |
| 86 } | 76 } |
| OLD | NEW |