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

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

Issue 2311843002: GN Templates: Move common_inherited_config to the template. (Closed)
Patch Set: Added comment for rtc_common_inherited_config. Created 4 years, 3 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/congestion_controller/BUILD.gn ('k') | webrtc/modules/media_file/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/ui.gni") 9 import("//build/config/ui.gni")
10 import("../../build/webrtc.gni") 10 import("../../build/webrtc.gni")
11 11
12 use_desktop_capture_differ_sse2 = 12 use_desktop_capture_differ_sse2 =
13 !is_ios && (current_cpu == "x86" || current_cpu == "x64") 13 !is_ios && (current_cpu == "x86" || current_cpu == "x64")
14 14
15 rtc_source_set("primitives") { 15 rtc_source_set("primitives") {
16 sources = [ 16 sources = [
17 "desktop_capture_types.h", 17 "desktop_capture_types.h",
18 "desktop_frame.cc", 18 "desktop_frame.cc",
19 "desktop_frame.h", 19 "desktop_frame.h",
20 "desktop_geometry.cc", 20 "desktop_geometry.cc",
21 "desktop_geometry.h", 21 "desktop_geometry.h",
22 "desktop_region.cc", 22 "desktop_region.cc",
23 "desktop_region.h", 23 "desktop_region.h",
24 ] 24 ]
25
26 public_configs = [ "../..:common_inherited_config" ]
27 } 25 }
28 26
29 rtc_source_set("desktop_capture") { 27 rtc_source_set("desktop_capture") {
30 sources = [ 28 sources = [
31 "cropped_desktop_frame.cc", 29 "cropped_desktop_frame.cc",
32 "cropped_desktop_frame.h", 30 "cropped_desktop_frame.h",
33 "cropping_window_capturer.cc", 31 "cropping_window_capturer.cc",
34 "cropping_window_capturer.h", 32 "cropping_window_capturer.h",
35 "cropping_window_capturer_win.cc", 33 "cropping_window_capturer_win.cc",
36 "desktop_and_cursor_composer.cc", 34 "desktop_and_cursor_composer.cc",
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 ] 139 ]
142 } 140 }
143 141
144 if (is_win) { 142 if (is_win) {
145 libs = [ 143 libs = [
146 "d3d11.lib", 144 "d3d11.lib",
147 "dxgi.lib", 145 "dxgi.lib",
148 ] 146 ]
149 } 147 }
150 148
151 public_configs = [ "../..:common_inherited_config" ]
152
153 if (is_clang && !is_nacl) { 149 if (is_clang && !is_nacl) {
154 # Suppress warnings from Chrome's Clang plugins. 150 # Suppress warnings from Chrome's Clang plugins.
155 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 151 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
156 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 152 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
157 } 153 }
158 154
159 deps = [ 155 deps = [
160 ":primitives", 156 ":primitives",
161 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. 157 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806.
162 "../../system_wrappers", 158 "../../system_wrappers",
163 ] 159 ]
164 160
165 if (use_desktop_capture_differ_sse2) { 161 if (use_desktop_capture_differ_sse2) {
166 deps += [ ":desktop_capture_differ_sse2" ] 162 deps += [ ":desktop_capture_differ_sse2" ]
167 } 163 }
168 } 164 }
169 165
170 if (use_desktop_capture_differ_sse2) { 166 if (use_desktop_capture_differ_sse2) {
171 # Have to be compiled as a separate target because it needs to be compiled 167 # Have to be compiled as a separate target because it needs to be compiled
172 # with SSE2 enabled. 168 # with SSE2 enabled.
173 rtc_source_set("desktop_capture_differ_sse2") { 169 rtc_source_set("desktop_capture_differ_sse2") {
174 visibility = [ ":*" ] 170 visibility = [ ":*" ]
175 sources = [ 171 sources = [
176 "differ_block_sse2.cc", 172 "differ_block_sse2.cc",
177 "differ_block_sse2.h", 173 "differ_block_sse2.h",
178 ] 174 ]
179 175
180 public_configs = [ "../..:common_inherited_config" ]
181
182 if (is_posix) { 176 if (is_posix) {
183 cflags = [ "-msse2" ] 177 cflags = [ "-msse2" ]
184 } 178 }
185 } 179 }
186 } 180 }
OLDNEW
« no previous file with comments | « webrtc/modules/congestion_controller/BUILD.gn ('k') | webrtc/modules/media_file/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698