Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / modules / desktop_capture / desktop_capture.gypi
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': 'desktop_capture',
13       'type': 'static_library',
14       'dependencies': [
15         '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
16       ],
17       'sources': [
18         "desktop_and_cursor_composer.cc",
19         "desktop_and_cursor_composer.h",
20         "desktop_capture_types.h",
21         "desktop_capturer.h",
22         "desktop_frame.cc",
23         "desktop_frame.h",
24         "desktop_frame_win.cc",
25         "desktop_frame_win.h",
26         "desktop_geometry.cc",
27         "desktop_geometry.h",
28         "desktop_capture_options.h",
29         "desktop_capture_options.cc",
30         "desktop_capturer.h",
31         "desktop_region.cc",
32         "desktop_region.h",
33         "differ.cc",
34         "differ.h",
35         "differ_block.cc",
36         "differ_block.h",
37         "mac/desktop_configuration.h",
38         "mac/desktop_configuration.mm",
39         "mac/desktop_configuration_monitor.h",
40         "mac/desktop_configuration_monitor.cc",
41         "mac/osx_version.h",
42         "mac/osx_version.cc",
43         "mac/scoped_pixel_buffer_object.cc",
44         "mac/scoped_pixel_buffer_object.h",
45         "mouse_cursor.cc",
46         "mouse_cursor.h",
47         "mouse_cursor_monitor.h",
48         "mouse_cursor_monitor_mac.mm",
49         "mouse_cursor_monitor_win.cc",
50         "mouse_cursor_monitor_x11.cc",
51         "mouse_cursor_shape.h",
52         "screen_capture_frame_queue.cc",
53         "screen_capture_frame_queue.h",
54         "screen_capturer.cc",
55         "screen_capturer.h",
56         "screen_capturer_helper.cc",
57         "screen_capturer_helper.h",
58         "screen_capturer_mac.mm",
59         "screen_capturer_win.cc",
60         "screen_capturer_x11.cc",
61         "shared_desktop_frame.cc",
62         "shared_desktop_frame.h",
63         "shared_memory.cc",
64         "shared_memory.h",
65         "win/cursor.cc",
66         "win/cursor.h",
67         "win/desktop.cc",
68         "win/desktop.h",
69         "win/scoped_gdi_object.h",
70         "win/scoped_thread_desktop.cc",
71         "win/scoped_thread_desktop.h",
72         "win/screen_capturer_win_gdi.cc",
73         "win/screen_capturer_win_gdi.h",
74         "win/screen_capturer_win_magnifier.cc",
75         "win/screen_capturer_win_magnifier.h",
76         "win/screen_capture_utils.cc",
77         "win/screen_capture_utils.h",
78         "win/window_capture_utils.cc",
79         "win/window_capture_utils.h",
80         "window_capturer.cc",
81         "window_capturer.h",
82         "window_capturer_mac.mm",
83         "window_capturer_win.cc",
84         "window_capturer_x11.cc",
85         "x11/shared_x_display.h",
86         "x11/shared_x_display.cc",
87         "x11/x_error_trap.cc",
88         "x11/x_error_trap.h",
89         "x11/x_server_pixel_buffer.cc",
90         "x11/x_server_pixel_buffer.h",
91       ],
92       'conditions': [
93         ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', {
94           'dependencies': [
95             'desktop_capture_differ_sse2',
96           ],
97         }],
98         ['use_x11 == 1', {
99           'link_settings': {
100             'libraries': [
101               '-lX11',
102               '-lXcomposite',
103               '-lXdamage',
104               '-lXext',
105               '-lXfixes',
106               '-lXrender',
107             ],
108           },
109         }],
110         ['OS!="win" and OS!="mac" and use_x11==0', {
111           'sources': [
112             "mouse_cursor_monitor_null.cc",
113             "screen_capturer_null.cc",
114             "window_capturer_null.cc",
115           ],
116         }],
117         ['OS=="mac"', {
118           'link_settings': {
119             'libraries': [
120               '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
121               '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
122               '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
123             ],
124           },
125         }],
126       ],
127     },
128   ],  # targets
129   'conditions': [
130     ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', {
131       'targets': [
132         {
133           # Have to be compiled as a separate target because it needs to be
134           # compiled with SSE2 enabled.
135           'target_name': 'desktop_capture_differ_sse2',
136           'type': 'static_library',
137           'sources': [
138             "differ_block_sse2.cc",
139             "differ_block_sse2.h",
140           ],
141           'conditions': [
142             [ 'os_posix == 1 and OS != "mac"', {
143               'cflags': [
144                 '-msse2',
145               ],
146             }],
147           ],
148         },
149       ],  # targets
150     }],
151   ],
152 }