Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: webrtc/modules/video_processing/BUILD.gn

Issue 2595543002: Refactor webrtc/modules/video_processing for GN check (Closed)
Patch Set: Avoiding to refactor :video_processing_sse2 (cyclic dependency) Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « .gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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",
29 "../../common_audio", 30 "../../common_audio",
30 "../../common_video", 31 "../../common_video",
31 "../../modules/utility", 32 "../../modules/utility",
32 "../../system_wrappers", 33 "../../system_wrappers",
33 ] 34 ]
34 if (build_video_processing_sse2) { 35 if (build_video_processing_sse2) {
35 deps += [ ":video_processing_sse2" ] 36 deps += [ ":video_processing_sse2" ]
36 } 37 }
37 if (rtc_build_with_neon) { 38 if (rtc_build_with_neon) {
38 deps += [ ":video_processing_neon" ] 39 deps += [ ":video_processing_neon" ]
39 } 40 }
40 41
41 if (!build_with_chromium && is_clang) { 42 if (!build_with_chromium && is_clang) {
42 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 43 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
43 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 44 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
44 } 45 }
45 } 46 }
46 47
47 if (build_video_processing_sse2) { 48 if (build_video_processing_sse2) {
48 rtc_static_library("video_processing_sse2") { 49 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
49 sources = [ 54 sources = [
50 "util/denoiser_filter_sse2.cc", 55 "util/denoiser_filter_sse2.cc",
51 "util/denoiser_filter_sse2.h", 56 "util/denoiser_filter_sse2.h",
52 ] 57 ]
53 58
59 deps = [
60 "../../base:rtc_base_approved",
61 "../../system_wrappers",
62 ]
63
54 if (!build_with_chromium && is_clang) { 64 if (!build_with_chromium && is_clang) {
55 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 65 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
56 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 66 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
57 } 67 }
58 68
59 if (is_posix) { 69 if (is_posix) {
60 cflags = [ "-msse2" ] 70 cflags = [ "-msse2" ]
61 } 71 }
62 } 72 }
63 } 73 }
64 74
65 if (rtc_build_with_neon) { 75 if (rtc_build_with_neon) {
66 rtc_static_library("video_processing_neon") { 76 rtc_static_library("video_processing_neon") {
67 sources = [ 77 sources = [
68 "util/denoiser_filter_neon.cc", 78 "util/denoiser_filter_neon.cc",
69 "util/denoiser_filter_neon.h", 79 "util/denoiser_filter_neon.h",
70 ] 80 ]
71 if (current_cpu != "arm64") { 81 if (current_cpu != "arm64") {
72 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ] 82 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
73 cflags = [ "-mfpu=neon" ] 83 cflags = [ "-mfpu=neon" ]
74 } 84 }
75 } 85 }
76 } 86 }
OLDNEW
« no previous file with comments | « .gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698