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

Side by Side Diff: webrtc/modules/desktop_capture/desktop_capture.gypi

Issue 2289103002: Desktop capture: Fix GN target and exclude differ* sources on iOS (Closed)
Patch Set: 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/desktop_capture/BUILD.gn ('k') | no next file » | 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) 2013 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2013 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 { 9 {
10 'targets': [ 10 'targets': [
11 { 11 {
12 'target_name': 'primitives',
13 'type': 'static_library',
14 'sources': [
15 'desktop_capture_types.h',
16 'desktop_frame.cc',
17 'desktop_frame.h',
18 'desktop_geometry.cc',
19 'desktop_geometry.h',
20 'desktop_region.cc',
21 'desktop_region.h',
22 ],
23 },
24 {
12 'target_name': 'desktop_capture', 25 'target_name': 'desktop_capture',
13 'type': 'static_library', 26 'type': 'static_library',
14 'dependencies': [ 27 'dependencies': [
28 ':primitives',
15 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', 29 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
16 '<(webrtc_root)/base/base.gyp:rtc_base', 30 '<(webrtc_root)/base/base.gyp:rtc_base',
17 ], 31 ],
18 'sources': [ 32 'sources': [
19 'cropped_desktop_frame.cc', 33 'cropped_desktop_frame.cc',
20 'cropped_desktop_frame.h', 34 'cropped_desktop_frame.h',
21 'cropping_window_capturer.cc', 35 'cropping_window_capturer.cc',
22 'cropping_window_capturer.h', 36 'cropping_window_capturer.h',
23 'cropping_window_capturer_win.cc', 37 'cropping_window_capturer_win.cc',
24 "desktop_and_cursor_composer.cc", 38 'desktop_and_cursor_composer.cc',
25 "desktop_and_cursor_composer.h", 39 'desktop_and_cursor_composer.h',
26 "desktop_capture_types.h", 40 'desktop_capture_options.h',
27 "desktop_capturer.h", 41 'desktop_capture_options.cc',
28 "desktop_frame.cc", 42 'desktop_capturer.h',
29 "desktop_frame.h", 43 'desktop_frame_win.cc',
30 "desktop_frame_win.cc", 44 'desktop_frame_win.h',
31 "desktop_frame_win.h", 45 'mac/desktop_configuration.h',
32 "desktop_geometry.cc", 46 'mac/desktop_configuration.mm',
33 "desktop_geometry.h", 47 'mac/desktop_configuration_monitor.h',
34 "desktop_capture_options.h", 48 'mac/desktop_configuration_monitor.cc',
35 "desktop_capture_options.cc", 49 'mac/full_screen_chrome_window_detector.cc',
36 "desktop_capturer.h", 50 'mac/full_screen_chrome_window_detector.h',
37 "desktop_region.cc", 51 'mac/scoped_pixel_buffer_object.cc',
38 "desktop_region.h", 52 'mac/scoped_pixel_buffer_object.h',
39 "differ.cc", 53 'mac/window_list_utils.cc',
40 "differ.h", 54 'mac/window_list_utils.h',
41 "differ_block.cc", 55 'mouse_cursor.cc',
42 "differ_block.h", 56 'mouse_cursor.h',
43 "mac/desktop_configuration.h", 57 'mouse_cursor_monitor.h',
44 "mac/desktop_configuration.mm", 58 'mouse_cursor_monitor_mac.mm',
45 "mac/desktop_configuration_monitor.h", 59 'mouse_cursor_monitor_win.cc',
46 "mac/desktop_configuration_monitor.cc", 60 'screen_capture_frame_queue.h',
47 "mac/full_screen_chrome_window_detector.cc", 61 'screen_capturer.h',
48 "mac/full_screen_chrome_window_detector.h", 62 'screen_capturer_helper.cc',
49 "mac/scoped_pixel_buffer_object.cc", 63 'screen_capturer_helper.h',
50 "mac/scoped_pixel_buffer_object.h", 64 'screen_capturer_mac.mm',
51 "mac/window_list_utils.cc", 65 'screen_capturer_win.cc',
52 "mac/window_list_utils.h", 66 'shared_desktop_frame.cc',
53 "mouse_cursor.cc", 67 'shared_desktop_frame.h',
54 "mouse_cursor.h", 68 'shared_memory.cc',
55 "mouse_cursor_monitor.h", 69 'shared_memory.h',
56 "mouse_cursor_monitor_mac.mm", 70 'win/cursor.cc',
57 "mouse_cursor_monitor_win.cc", 71 'win/cursor.h',
58 "mouse_cursor_monitor_x11.cc", 72 'win/d3d_device.cc',
59 "screen_capture_frame_queue.h", 73 'win/d3d_device.h',
60 "screen_capturer.h", 74 'win/desktop.cc',
61 "screen_capturer_helper.cc", 75 'win/desktop.h',
62 "screen_capturer_helper.h", 76 'win/dxgi_adapter_duplicator.cc',
63 "screen_capturer_mac.mm", 77 'win/dxgi_adapter_duplicator.h',
64 "screen_capturer_win.cc", 78 'win/dxgi_duplicator_controller.cc',
65 "screen_capturer_x11.cc", 79 'win/dxgi_duplicator_controller.h',
66 "shared_desktop_frame.cc", 80 'win/dxgi_output_duplicator.cc',
67 "shared_desktop_frame.h", 81 'win/dxgi_output_duplicator.h',
68 "shared_memory.cc", 82 'win/dxgi_texture.cc',
69 "shared_memory.h", 83 'win/dxgi_texture.h',
70 "win/cursor.cc", 84 'win/dxgi_texture_mapping.cc',
71 "win/cursor.h", 85 'win/dxgi_texture_mapping.h',
72 "win/d3d_device.cc", 86 'win/dxgi_texture_staging.cc',
73 "win/d3d_device.h", 87 'win/dxgi_texture_staging.h',
74 "win/desktop.cc", 88 'win/scoped_gdi_object.h',
75 "win/desktop.h", 89 'win/scoped_thread_desktop.cc',
76 "win/dxgi_adapter_duplicator.cc", 90 'win/scoped_thread_desktop.h',
77 "win/dxgi_adapter_duplicator.h", 91 'win/screen_capture_utils.cc',
78 "win/dxgi_duplicator_controller.cc", 92 'win/screen_capture_utils.h',
79 "win/dxgi_duplicator_controller.h", 93 'win/screen_capturer_win_directx.cc',
80 "win/dxgi_output_duplicator.cc", 94 'win/screen_capturer_win_directx.h',
81 "win/dxgi_output_duplicator.h", 95 'win/screen_capturer_win_gdi.cc',
82 "win/dxgi_texture.cc", 96 'win/screen_capturer_win_gdi.h',
83 "win/dxgi_texture.h", 97 'win/screen_capturer_win_magnifier.cc',
84 "win/dxgi_texture_mapping.cc", 98 'win/screen_capturer_win_magnifier.h',
85 "win/dxgi_texture_mapping.h", 99 'win/window_capture_utils.cc',
86 "win/dxgi_texture_staging.cc", 100 'win/window_capture_utils.h',
87 "win/dxgi_texture_staging.h", 101 'window_capturer.h',
88 "win/scoped_gdi_object.h", 102 'window_capturer_mac.mm',
89 "win/scoped_thread_desktop.cc", 103 'window_capturer_win.cc',
90 "win/scoped_thread_desktop.h", 104
91 "win/screen_capturer_win_directx.cc",
92 "win/screen_capturer_win_directx.h",
93 "win/screen_capturer_win_gdi.cc",
94 "win/screen_capturer_win_gdi.h",
95 "win/screen_capturer_win_magnifier.cc",
96 "win/screen_capturer_win_magnifier.h",
97 "win/screen_capture_utils.cc",
98 "win/screen_capture_utils.h",
99 "win/window_capture_utils.cc",
100 "win/window_capture_utils.h",
101 "window_capturer.h",
102 "window_capturer_mac.mm",
103 "window_capturer_win.cc",
104 "window_capturer_x11.cc",
105 "x11/shared_x_display.h",
106 "x11/shared_x_display.cc",
107 "x11/x_error_trap.cc",
108 "x11/x_error_trap.h",
109 "x11/x_server_pixel_buffer.cc",
110 "x11/x_server_pixel_buffer.h",
111 ], 105 ],
112 'conditions': [ 106 'conditions': [
113 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', { 107 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', {
114 'dependencies': [ 108 'dependencies': [
115 'desktop_capture_differ_sse2', 109 'desktop_capture_differ_sse2',
116 ], 110 ],
117 }], 111 }],
118 ['use_x11 == 1', { 112 ['use_x11==1', {
113 'sources': [
114 'mouse_cursor_monitor_x11.cc',
115 'screen_capturer_x11.cc',
116 'window_capturer_x11.cc',
117 'x11/shared_x_display.h',
118 'x11/shared_x_display.cc',
119 'x11/x_error_trap.cc',
120 'x11/x_error_trap.h',
121 'x11/x_server_pixel_buffer.cc',
122 'x11/x_server_pixel_buffer.h',
123 ],
119 'link_settings': { 124 'link_settings': {
120 'libraries': [ 125 'libraries': [
121 '-lX11', 126 '-lX11',
122 '-lXcomposite', 127 '-lXcomposite',
123 '-lXdamage', 128 '-lXdamage',
124 '-lXext', 129 '-lXext',
125 '-lXfixes', 130 '-lXfixes',
126 '-lXrender', 131 '-lXrender',
127 ], 132 ],
128 }, 133 },
129 }], 134 }],
130 ['OS!="win" and OS!="mac" and use_x11==0', { 135 ['OS!="win" and OS!="mac" and use_x11==0', {
131 'sources': [ 136 'sources': [
132 "mouse_cursor_monitor_null.cc", 137 'mouse_cursor_monitor_null.cc',
133 "screen_capturer_null.cc", 138 'screen_capturer_null.cc',
134 "window_capturer_null.cc", 139 'window_capturer_null.cc',
140 ],
141 }],
142 ['OS!="ios" ', {
143 'sources': [
144 'differ.cc',
145 'differ.h',
146 'differ_block.cc',
147 'differ_block.h',
135 ], 148 ],
136 }], 149 }],
137 ['OS=="mac"', { 150 ['OS=="mac"', {
138 'link_settings': { 151 'link_settings': {
139 'libraries': [ 152 'libraries': [
140 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', 153 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
141 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework', 154 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
142 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', 155 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
143 ], 156 ],
144 }, 157 },
(...skipping 17 matching lines...) Expand all
162 ], # targets 175 ], # targets
163 'conditions': [ 176 'conditions': [
164 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', { 177 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', {
165 'targets': [ 178 'targets': [
166 { 179 {
167 # Have to be compiled as a separate target because it needs to be 180 # Have to be compiled as a separate target because it needs to be
168 # compiled with SSE2 enabled. 181 # compiled with SSE2 enabled.
169 'target_name': 'desktop_capture_differ_sse2', 182 'target_name': 'desktop_capture_differ_sse2',
170 'type': 'static_library', 183 'type': 'static_library',
171 'sources': [ 184 'sources': [
172 "differ_block_sse2.cc", 185 'differ_block_sse2.cc',
173 "differ_block_sse2.h", 186 'differ_block_sse2.h',
174 ], 187 ],
175 'conditions': [ 188 'conditions': [
176 ['os_posix==1', { 189 ['os_posix==1', {
177 'cflags': [ '-msse2', ], 190 'cflags': [ '-msse2', ],
178 'xcode_settings': { 191 'xcode_settings': {
179 'OTHER_CFLAGS': [ '-msse2', ], 192 'OTHER_CFLAGS': [ '-msse2', ],
180 }, 193 },
181 }], 194 }],
182 ], 195 ],
183 }, 196 },
184 ], # targets 197 ], # targets
185 }], 198 }],
186 ], 199 ],
187 } 200 }
OLDNEW
« no previous file with comments | « webrtc/modules/desktop_capture/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698