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

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

Issue 2361623004: GN: Change rtc_source_set targets --> rtc_static_library (Closed)
Patch Set: Restored accidental rebase errors. Created 4 years, 2 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 | « webrtc/modules/video_coding/BUILD.gn ('k') | webrtc/p2p/BUILD.gn » ('j') | 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_source_set("video_processing") { 14 rtc_static_library("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 24 matching lines...) Expand all
49 } 49 }
50 50
51 if (is_clang) { 51 if (is_clang) {
52 # Suppress warnings from Chrome's Clang plugins. 52 # Suppress warnings from Chrome's Clang plugins.
53 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 53 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
54 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 54 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
55 } 55 }
56 } 56 }
57 57
58 if (build_video_processing_sse2) { 58 if (build_video_processing_sse2) {
59 rtc_source_set("video_processing_sse2") { 59 rtc_static_library("video_processing_sse2") {
60 sources = [ 60 sources = [
61 "util/denoiser_filter_sse2.cc", 61 "util/denoiser_filter_sse2.cc",
62 "util/denoiser_filter_sse2.h", 62 "util/denoiser_filter_sse2.h",
63 ] 63 ]
64 64
65 if (is_clang) { 65 if (is_clang) {
66 # Suppress warnings from Chrome's Clang plugins. 66 # Suppress warnings from Chrome's Clang plugins.
67 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 67 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
68 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 68 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
69 } 69 }
70 70
71 if (is_posix) { 71 if (is_posix) {
72 cflags = [ "-msse2" ] 72 cflags = [ "-msse2" ]
73 } 73 }
74 } 74 }
75 } 75 }
76 76
77 if (rtc_build_with_neon) { 77 if (rtc_build_with_neon) {
78 rtc_source_set("video_processing_neon") { 78 rtc_static_library("video_processing_neon") {
79 sources = [ 79 sources = [
80 "util/denoiser_filter_neon.cc", 80 "util/denoiser_filter_neon.cc",
81 "util/denoiser_filter_neon.h", 81 "util/denoiser_filter_neon.h",
82 ] 82 ]
83 if (current_cpu != "arm64") { 83 if (current_cpu != "arm64") {
84 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ] 84 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
85 cflags = [ "-mfpu=neon" ] 85 cflags = [ "-mfpu=neon" ]
86 } 86 }
87 } 87 }
88 } 88 }
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/BUILD.gn ('k') | webrtc/p2p/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698