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 source_set("video_processing") { | 14 rtc_source_set("video_processing") { |
15 sources = [ | 15 sources = [ |
16 "frame_preprocessor.cc", | 16 "frame_preprocessor.cc", |
17 "frame_preprocessor.h", | 17 "frame_preprocessor.h", |
18 "include/video_processing.h", | 18 "include/video_processing.h", |
19 "include/video_processing_defines.h", | 19 "include/video_processing_defines.h", |
20 "spatial_resampler.cc", | 20 "spatial_resampler.cc", |
21 "spatial_resampler.h", | 21 "spatial_resampler.h", |
22 "util/denoiser_filter.cc", | 22 "util/denoiser_filter.cc", |
23 "util/denoiser_filter.h", | 23 "util/denoiser_filter.h", |
24 "util/denoiser_filter_c.cc", | 24 "util/denoiser_filter_c.cc", |
(...skipping 22 matching lines...) Expand all Loading... |
47 if (rtc_build_with_neon) { | 47 if (rtc_build_with_neon) { |
48 deps += [ ":video_processing_neon" ] | 48 deps += [ ":video_processing_neon" ] |
49 } | 49 } |
50 | 50 |
51 configs += [ "../..:common_config" ] | 51 configs += [ "../..:common_config" ] |
52 public_configs = [ "../..:common_inherited_config" ] | 52 public_configs = [ "../..:common_inherited_config" ] |
53 | 53 |
54 if (is_clang) { | 54 if (is_clang) { |
55 # Suppress warnings from Chrome's Clang plugins. | 55 # Suppress warnings from Chrome's Clang plugins. |
56 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 56 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
57 configs -= [ "//build/config/clang:find_bad_constructs" ] | 57 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
58 } | 58 } |
59 } | 59 } |
60 | 60 |
61 if (build_video_processing_sse2) { | 61 if (build_video_processing_sse2) { |
62 source_set("video_processing_sse2") { | 62 rtc_source_set("video_processing_sse2") { |
63 sources = [ | 63 sources = [ |
64 "util/denoiser_filter_sse2.cc", | 64 "util/denoiser_filter_sse2.cc", |
65 "util/denoiser_filter_sse2.h", | 65 "util/denoiser_filter_sse2.h", |
66 ] | 66 ] |
67 | 67 |
68 configs += [ "../..:common_config" ] | 68 configs += [ "../..:common_config" ] |
69 public_configs = [ "../..:common_inherited_config" ] | 69 public_configs = [ "../..:common_inherited_config" ] |
70 | 70 |
71 if (is_clang) { | 71 if (is_clang) { |
72 # Suppress warnings from Chrome's Clang plugins. | 72 # Suppress warnings from Chrome's Clang plugins. |
73 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 73 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
74 configs -= [ "//build/config/clang:find_bad_constructs" ] | 74 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
75 } | 75 } |
76 | 76 |
77 if (is_posix) { | 77 if (is_posix) { |
78 cflags = [ "-msse2" ] | 78 cflags = [ "-msse2" ] |
79 } | 79 } |
80 } | 80 } |
81 } | 81 } |
82 | 82 |
83 if (rtc_build_with_neon) { | 83 if (rtc_build_with_neon) { |
84 source_set("video_processing_neon") { | 84 rtc_source_set("video_processing_neon") { |
85 sources = [ | 85 sources = [ |
86 "util/denoiser_filter_neon.cc", | 86 "util/denoiser_filter_neon.cc", |
87 "util/denoiser_filter_neon.h", | 87 "util/denoiser_filter_neon.h", |
88 ] | 88 ] |
89 if (current_cpu != "arm64") { | 89 if (current_cpu != "arm64") { |
90 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] | 90 configs_suppressions += [ "//build/config/compiler:compiler_arm_fpu" ] |
91 cflags = [ "-mfpu=neon" ] | 91 cflags = [ "-mfpu=neon" ] |
92 } | 92 } |
93 configs += [ "../..:common_config" ] | 93 configs += [ "../..:common_config" ] |
94 public_configs = [ "../..:common_inherited_config" ] | 94 public_configs = [ "../..:common_inherited_config" ] |
95 } | 95 } |
96 } | 96 } |
OLD | NEW |