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("../../webrtc.gni") | 10 import("../../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_c.cc", | 17 "util/denoiser_filter_c.cc", |
18 "util/denoiser_filter_c.h", | 18 "util/denoiser_filter_c.h", |
19 "util/noise_estimation.cc", | 19 "util/noise_estimation.cc", |
20 "util/noise_estimation.h", | 20 "util/noise_estimation.h", |
21 "util/skin_detection.cc", | 21 "util/skin_detection.cc", |
22 "util/skin_detection.h", | 22 "util/skin_detection.h", |
23 "video_denoiser.cc", | 23 "video_denoiser.cc", |
24 "video_denoiser.h", | 24 "video_denoiser.h", |
25 ] | 25 ] |
26 | 26 |
27 deps = [ | 27 deps = [ |
28 ":denoiser_filter", | 28 ":denoiser_filter", |
| 29 "..:module_api", |
29 "../../base:rtc_base_approved", | 30 "../../base:rtc_base_approved", |
30 "../../common_audio", | 31 "../../common_audio", |
31 "../../common_video", | 32 "../../common_video", |
32 "../../modules/utility", | 33 "../../modules/utility", |
33 "../../system_wrappers", | 34 "../../system_wrappers", |
34 ] | 35 ] |
35 if (build_video_processing_sse2) { | 36 if (build_video_processing_sse2) { |
36 deps += [ ":video_processing_sse2" ] | 37 deps += [ ":video_processing_sse2" ] |
37 } | 38 } |
38 if (rtc_build_with_neon) { | 39 if (rtc_build_with_neon) { |
39 deps += [ ":video_processing_neon" ] | 40 deps += [ ":video_processing_neon" ] |
40 } | 41 } |
41 | 42 |
42 if (!build_with_chromium && is_clang) { | 43 if (!build_with_chromium && is_clang) { |
43 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 44 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
44 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 45 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
45 } | 46 } |
46 } | 47 } |
47 | 48 |
48 rtc_source_set("denoiser_filter") { | 49 rtc_source_set("denoiser_filter") { |
49 # Target that only exists to avoid cyclic depdency errors for the SSE2 and | 50 # Target that only exists to avoid cyclic depdency errors for the SSE2 and |
50 # Neon implementations below. | 51 # Neon implementations below. |
51 sources = [ | 52 sources = [ |
52 "util/denoiser_filter.h", | 53 "util/denoiser_filter.h", |
53 ] | 54 ] |
| 55 deps = [ |
| 56 "..:module_api", |
| 57 ] |
54 } | 58 } |
55 | 59 |
56 if (build_video_processing_sse2) { | 60 if (build_video_processing_sse2) { |
57 rtc_static_library("video_processing_sse2") { | 61 rtc_static_library("video_processing_sse2") { |
58 sources = [ | 62 sources = [ |
59 "util/denoiser_filter_sse2.cc", | 63 "util/denoiser_filter_sse2.cc", |
60 "util/denoiser_filter_sse2.h", | 64 "util/denoiser_filter_sse2.h", |
61 ] | 65 ] |
62 | 66 |
63 deps = [ | 67 deps = [ |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 "../../common_video:common_video", | 117 "../../common_video:common_video", |
114 "../../test:test_support", | 118 "../../test:test_support", |
115 "../../test:video_test_common", | 119 "../../test:video_test_common", |
116 ] | 120 ] |
117 if (!build_with_chromium && is_clang) { | 121 if (!build_with_chromium && is_clang) { |
118 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 122 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
119 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 123 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
120 } | 124 } |
121 } | 125 } |
122 } | 126 } |
OLD | NEW |