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

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

Issue 2301053002: GN: Introduce templates. (Closed)
Patch Set: Rebase 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 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 25
26 public_configs = [ "../..:common_inherited_config" ] 26 public_configs = [ "../..:common_inherited_config" ]
27 } 27 }
28 28
29 source_set("desktop_capture") { 29 rtc_source_set("desktop_capture") {
30 sources = [ 30 sources = [
31 "cropped_desktop_frame.cc", 31 "cropped_desktop_frame.cc",
32 "cropped_desktop_frame.h", 32 "cropped_desktop_frame.h",
33 "cropping_window_capturer.cc", 33 "cropping_window_capturer.cc",
34 "cropping_window_capturer.h", 34 "cropping_window_capturer.h",
35 "cropping_window_capturer_win.cc", 35 "cropping_window_capturer_win.cc",
36 "desktop_and_cursor_composer.cc", 36 "desktop_and_cursor_composer.cc",
37 "desktop_and_cursor_composer.h", 37 "desktop_and_cursor_composer.h",
38 "desktop_capture_options.cc", 38 "desktop_capture_options.cc",
39 "desktop_capture_options.h", 39 "desktop_capture_options.h",
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 "dxgi.lib", 147 "dxgi.lib",
148 ] 148 ]
149 } 149 }
150 150
151 configs += [ "../..:common_config" ] 151 configs += [ "../..:common_config" ]
152 public_configs = [ "../..:common_inherited_config" ] 152 public_configs = [ "../..:common_inherited_config" ]
153 153
154 if (is_clang && !is_nacl) { 154 if (is_clang && !is_nacl) {
155 # Suppress warnings from Chrome's Clang plugins. 155 # Suppress warnings from Chrome's Clang plugins.
156 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 156 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
157 configs -= [ "//build/config/clang:find_bad_constructs" ] 157 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
158 } 158 }
159 159
160 deps = [ 160 deps = [
161 ":primitives", 161 ":primitives",
162 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. 162 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806.
163 "../../system_wrappers", 163 "../../system_wrappers",
164 ] 164 ]
165 165
166 if (use_desktop_capture_differ_sse2) { 166 if (use_desktop_capture_differ_sse2) {
167 deps += [ ":desktop_capture_differ_sse2" ] 167 deps += [ ":desktop_capture_differ_sse2" ]
168 } 168 }
169 } 169 }
170 170
171 if (use_desktop_capture_differ_sse2) { 171 if (use_desktop_capture_differ_sse2) {
172 # Have to be compiled as a separate target because it needs to be compiled 172 # Have to be compiled as a separate target because it needs to be compiled
173 # with SSE2 enabled. 173 # with SSE2 enabled.
174 source_set("desktop_capture_differ_sse2") { 174 rtc_source_set("desktop_capture_differ_sse2") {
175 visibility = [ ":*" ] 175 visibility = [ ":*" ]
176 sources = [ 176 sources = [
177 "differ_block_sse2.cc", 177 "differ_block_sse2.cc",
178 "differ_block_sse2.h", 178 "differ_block_sse2.h",
179 ] 179 ]
180 180
181 configs += [ "../..:common_config" ] 181 configs += [ "../..:common_config" ]
182 public_configs = [ "../..:common_inherited_config" ] 182 public_configs = [ "../..:common_inherited_config" ]
183 183
184 if (is_posix) { 184 if (is_posix) {
185 cflags = [ "-msse2" ] 185 cflags = [ "-msse2" ]
186 } 186 }
187 } 187 }
188 } 188 }
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