Revert of Add missing runtime dependencies to *_run targets. (patchset #1 id:40001...
[chromium-blink-merge.git] / ppapi / thunk / BUILD.gn
blobb4adef91aaf1d26fd4a67f9ca6072b49a680736c
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 source_set("thunk") {
6   # In GYP this is the same target as shared_impl. In GN these are split apart
7   # for clarity but to get component builds correct, targets must only depend
8   # on these via the shared_impl component.
9   # TODO(brettw) separate these when GYP compat is no longer required.
10   visibility = [ "//ppapi/shared_impl" ]
12   sources = [
13     "enter.cc",
14     "enter.h",
15     "ppb_audio_api.h",
16     "ppb_audio_buffer_api.h",
17     "ppb_audio_buffer_thunk.cc",
18     "ppb_audio_config_api.h",
19     "ppb_audio_config_thunk.cc",
20     "ppb_audio_input_api.h",
21     "ppb_audio_thunk.cc",
22     "ppb_broker_api.h",
23     "ppb_browser_font_trusted_api.h",
24     "ppb_buffer_api.h",
25     "ppb_camera_capabilities_api.h",
26     "ppb_camera_capabilities_private_thunk.cc",
27     "ppb_camera_device_api.h",
28     "ppb_camera_device_private_thunk.cc",
29     "ppb_compositor_api.h",
30     "ppb_compositor_layer_api.h",
31     "ppb_compositor_layer_thunk.cc",
32     "ppb_compositor_thunk.cc",
33     "ppb_console_thunk.cc",
34     "ppb_cursor_control_thunk.cc",
35     "ppb_device_ref_api.h",
36     "ppb_device_ref_dev_thunk.cc",
37     "ppb_ext_crx_file_system_private_thunk.cc",
38     "ppb_file_chooser_api.h",
39     "ppb_file_chooser_dev_thunk.cc",
40     "ppb_file_chooser_trusted_thunk.cc",
41     "ppb_file_io_api.h",
42     "ppb_file_io_private_thunk.cc",
43     "ppb_file_io_thunk.cc",
44     "ppb_file_ref_api.h",
45     "ppb_file_ref_thunk.cc",
46     "ppb_file_system_api.h",
47     "ppb_file_system_thunk.cc",
48     "ppb_find_private_thunk.cc",
49     "ppb_flash_clipboard_api.h",
50     "ppb_flash_drm_api.h",
51     "ppb_flash_font_file_api.h",
52     "ppb_flash_fullscreen_api.h",
53     "ppb_flash_functions_api.h",
54     "ppb_flash_menu_api.h",
55     "ppb_flash_message_loop_api.h",
56     "ppb_flash_print_thunk.cc",
57     "ppb_fullscreen_thunk.cc",
58     "ppb_gamepad_api.h",
59     "ppb_gamepad_thunk.cc",
60     "ppb_graphics_2d_api.h",
61     "ppb_graphics_2d_thunk.cc",
62     "ppb_graphics_3d_api.h",
63     "ppb_graphics_3d_thunk.cc",
64     "ppb_host_resolver_api.h",
65     "ppb_host_resolver_private_api.h",
66     "ppb_host_resolver_private_thunk.cc",
67     "ppb_host_resolver_thunk.cc",
68     "ppb_image_data_api.h",
69     "ppb_image_data_thunk.cc",
70     "ppb_input_event_api.h",
71     "ppb_input_event_thunk.cc",
72     "ppb_instance_api.h",
73     "ppb_instance_private_thunk.cc",
74     "ppb_instance_thunk.cc",
75     "ppb_isolated_file_system_private_api.h",
76     "ppb_isolated_file_system_private_thunk.cc",
77     "ppb_media_stream_audio_track_api.h",
78     "ppb_media_stream_audio_track_thunk.cc",
79     "ppb_media_stream_video_track_api.h",
80     "ppb_media_stream_video_track_thunk.cc",
81     "ppb_message_loop_api.h",
82     "ppb_messaging_thunk.cc",
83     "ppb_mouse_cursor_thunk.cc",
84     "ppb_mouse_lock_thunk.cc",
85     "ppb_net_address_api.h",
86     "ppb_net_address_thunk.cc",
87     "ppb_network_list_api.h",
88     "ppb_network_list_thunk.cc",
89     "ppb_network_monitor_api.h",
90     "ppb_network_monitor_thunk.cc",
91     "ppb_network_proxy_api.h",
92     "ppb_network_proxy_thunk.cc",
93     "ppb_output_protection_api.h",
94     "ppb_output_protection_private_thunk.cc",
95     "ppb_pdf_api.h",
96     "ppb_platform_verification_api.h",
97     "ppb_printing_api.h",
98     "ppb_printing_dev_thunk.cc",
99     "ppb_tcp_server_socket_private_api.h",
100     "ppb_tcp_server_socket_private_thunk.cc",
101     "ppb_tcp_socket_api.h",
102     "ppb_tcp_socket_private_api.h",
103     "ppb_tcp_socket_private_thunk.cc",
104     "ppb_tcp_socket_thunk.cc",
105     "ppb_text_input_thunk.cc",
106     "ppb_truetype_font_api.h",
107     "ppb_truetype_font_dev_thunk.cc",
108     "ppb_truetype_font_singleton_api.h",
109     "ppb_udp_socket_api.h",
110     "ppb_udp_socket_private_api.h",
111     "ppb_udp_socket_private_thunk.cc",
112     "ppb_udp_socket_thunk.cc",
113     "ppb_uma_private_thunk.cc",
114     "ppb_uma_singleton_api.h",
115     "ppb_url_loader_api.h",
116     "ppb_url_loader_thunk.cc",
117     "ppb_url_loader_trusted_thunk.cc",
118     "ppb_url_request_info_api.h",
119     "ppb_url_request_info_thunk.cc",
120     "ppb_url_response_info_api.h",
121     "ppb_url_response_info_thunk.cc",
122     "ppb_var_array_thunk.cc",
123     "ppb_var_dictionary_thunk.cc",
124     "ppb_video_capture_api.h",
125     "ppb_video_decoder_api.h",
126     "ppb_video_decoder_dev_api.h",
127     "ppb_video_decoder_thunk.cc",
128     "ppb_video_destination_private_api.h",
129     "ppb_video_destination_private_thunk.cc",
130     "ppb_video_encoder_api.h",
131     "ppb_video_encoder_thunk.cc",
132     "ppb_video_frame_api.h",
133     "ppb_video_frame_thunk.cc",
134     "ppb_video_source_private_api.h",
135     "ppb_video_source_private_thunk.cc",
136     "ppb_view_api.h",
137     "ppb_view_dev_thunk.cc",
138     "ppb_view_thunk.cc",
139     "ppb_websocket_api.h",
140     "ppb_websocket_thunk.cc",
141     "ppb_x509_certificate_private_api.h",
142     "ppb_x509_certificate_private_thunk.cc",
143     "thunk.h",
144   ]
146   if (!is_nacl) {
147     sources += [
148       "ppb_audio_input_dev_thunk.cc",
149       "ppb_broker_thunk.cc",
150       "ppb_browser_font_trusted_thunk.cc",
151       "ppb_buffer_thunk.cc",
152       "ppb_char_set_thunk.cc",
153       "ppb_content_decryptor_private_thunk.cc",
154       "ppb_flash_clipboard_thunk.cc",
155       "ppb_flash_device_id_thunk.cc",
156       "ppb_flash_drm_thunk.cc",
157       "ppb_flash_file_fileref_thunk.cc",
158       "ppb_flash_file_modulelocal_thunk.cc",
159       "ppb_flash_font_file_thunk.cc",
160       "ppb_flash_fullscreen_thunk.cc",
161       "ppb_flash_menu_thunk.cc",
162       "ppb_flash_message_loop_thunk.cc",
163       "ppb_flash_thunk.cc",
164       "ppb_gles_chromium_texture_mapping_thunk.cc",
165       "ppb_pdf_thunk.cc",
166       "ppb_platform_verification_private_thunk.cc",
167       "ppb_url_util_thunk.cc",
168       "ppb_video_capture_thunk.cc",
169       "ppb_video_decoder_dev_thunk.cc",
170     ]
171   }
173   # We exclude a few more things for nacl_win64, to avoid pulling in more
174   # dependencies.
175   # TODO(GYP) this isn't correct. This should only be specifically for the
176   # nacl_win64 build (cross-compiled for a 32-bit Chrome), rather than all
177   # 64-bit builds.
178   # See also //ppapi/shared_impl
179   if (is_win && current_cpu == "x64" && current_toolchain != default_toolchain) {
180     sources += [
181       "ppb_graphics_3d_thunk.cc",
182       "ppb_host_resolver_private_thunk.cc",
183       "ppb_tcp_server_socket_private_thunk.cc",
184       "ppb_tcp_socket_private_thunk.cc",
185       "ppb_udp_socket_private_thunk.cc",
186       "ppb_x509_certificate_private_thunk.cc",
187     ]
188   }
190   configs += [ "//build/config:precompiled_headers" ]
191   defines = [
192     # This target goes in the same library as shared_impl (in GYP they are the
193     # same).
194     "PPAPI_SHARED_IMPLEMENTATION",
196     "PPAPI_THUNK_IMPLEMENTATION",
197   ]