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

Side by Side Diff: ppapi/cpp/BUILD.gn

Issue 2289983002: Remove PPAPI gyp files. (Closed)
Patch Set: visibility 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 | « ppapi/c/BUILD.gn ('k') | ppapi/native_client/native_client.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//ppapi/ppapi_sources.gni") 5 if (is_nacl) {
6 import("//build/config/nacl/config.gni")
7 }
8
9 if (is_nacl && is_nacl_glibc) {
10 cpp_target_type = "shared_library"
11 } else {
12 cpp_target_type = "static_library"
13 }
6 14
7 # Link to this target to get the PPAPI C++ wrapper objects and plugin startup 15 # Link to this target to get the PPAPI C++ wrapper objects and plugin startup
8 # code. See also "objects" below. 16 # code. See also "objects" below.
9 source_set("cpp") { 17 target(cpp_target_type, "cpp") {
18 output_name = "ppapi_cpp_lib"
19
10 sources = [ 20 sources = [
11 "module_embedder.h", 21 "module_embedder.h",
12 "ppp_entrypoints.cc", 22 "ppp_entrypoints.cc",
13 ] 23 ]
14 24
15 public_deps = [ 25 public_deps = [
16 ":objects", 26 ":objects",
17 "//ppapi/c", 27 "//ppapi/c",
18 ] 28 ]
29
30 if (is_nacl) {
31 public_deps += [ "//build/config/nacl:nacl_base" ]
32
33 if (is_nacl_glibc) {
34 # When using gcc, we hide all symbols by default, but that breaks at
35 # link time as the test executable requires symbols defined in the
36 # shared library.
37 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
38 configs += [ "//build/config/gcc:symbol_visibility_default" ]
39
40 cflags = [ "-fPIC" ]
41 } else {
42 # This library is distributed as a part of the SDK and as such has to
43 # be a static library rather than a source set.
44 complete_static_lib = true
45 }
46 }
19 } 47 }
20 48
21 # Link to this target to get only the PPAPI C++ wrapper objects but not the 49 # Link to this target to get only the PPAPI C++ wrapper objects but not the
22 # plugin startup code. Some plugins need special startup code that they supply 50 # plugin startup code. Some plugins need special startup code that they supply
23 # themselves. 51 # themselves.
24 source_set("objects") { 52 source_set("objects") {
25 sources = rebase_path(ppapi_sources.cpp_source_files, ".", "..") 53 sources = [
54 "array_output.cc",
55 "array_output.h",
56 "audio.cc",
57 "audio.h",
58 "audio_buffer.cc",
59 "audio_buffer.h",
60 "audio_config.cc",
61 "audio_config.h",
62 "audio_encoder.cc",
63 "audio_encoder.h",
64 "completion_callback.h",
65 "compositor.cc",
66 "compositor.h",
67 "compositor_layer.cc",
68 "compositor_layer.h",
69 "core.cc",
70 "core.h",
71 "directory_entry.cc",
72 "directory_entry.h",
73 "file_io.cc",
74 "file_io.h",
75 "file_ref.cc",
76 "file_ref.h",
77 "file_system.cc",
78 "file_system.h",
79 "fullscreen.cc",
80 "fullscreen.h",
81 "graphics_2d.cc",
82 "graphics_2d.h",
83 "graphics_3d.cc",
84 "graphics_3d.h",
85 "graphics_3d_client.cc",
86 "graphics_3d_client.h",
87 "host_resolver.cc",
88 "host_resolver.h",
89 "image_data.cc",
90 "image_data.h",
91 "input_event.cc",
92 "input_event.h",
93 "instance.cc",
94 "instance.h",
95 "instance_handle.cc",
96 "instance_handle.h",
97 "logging.h",
98 "media_stream_audio_track.cc",
99 "media_stream_audio_track.h",
100 "media_stream_video_track.cc",
101 "media_stream_video_track.h",
102 "message_handler.h",
103 "message_loop.cc",
104 "message_loop.h",
105 "module.cc",
106 "module.h",
107 "module_impl.h",
108 "mouse_cursor.cc",
109 "mouse_cursor.h",
110 "mouse_lock.cc",
111 "mouse_lock.h",
112 "net_address.cc",
113 "net_address.h",
114 "network_list.cc",
115 "network_list.h",
116 "network_monitor.cc",
117 "network_monitor.h",
118 "network_proxy.cc",
119 "network_proxy.h",
120 "output_traits.h",
121 "point.h",
122 "rect.cc",
123 "rect.h",
124 "resource.cc",
125 "resource.h",
126 "size.h",
127 "tcp_socket.cc",
128 "tcp_socket.h",
129 "text_input_controller.cc",
130 "text_input_controller.h",
131 "touch_point.h",
132 "udp_socket.cc",
133 "udp_socket.h",
134 "url_loader.cc",
135 "url_loader.h",
136 "url_request_info.cc",
137 "url_request_info.h",
138 "url_response_info.cc",
139 "url_response_info.h",
140 "var.cc",
141 "var.h",
142 "var_array.cc",
143 "var_array.h",
144 "var_array_buffer.cc",
145 "var_array_buffer.h",
146 "var_dictionary.cc",
147 "var_dictionary.h",
148 "video_decoder.cc",
149 "video_decoder.h",
150 "video_encoder.cc",
151 "video_encoder.h",
152 "video_frame.cc",
153 "video_frame.h",
154 "view.cc",
155 "view.h",
156 "vpn_provider.cc",
157 "vpn_provider.h",
158 "websocket.cc",
159 "websocket.h",
160
161 # Dev interfaces.
162 "dev/audio_input_dev.cc",
163 "dev/audio_input_dev.h",
164 "dev/buffer_dev.cc",
165 "dev/buffer_dev.h",
166 "dev/crypto_dev.cc",
167 "dev/crypto_dev.h",
168 "dev/cursor_control_dev.cc",
169 "dev/cursor_control_dev.h",
170 "dev/device_ref_dev.cc",
171 "dev/device_ref_dev.h",
172 "dev/file_chooser_dev.cc",
173 "dev/file_chooser_dev.h",
174 "dev/ime_input_event_dev.cc",
175 "dev/ime_input_event_dev.h",
176 "dev/memory_dev.cc",
177 "dev/memory_dev.h",
178 "dev/printing_dev.cc",
179 "dev/printing_dev.h",
180 "dev/text_input_dev.cc",
181 "dev/text_input_dev.h",
182 "dev/truetype_font_dev.cc",
183 "dev/truetype_font_dev.h",
184 "dev/url_util_dev.cc",
185 "dev/url_util_dev.h",
186 "dev/video_capture_client_dev.cc",
187 "dev/video_capture_client_dev.h",
188 "dev/video_capture_dev.cc",
189 "dev/video_capture_dev.h",
190 "dev/video_decoder_client_dev.cc",
191 "dev/video_decoder_client_dev.h",
192 "dev/video_decoder_dev.cc",
193 "dev/video_decoder_dev.h",
194 "dev/view_dev.cc",
195 "dev/view_dev.h",
196
197 # Deprecated interfaces.
198 "dev/scriptable_object_deprecated.cc",
199 "dev/scriptable_object_deprecated.h",
200
201 # Private interfaces.
202 "private/camera_capabilities_private.cc",
203 "private/camera_capabilities_private.h",
204 "private/camera_device_private.cc",
205 "private/camera_device_private.h",
206 "private/content_decryptor_private.cc",
207 "private/content_decryptor_private.h",
208 "private/ext_crx_file_system_private.cc",
209 "private/ext_crx_file_system_private.h",
210 "private/file_io_private.cc",
211 "private/file_io_private.h",
212 "private/find_private.cc",
213 "private/find_private.h",
214 "private/flash.cc",
215 "private/flash.h",
216 "private/flash_clipboard.cc",
217 "private/flash_clipboard.h",
218 "private/flash_device_id.cc",
219 "private/flash_device_id.h",
220 "private/flash_drm.cc",
221 "private/flash_drm.h",
222 "private/flash_file.cc",
223 "private/flash_file.h",
224 "private/flash_font_file.cc",
225 "private/flash_font_file.h",
226 "private/flash_fullscreen.cc",
227 "private/flash_fullscreen.h",
228 "private/flash_menu.cc",
229 "private/flash_menu.h",
230 "private/flash_message_loop.cc",
231 "private/flash_message_loop.h",
232 "private/host_resolver_private.cc",
233 "private/host_resolver_private.h",
234 "private/instance_private.cc",
235 "private/instance_private.h",
236 "private/isolated_file_system_private.cc",
237 "private/isolated_file_system_private.h",
238 "private/net_address_private.cc",
239 "private/net_address_private.h",
240 "private/output_protection_private.cc",
241 "private/output_protection_private.h",
242 "private/pass_file_handle.cc",
243 "private/pass_file_handle.h",
244 "private/pdf.cc",
245 "private/pdf.h",
246 "private/platform_verification.cc",
247 "private/platform_verification.h",
248 "private/tcp_server_socket_private.cc",
249 "private/tcp_server_socket_private.h",
250 "private/tcp_socket_private.cc",
251 "private/tcp_socket_private.h",
252 "private/udp_socket_private.cc",
253 "private/udp_socket_private.h",
254 "private/uma_private.cc",
255 "private/uma_private.h",
256 "private/var_private.cc",
257 "private/var_private.h",
258 "private/video_destination_private.cc",
259 "private/video_destination_private.h",
260 "private/video_frame_private.cc",
261 "private/video_frame_private.h",
262 "private/video_source_private.cc",
263 "private/video_source_private.h",
264 "private/x509_certificate_private.cc",
265 "private/x509_certificate_private.h",
266
267 # Trusted interfaces.
268 "trusted/browser_font_trusted.cc",
269 "trusted/browser_font_trusted.h",
270 "trusted/file_chooser_trusted.cc",
271 "trusted/file_chooser_trusted.h",
272
273 # Utility sources.
274 "../utility/completion_callback_factory.h",
275 "../utility/completion_callback_factory_thread_traits.h",
276 "../utility/graphics/paint_aggregator.cc",
277 "../utility/graphics/paint_aggregator.h",
278 "../utility/graphics/paint_manager.cc",
279 "../utility/graphics/paint_manager.h",
280 "../utility/threading/lock.cc",
281 "../utility/threading/lock.h",
282 "../utility/threading/simple_thread.cc",
283 "../utility/threading/simple_thread.h",
284 "../utility/websocket/websocket_api.cc",
285 "../utility/websocket/websocket_api.h",
286 ]
287
26 configs += [ "//build/config:precompiled_headers" ] 288 configs += [ "//build/config:precompiled_headers" ]
289
290 public_deps = [
291 "//ppapi/c",
292 ]
293
294 if (is_nacl) {
295 public_deps += [ "//build/config/nacl:nacl_base" ]
296
297 if (is_nacl_glibc) {
298 # When using gcc, we hide all symbols by default, but that breaks at
299 # link time as the test executable requires symbols defined in the
300 # shared library.
301 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
302 configs += [ "//build/config/gcc:symbol_visibility_default" ]
303
304 cflags = [ "-fPIC" ]
305 }
306 }
27 } 307 }
OLDNEW
« no previous file with comments | « ppapi/c/BUILD.gn ('k') | ppapi/native_client/native_client.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698