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