OLD | NEW |
| (Empty) |
1 # Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | |
2 # | |
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 | |
5 # tree. An additional intellectual property rights grant can be found | |
6 # in the file PATENTS. All contributing project authors may | |
7 # be found in the AUTHORS file in the root of the source tree. | |
8 | |
9 { | |
10 'targets': [ | |
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 { | |
25 'target_name': 'desktop_capture', | |
26 'type': 'static_library', | |
27 'dependencies': [ | |
28 ':primitives', | |
29 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', | |
30 '<(webrtc_root)/base/base.gyp:rtc_base', | |
31 ], | |
32 'sources': [ | |
33 'cropped_desktop_frame.cc', | |
34 'cropped_desktop_frame.h', | |
35 'cropping_window_capturer.cc', | |
36 'cropping_window_capturer.h', | |
37 'cropping_window_capturer_win.cc', | |
38 'desktop_and_cursor_composer.cc', | |
39 'desktop_and_cursor_composer.h', | |
40 'desktop_capture_options.h', | |
41 'desktop_capture_options.cc', | |
42 'desktop_capturer.cc', | |
43 'desktop_capturer.h', | |
44 'desktop_frame_win.cc', | |
45 'desktop_frame_win.h', | |
46 'mac/desktop_configuration.h', | |
47 'mac/desktop_configuration.mm', | |
48 'mac/desktop_configuration_monitor.h', | |
49 'mac/desktop_configuration_monitor.cc', | |
50 'mac/full_screen_chrome_window_detector.cc', | |
51 'mac/full_screen_chrome_window_detector.h', | |
52 'mac/scoped_pixel_buffer_object.cc', | |
53 'mac/scoped_pixel_buffer_object.h', | |
54 'mac/window_list_utils.cc', | |
55 'mac/window_list_utils.h', | |
56 'mouse_cursor.cc', | |
57 'mouse_cursor.h', | |
58 'mouse_cursor_monitor.h', | |
59 'mouse_cursor_monitor_mac.mm', | |
60 'mouse_cursor_monitor_win.cc', | |
61 'screen_capture_frame_queue.h', | |
62 'screen_capturer_helper.cc', | |
63 'screen_capturer_helper.h', | |
64 'screen_capturer_mac.mm', | |
65 'screen_capturer_win.cc', | |
66 'shared_desktop_frame.cc', | |
67 'shared_desktop_frame.h', | |
68 'shared_memory.cc', | |
69 'shared_memory.h', | |
70 'win/cursor.cc', | |
71 'win/cursor.h', | |
72 'win/d3d_device.cc', | |
73 'win/d3d_device.h', | |
74 'win/desktop.cc', | |
75 'win/desktop.h', | |
76 'win/dxgi_adapter_duplicator.cc', | |
77 'win/dxgi_adapter_duplicator.h', | |
78 'win/dxgi_duplicator_controller.cc', | |
79 'win/dxgi_duplicator_controller.h', | |
80 'win/dxgi_output_duplicator.cc', | |
81 'win/dxgi_output_duplicator.h', | |
82 'win/dxgi_texture.cc', | |
83 'win/dxgi_texture.h', | |
84 'win/dxgi_texture_mapping.cc', | |
85 'win/dxgi_texture_mapping.h', | |
86 'win/dxgi_texture_staging.cc', | |
87 'win/dxgi_texture_staging.h', | |
88 'win/scoped_gdi_object.h', | |
89 'win/scoped_thread_desktop.cc', | |
90 'win/scoped_thread_desktop.h', | |
91 'win/screen_capture_utils.cc', | |
92 'win/screen_capture_utils.h', | |
93 'win/screen_capturer_win_directx.cc', | |
94 'win/screen_capturer_win_directx.h', | |
95 'win/screen_capturer_win_gdi.cc', | |
96 'win/screen_capturer_win_gdi.h', | |
97 'win/screen_capturer_win_magnifier.cc', | |
98 'win/screen_capturer_win_magnifier.h', | |
99 'win/window_capture_utils.cc', | |
100 'win/window_capture_utils.h', | |
101 'window_capturer_mac.mm', | |
102 'window_capturer_win.cc', | |
103 ], | |
104 'conditions': [ | |
105 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', { | |
106 'dependencies': [ | |
107 'desktop_capture_differ_sse2', | |
108 ], | |
109 }], | |
110 ['use_x11==1', { | |
111 'sources': [ | |
112 'mouse_cursor_monitor_x11.cc', | |
113 'screen_capturer_x11.cc', | |
114 'window_capturer_x11.cc', | |
115 'x11/shared_x_display.h', | |
116 'x11/shared_x_display.cc', | |
117 'x11/x_error_trap.cc', | |
118 'x11/x_error_trap.h', | |
119 'x11/x_server_pixel_buffer.cc', | |
120 'x11/x_server_pixel_buffer.h', | |
121 ], | |
122 'link_settings': { | |
123 'libraries': [ | |
124 '-lX11', | |
125 '-lXcomposite', | |
126 '-lXdamage', | |
127 '-lXext', | |
128 '-lXfixes', | |
129 '-lXrender', | |
130 ], | |
131 }, | |
132 }], | |
133 ['OS!="win" and OS!="mac" and use_x11==0', { | |
134 'sources': [ | |
135 'mouse_cursor_monitor_null.cc', | |
136 'screen_capturer_null.cc', | |
137 'window_capturer_null.cc', | |
138 ], | |
139 }], | |
140 ['OS!="ios" ', { | |
141 'sources': [ | |
142 'desktop_capturer_differ_wrapper.cc', | |
143 'desktop_capturer_differ_wrapper.h', | |
144 'differ_block.cc', | |
145 'differ_block.h', | |
146 ], | |
147 }], | |
148 ['OS=="mac"', { | |
149 'link_settings': { | |
150 'libraries': [ | |
151 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', | |
152 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework', | |
153 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', | |
154 ], | |
155 }, | |
156 }], | |
157 ], | |
158 'all_dependent_settings': { | |
159 'conditions': [ | |
160 ['OS=="win"', { | |
161 'msvs_settings': { | |
162 'VCLinkerTool': { | |
163 'AdditionalDependencies': [ | |
164 'd3d11.lib', | |
165 'dxgi.lib', | |
166 ], | |
167 }, | |
168 }, | |
169 }], | |
170 ], | |
171 }, | |
172 }, | |
173 ], # targets | |
174 'conditions': [ | |
175 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', { | |
176 'targets': [ | |
177 { | |
178 # Have to be compiled as a separate target because it needs to be | |
179 # compiled with SSE2 enabled. | |
180 'target_name': 'desktop_capture_differ_sse2', | |
181 'type': 'static_library', | |
182 'sources': [ | |
183 'differ_vector_sse2.cc', | |
184 'differ_vector_sse2.h', | |
185 ], | |
186 'conditions': [ | |
187 ['os_posix==1', { | |
188 'cflags': [ '-msse2', ], | |
189 'xcode_settings': { | |
190 'OTHER_CFLAGS': [ '-msse2', ], | |
191 }, | |
192 }], | |
193 ], | |
194 }, | |
195 ], # targets | |
196 }], | |
197 ], | |
198 } | |
OLD | NEW |