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

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

Issue 1323453003: Fixes for PNaCl build of remoting client plugin in chromium. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 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/base/systeminfo.cc ('k') | webrtc/modules/desktop_capture/desktop_frame.h » ('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") {
16 sources = [
17 "desktop_capture_types.h",
18 "desktop_frame.cc",
19 "desktop_frame.h",
20 "desktop_geometry.cc",
21 "desktop_geometry.h",
22 "desktop_region.cc",
23 "desktop_region.h",
24 ]
25
26 public_configs = [ "../..:common_inherited_config" ]
27 }
28
15 source_set("desktop_capture") { 29 source_set("desktop_capture") {
16 sources = [ 30 sources = [
17 "cropped_desktop_frame.cc", 31 "cropped_desktop_frame.cc",
18 "cropped_desktop_frame.h", 32 "cropped_desktop_frame.h",
19 "cropping_window_capturer.cc", 33 "cropping_window_capturer.cc",
20 "cropping_window_capturer.h", 34 "cropping_window_capturer.h",
21 "cropping_window_capturer_win.cc", 35 "cropping_window_capturer_win.cc",
22 "desktop_and_cursor_composer.cc", 36 "desktop_and_cursor_composer.cc",
23 "desktop_and_cursor_composer.h", 37 "desktop_and_cursor_composer.h",
24 "desktop_capture_options.cc", 38 "desktop_capture_options.cc",
25 "desktop_capture_options.h", 39 "desktop_capture_options.h",
26 "desktop_capture_types.h",
27 "desktop_capturer.h", 40 "desktop_capturer.h",
28 "desktop_capturer.h", 41 "desktop_capturer.h",
29 "desktop_frame.cc",
30 "desktop_frame.h",
31 "desktop_frame_win.cc", 42 "desktop_frame_win.cc",
32 "desktop_frame_win.h", 43 "desktop_frame_win.h",
33 "desktop_geometry.cc",
34 "desktop_geometry.h",
35 "desktop_region.cc",
36 "desktop_region.h",
37 "differ.cc", 44 "differ.cc",
38 "differ.h", 45 "differ.h",
39 "differ_block.cc", 46 "differ_block.cc",
40 "differ_block.h", 47 "differ_block.h",
41 "mac/desktop_configuration.h", 48 "mac/desktop_configuration.h",
42 "mac/desktop_configuration.mm", 49 "mac/desktop_configuration.mm",
43 "mac/desktop_configuration_monitor.cc", 50 "mac/desktop_configuration_monitor.cc",
44 "mac/desktop_configuration_monitor.h", 51 "mac/desktop_configuration_monitor.h",
45 "mac/full_screen_chrome_window_detector.cc", 52 "mac/full_screen_chrome_window_detector.cc",
46 "mac/full_screen_chrome_window_detector.h", 53 "mac/full_screen_chrome_window_detector.h",
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 configs += [ "../..:common_config" ] 127 configs += [ "../..:common_config" ]
121 public_configs = [ "../..:common_inherited_config" ] 128 public_configs = [ "../..:common_inherited_config" ]
122 129
123 if (is_clang) { 130 if (is_clang) {
124 # Suppress warnings from Chrome's Clang plugins. 131 # Suppress warnings from Chrome's Clang plugins.
125 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 132 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
126 configs -= [ "//build/config/clang:find_bad_constructs" ] 133 configs -= [ "//build/config/clang:find_bad_constructs" ]
127 } 134 }
128 135
129 deps = [ 136 deps = [
137 ":primitives",
130 "../../base:rtc_base_approved", 138 "../../base:rtc_base_approved",
131 "../../system_wrappers", 139 "../../system_wrappers",
132 ] 140 ]
133 141
134 if (use_desktop_capture_differ_sse2) { 142 if (use_desktop_capture_differ_sse2) {
135 deps += [ ":desktop_capture_differ_sse2" ] 143 deps += [ ":desktop_capture_differ_sse2" ]
136 } 144 }
137 } 145 }
138 146
139 if (use_desktop_capture_differ_sse2) { 147 if (use_desktop_capture_differ_sse2) {
140 # Have to be compiled as a separate target because it needs to be compiled 148 # Have to be compiled as a separate target because it needs to be compiled
141 # with SSE2 enabled. 149 # with SSE2 enabled.
142 source_set("desktop_capture_differ_sse2") { 150 source_set("desktop_capture_differ_sse2") {
143 visibility = [ ":*" ] 151 visibility = [ ":*" ]
144 sources = [ 152 sources = [
145 "differ_block_sse2.cc", 153 "differ_block_sse2.cc",
146 "differ_block_sse2.h", 154 "differ_block_sse2.h",
147 ] 155 ]
148 156
149 configs += [ "../..:common_config" ] 157 configs += [ "../..:common_config" ]
150 public_configs = [ "../..:common_inherited_config" ] 158 public_configs = [ "../..:common_inherited_config" ]
151 159
152 if (is_posix && !is_mac) { 160 if (is_posix && !is_mac) {
153 cflags = [ "-msse2" ] 161 cflags = [ "-msse2" ]
154 } 162 }
155 } 163 }
156 } 164 }
OLDNEW
« no previous file with comments | « webrtc/base/systeminfo.cc ('k') | webrtc/modules/desktop_capture/desktop_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698