OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 | |
6 # Shared source lists between trusted and untrusted targets are stored in | |
7 # ppapi_sources.gypi. | |
8 | |
9 { | 5 { |
10 'includes': [ | |
11 'ppapi_sources.gypi' | |
12 ], | |
13 'targets': [ | 6 'targets': [ |
14 { | 7 { |
15 'target_name': 'ppapi_c', | 8 'target_name': 'ppapi_c', |
16 'type': 'none', | 9 'type': 'none', |
17 'all_dependent_settings': { | 10 'all_dependent_settings': { |
18 'include_dirs+': [ | 11 'include_dirs+': [ |
19 '..', | 12 '..', |
20 ], | 13 ], |
21 }, | 14 }, |
22 'sources': [ | 15 'sources': [ |
23 '<@(c_sources)', | 16 'c/pp_bool.h', |
| 17 'c/pp_completion_callback.h', |
| 18 'c/pp_errors.h', |
| 19 'c/pp_file_info.h', |
| 20 'c/pp_graphics_3d.h', |
| 21 'c/pp_input_event.h', |
| 22 'c/pp_instance.h', |
| 23 'c/pp_macros.h', |
| 24 'c/pp_module.h', |
| 25 'c/pp_point.h', |
| 26 'c/pp_rect.h', |
| 27 'c/pp_resource.h', |
| 28 'c/pp_size.h', |
| 29 'c/pp_stdint.h', |
| 30 'c/pp_time.h', |
| 31 'c/pp_var.h', |
| 32 'c/ppb.h', |
| 33 'c/ppb_audio.h', |
| 34 'c/ppb_audio_config.h', |
| 35 'c/ppb_core.h', |
| 36 'c/ppb_file_io.h', |
| 37 'c/ppb_file_ref.h', |
| 38 'c/ppb_file_system.h', |
| 39 'c/ppb_fullscreen.h', |
| 40 'c/ppb_graphics_2d.h', |
| 41 'c/ppb_graphics_3d.h', |
| 42 'c/ppb_image_data.h', |
| 43 'c/ppb_input_event.h', |
| 44 'c/ppb_instance.h', |
| 45 'c/ppb_messaging.h', |
| 46 'c/ppb_mouse_lock.h', |
| 47 'c/ppb_opengles2.h', |
| 48 'c/ppb_url_loader.h', |
| 49 'c/ppb_url_request_info.h', |
| 50 'c/ppb_url_response_info.h', |
| 51 'c/ppb_var.h', |
| 52 'c/ppp.h', |
| 53 'c/ppp_graphics_3d.h', |
| 54 'c/ppp_input_event.h', |
| 55 'c/ppp_instance.h', |
| 56 'c/ppp_messaging.h', |
| 57 'c/ppp_mouse_lock.h', |
| 58 |
| 59 # Dev interfaces. |
| 60 'c/dev/pp_cursor_type_dev.h', |
| 61 'c/dev/pp_video_dev.h', |
| 62 'c/dev/ppb_buffer_dev.h', |
| 63 'c/dev/ppb_char_set_dev.h', |
| 64 'c/dev/ppb_context_3d_dev.h', |
| 65 'c/dev/ppb_context_3d_trusted_dev.h', |
| 66 'c/dev/ppb_console_dev.h', |
| 67 'c/dev/ppb_cursor_control_dev.h', |
| 68 'c/dev/ppb_directory_reader_dev.h', |
| 69 'c/dev/ppb_file_chooser_dev.h', |
| 70 'c/dev/ppb_find_dev.h', |
| 71 'c/dev/ppb_font_dev.h', |
| 72 'c/dev/ppb_fullscreen_dev.h', |
| 73 'c/dev/ppb_ime_input_event_dev.h', |
| 74 'c/dev/ppb_memory_dev.h', |
| 75 'c/dev/ppb_scrollbar_dev.h', |
| 76 'c/dev/ppb_surface_3d_dev.h', |
| 77 'c/dev/ppb_testing_dev.h', |
| 78 'c/dev/ppb_url_util_dev.h', |
| 79 'c/dev/ppb_video_decoder_dev.h', |
| 80 'c/dev/ppb_websocket_dev.h', |
| 81 'c/dev/ppb_widget_dev.h', |
| 82 'c/dev/ppb_zoom_dev.h', |
| 83 'c/dev/ppp_cursor_control_dev.h', |
| 84 'c/dev/ppp_find_dev.h', |
| 85 'c/dev/ppp_network_state_dev.h', |
| 86 'c/dev/ppp_scrollbar_dev.h', |
| 87 'c/dev/ppp_selection_dev.h', |
| 88 'c/dev/ppb_text_input_dev.h', |
| 89 'c/dev/ppp_video_decoder_dev.h', |
| 90 'c/dev/ppp_widget_dev.h', |
| 91 'c/dev/ppp_zoom_dev.h', |
| 92 |
| 93 # Private interfaces. |
| 94 'c/private/ppb_flash.h', |
| 95 'c/private/ppb_flash_clipboard.h', |
| 96 'c/private/ppb_flash_file.h', |
| 97 'c/private/ppb_flash_fullscreen.h', |
| 98 'c/private/ppb_flash_menu.h', |
| 99 'c/private/ppb_flash_net_connector.h', |
| 100 'c/private/ppb_flash_tcp_socket.h', |
| 101 'c/private/ppb_flash_udp_socket.h', |
| 102 'c/private/ppb_gpu_blacklist_private.h', |
| 103 'c/private/ppb_instance_private.h', |
| 104 'c/private/ppb_nacl_private.h', |
| 105 'c/private/ppb_net_address_private.h', |
| 106 'c/private/ppb_pdf.h', |
| 107 'c/private/ppb_proxy_private.h', |
| 108 'c/private/ppp_instance_private.h', |
| 109 'c/private/ppb_tcp_socket_private.h', |
| 110 'c/private/ppb_udp_socket_private.h', |
| 111 |
| 112 # Deprecated interfaces. |
| 113 'c/dev/deprecated_bool.h', |
| 114 'c/dev/ppb_var_deprecated.h', |
| 115 'c/dev/ppp_class_deprecated.h', |
| 116 |
| 117 # Trusted interfaces. |
| 118 'c/trusted/ppb_audio_trusted.h', |
| 119 'c/trusted/ppb_broker_trusted.h', |
| 120 'c/trusted/ppb_buffer_trusted.h', |
| 121 'c/trusted/ppb_file_chooser_trusted.h', |
| 122 'c/trusted/ppb_file_io_trusted.h', |
| 123 'c/trusted/ppb_graphics_3d_trusted.h', |
| 124 'c/trusted/ppb_image_data_trusted.h', |
| 125 'c/trusted/ppb_url_loader_trusted.h', |
| 126 'c/trusted/ppp_broker.h', |
| 127 ], |
| 128 'conditions': [ |
| 129 ['p2p_apis==1', { |
| 130 'sources': [ |
| 131 'c/dev/ppb_transport_dev.h', |
| 132 ], |
| 133 }], |
24 ], | 134 ], |
25 }, | 135 }, |
26 { | 136 { |
27 'target_name': 'ppapi_cpp_objects', | 137 'target_name': 'ppapi_cpp_objects', |
28 'type': 'static_library', | 138 'type': 'static_library', |
29 'dependencies': [ | 139 'dependencies': [ |
30 'ppapi_c' | 140 'ppapi_c' |
31 ], | 141 ], |
32 'include_dirs+': [ | 142 'include_dirs+': [ |
33 '..', | 143 '..', |
34 ], | 144 ], |
35 'sources': [ | 145 'sources': [ |
36 '<@(cpp_sources)', | 146 'cpp/audio.cc', |
| 147 'cpp/audio.h', |
| 148 'cpp/audio_config.cc', |
| 149 'cpp/audio_config.h', |
| 150 'cpp/completion_callback.cc', |
| 151 'cpp/completion_callback.h', |
| 152 'cpp/core.cc', |
| 153 'cpp/core.h', |
| 154 'cpp/file_io.cc', |
| 155 'cpp/file_io.h', |
| 156 'cpp/file_ref.cc', |
| 157 'cpp/file_ref.h', |
| 158 'cpp/file_system.cc', |
| 159 'cpp/file_system.h', |
| 160 'cpp/fullscreen.cc', |
| 161 'cpp/fullscreen.h', |
| 162 'cpp/graphics_2d.cc', |
| 163 'cpp/graphics_2d.h', |
| 164 'cpp/graphics_3d.cc', |
| 165 'cpp/graphics_3d.h', |
| 166 'cpp/graphics_3d_client.cc', |
| 167 'cpp/graphics_3d_client.h', |
| 168 'cpp/image_data.cc', |
| 169 'cpp/image_data.h', |
| 170 'cpp/input_event.cc', |
| 171 'cpp/input_event.h', |
| 172 'cpp/instance.cc', |
| 173 'cpp/instance.h', |
| 174 'cpp/logging.h', |
| 175 'cpp/module.cc', |
| 176 'cpp/module.h', |
| 177 'cpp/module_impl.h', |
| 178 'cpp/mouse_lock.cc', |
| 179 'cpp/mouse_lock.h', |
| 180 'cpp/non_thread_safe_ref_count.h', |
| 181 'cpp/paint_aggregator.cc', |
| 182 'cpp/paint_aggregator.h', |
| 183 'cpp/paint_manager.cc', |
| 184 'cpp/paint_manager.h', |
| 185 'cpp/point.h', |
| 186 'cpp/rect.cc', |
| 187 'cpp/rect.h', |
| 188 'cpp/resource.cc', |
| 189 'cpp/resource.h', |
| 190 'cpp/size.h', |
| 191 'cpp/url_loader.cc', |
| 192 'cpp/url_loader.h', |
| 193 'cpp/url_request_info.cc', |
| 194 'cpp/url_request_info.h', |
| 195 'cpp/url_response_info.cc', |
| 196 'cpp/url_response_info.h', |
| 197 'cpp/var.cc', |
| 198 'cpp/var.h', |
| 199 |
| 200 # Dev interfaces. |
| 201 'cpp/dev/audio_input_dev.cc', |
| 202 'cpp/dev/audio_input_dev.h', |
| 203 'cpp/dev/buffer_dev.cc', |
| 204 'cpp/dev/buffer_dev.h', |
| 205 'cpp/dev/context_3d_dev.cc', |
| 206 'cpp/dev/context_3d_dev.h', |
| 207 'cpp/dev/directory_entry_dev.cc', |
| 208 'cpp/dev/directory_entry_dev.h', |
| 209 'cpp/dev/directory_reader_dev.cc', |
| 210 'cpp/dev/directory_reader_dev.h', |
| 211 'cpp/dev/file_chooser_dev.cc', |
| 212 'cpp/dev/file_chooser_dev.h', |
| 213 'cpp/dev/find_dev.cc', |
| 214 'cpp/dev/find_dev.h', |
| 215 'cpp/dev/font_dev.cc', |
| 216 'cpp/dev/font_dev.h', |
| 217 'cpp/dev/fullscreen_dev.cc', |
| 218 'cpp/dev/fullscreen_dev.h', |
| 219 'cpp/dev/ime_input_event_dev.cc', |
| 220 'cpp/dev/ime_input_event_dev.h', |
| 221 'cpp/dev/memory_dev.cc', |
| 222 'cpp/dev/memory_dev.h', |
| 223 'cpp/dev/printing_dev.cc', |
| 224 'cpp/dev/printing_dev.h', |
| 225 'cpp/dev/scrollbar_dev.cc', |
| 226 'cpp/dev/scrollbar_dev.h', |
| 227 'cpp/dev/selection_dev.cc', |
| 228 'cpp/dev/selection_dev.h', |
| 229 'cpp/dev/surface_3d_dev.cc', |
| 230 'cpp/dev/surface_3d_dev.h', |
| 231 'cpp/dev/text_input_dev.cc', |
| 232 'cpp/dev/text_input_dev.h', |
| 233 'cpp/dev/url_util_dev.cc', |
| 234 'cpp/dev/url_util_dev.h', |
| 235 'cpp/dev/video_capture_client_dev.cc', |
| 236 'cpp/dev/video_capture_client_dev.h', |
| 237 'cpp/dev/video_capture_dev.cc', |
| 238 'cpp/dev/video_capture_dev.h', |
| 239 'cpp/dev/video_decoder_client_dev.cc', |
| 240 'cpp/dev/video_decoder_client_dev.h', |
| 241 'cpp/dev/video_decoder_dev.cc', |
| 242 'cpp/dev/video_decoder_dev.h', |
| 243 'cpp/dev/widget_client_dev.cc', |
| 244 'cpp/dev/widget_client_dev.h', |
| 245 'cpp/dev/widget_dev.cc', |
| 246 'cpp/dev/widget_dev.h', |
| 247 'cpp/dev/zoom_dev.cc', |
| 248 'cpp/dev/zoom_dev.h', |
| 249 |
| 250 # Deprecated interfaces. |
| 251 'cpp/dev/scriptable_object_deprecated.h', |
| 252 'cpp/dev/scriptable_object_deprecated.cc', |
| 253 |
| 254 # Private interfaces. |
| 255 'cpp/private/flash_fullscreen.cc', |
| 256 'cpp/private/flash_fullscreen.h', |
| 257 'cpp/private/flash_menu.cc', |
| 258 'cpp/private/flash_menu.h', |
| 259 'cpp/private/flash_net_connector.cc', |
| 260 'cpp/private/flash_net_connector.h', |
| 261 'cpp/private/instance_private.cc', |
| 262 'cpp/private/instance_private.h', |
| 263 'cpp/private/net_address_private.cc', |
| 264 'cpp/private/net_address_private.h', |
| 265 'cpp/private/tcp_socket_private.cc', |
| 266 'cpp/private/tcp_socket_private.h', |
| 267 'cpp/private/udp_socket_private.cc', |
| 268 'cpp/private/udp_socket_private.h', |
| 269 'cpp/private/var_private.cc', |
| 270 'cpp/private/var_private.h', |
| 271 |
| 272 # Trusted interfaces. |
| 273 'cpp/trusted/file_chooser_trusted.cc', |
| 274 'cpp/trusted/file_chooser_trusted.h', |
37 ], | 275 ], |
38 'conditions': [ | 276 'conditions': [ |
39 ['OS=="win"', { | 277 ['OS=="win"', { |
40 'msvs_settings': { | 278 'msvs_settings': { |
41 'VCCLCompilerTool': { | 279 'VCCLCompilerTool': { |
42 'AdditionalOptions': ['/we4244'], # implicit conversion, possible
loss of data | 280 'AdditionalOptions': ['/we4244'], # implicit conversion, possible
loss of data |
43 }, | 281 }, |
44 }, | 282 }, |
45 }], | 283 }], |
46 ['OS=="linux"', { | 284 ['OS=="linux"', { |
47 'cflags': ['-Wextra', '-pedantic'], | 285 'cflags': ['-Wextra', '-pedantic'], |
48 }], | 286 }], |
49 ['OS=="mac"', { | 287 ['OS=="mac"', { |
50 'xcode_settings': { | 288 'xcode_settings': { |
51 'WARNING_CFLAGS': ['-Wextra', '-pedantic'], | 289 'WARNING_CFLAGS': ['-Wextra', '-pedantic'], |
52 }, | 290 }, |
53 }], | 291 }], |
| 292 ['p2p_apis==1', { |
| 293 'sources': [ |
| 294 'cpp/dev/transport_dev.cc', |
| 295 'cpp/dev/transport_dev.h', |
| 296 ], |
| 297 }], |
54 ], | 298 ], |
55 }, | 299 }, |
56 { | 300 { |
57 'target_name': 'ppapi_cpp', | 301 'target_name': 'ppapi_cpp', |
58 'type': 'static_library', | 302 'type': 'static_library', |
59 'dependencies': [ | 303 'dependencies': [ |
60 'ppapi_c', | 304 'ppapi_c', |
61 'ppapi_cpp_objects', | 305 'ppapi_cpp_objects', |
62 ], | 306 ], |
63 'include_dirs+': [ | 307 'include_dirs+': [ |
64 '..', | 308 '..', |
65 ], | 309 ], |
66 'sources': [ | 310 'sources': [ |
67 'cpp/module_embedder.h', | 311 'cpp/module_embedder.h', |
68 'cpp/ppp_entrypoints.cc', | 312 'cpp/ppp_entrypoints.cc', |
69 ], | 313 ], |
70 'conditions': [ | 314 'conditions': [ |
71 ['OS=="linux"', { | 315 ['OS=="linux"', { |
72 'cflags': ['-Wextra', '-pedantic'], | 316 'cflags': ['-Wextra', '-pedantic'], |
73 }], | 317 }], |
74 ['OS=="mac"', { | 318 ['OS=="mac"', { |
75 'xcode_settings': { | 319 'xcode_settings': { |
76 'WARNING_CFLAGS': ['-Wextra', '-pedantic'], | 320 'WARNING_CFLAGS': ['-Wextra', '-pedantic'], |
77 }, | 321 }, |
78 }] | 322 }] |
79 ], | 323 ], |
80 }, | 324 }, |
81 ], | 325 ], |
| 326 'conditions': [ |
| 327 ['disable_nacl!=1', { |
| 328 'targets' : [ |
| 329 { |
| 330 'target_name': 'ppapi_cpp_lib', |
| 331 'type': 'none', |
| 332 'variables': { |
| 333 'nlib_target': 'libppapi_cpp.a', |
| 334 'build_glibc': 0, |
| 335 'build_newlib': 1, |
| 336 'inst_dir': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib', |
| 337 'sources': [ |
| 338 'cpp/audio.cc', |
| 339 'cpp/audio.h', |
| 340 'cpp/audio_config.cc', |
| 341 'cpp/audio_config.h', |
| 342 'cpp/completion_callback.cc', |
| 343 'cpp/completion_callback.h', |
| 344 'cpp/core.cc', |
| 345 'cpp/core.h', |
| 346 'cpp/file_io.cc', |
| 347 'cpp/file_io.h', |
| 348 'cpp/file_ref.cc', |
| 349 'cpp/file_ref.h', |
| 350 'cpp/file_system.cc', |
| 351 'cpp/file_system.h', |
| 352 'cpp/fullscreen.cc', |
| 353 'cpp/fullscreen.h', |
| 354 'cpp/graphics_2d.cc', |
| 355 'cpp/graphics_2d.h', |
| 356 'cpp/graphics_3d.cc', |
| 357 'cpp/graphics_3d.h', |
| 358 'cpp/graphics_3d_client.cc', |
| 359 'cpp/graphics_3d_client.h', |
| 360 'cpp/image_data.cc', |
| 361 'cpp/image_data.h', |
| 362 'cpp/input_event.cc', |
| 363 'cpp/input_event.h', |
| 364 'cpp/instance.cc', |
| 365 'cpp/instance.h', |
| 366 'cpp/logging.h', |
| 367 'cpp/module.cc', |
| 368 'cpp/module.h', |
| 369 'cpp/module_impl.h', |
| 370 'cpp/mouse_lock.cc', |
| 371 'cpp/mouse_lock.h', |
| 372 'cpp/non_thread_safe_ref_count.h', |
| 373 'cpp/paint_aggregator.cc', |
| 374 'cpp/paint_aggregator.h', |
| 375 'cpp/paint_manager.cc', |
| 376 'cpp/paint_manager.h', |
| 377 'cpp/point.h', |
| 378 'cpp/rect.cc', |
| 379 'cpp/rect.h', |
| 380 'cpp/resource.cc', |
| 381 'cpp/resource.h', |
| 382 'cpp/size.h', |
| 383 'cpp/url_loader.cc', |
| 384 'cpp/url_loader.h', |
| 385 'cpp/url_request_info.cc', |
| 386 'cpp/url_request_info.h', |
| 387 'cpp/url_response_info.cc', |
| 388 'cpp/url_response_info.h', |
| 389 'cpp/var.cc', |
| 390 'cpp/var.h', |
| 391 |
| 392 # Dev interfaces. |
| 393 'cpp/dev/buffer_dev.cc', |
| 394 'cpp/dev/buffer_dev.h', |
| 395 'cpp/dev/context_3d_dev.cc', |
| 396 'cpp/dev/context_3d_dev.h', |
| 397 'cpp/dev/directory_entry_dev.cc', |
| 398 'cpp/dev/directory_entry_dev.h', |
| 399 'cpp/dev/directory_reader_dev.cc', |
| 400 'cpp/dev/directory_reader_dev.h', |
| 401 'cpp/dev/file_chooser_dev.cc', |
| 402 'cpp/dev/file_chooser_dev.h', |
| 403 'cpp/dev/find_dev.cc', |
| 404 'cpp/dev/find_dev.h', |
| 405 'cpp/dev/font_dev.cc', |
| 406 'cpp/dev/font_dev.h', |
| 407 'cpp/dev/fullscreen_dev.cc', |
| 408 'cpp/dev/fullscreen_dev.h', |
| 409 'cpp/dev/ime_input_event_dev.cc', |
| 410 'cpp/dev/ime_input_event_dev.h', |
| 411 'cpp/dev/memory_dev.cc', |
| 412 'cpp/dev/memory_dev.h', |
| 413 'cpp/dev/printing_dev.cc', |
| 414 'cpp/dev/printing_dev.h', |
| 415 'cpp/dev/scrollbar_dev.cc', |
| 416 'cpp/dev/scrollbar_dev.h', |
| 417 'cpp/dev/selection_dev.cc', |
| 418 'cpp/dev/selection_dev.h', |
| 419 'cpp/dev/surface_3d_dev.cc', |
| 420 'cpp/dev/surface_3d_dev.h', |
| 421 'cpp/dev/text_input_dev.cc', |
| 422 'cpp/dev/text_input_dev.h', |
| 423 'cpp/dev/url_util_dev.cc', |
| 424 'cpp/dev/url_util_dev.h', |
| 425 'cpp/dev/video_capture_client_dev.cc', |
| 426 'cpp/dev/video_capture_client_dev.h', |
| 427 'cpp/dev/video_capture_dev.cc', |
| 428 'cpp/dev/video_capture_dev.h', |
| 429 'cpp/dev/video_decoder_client_dev.cc', |
| 430 'cpp/dev/video_decoder_client_dev.h', |
| 431 'cpp/dev/video_decoder_dev.cc', |
| 432 'cpp/dev/video_decoder_dev.h', |
| 433 'cpp/dev/widget_client_dev.cc', |
| 434 'cpp/dev/widget_client_dev.h', |
| 435 'cpp/dev/widget_dev.cc', |
| 436 'cpp/dev/widget_dev.h', |
| 437 'cpp/dev/zoom_dev.cc', |
| 438 'cpp/dev/zoom_dev.h', |
| 439 |
| 440 # Deprecated interfaces. |
| 441 'cpp/dev/scriptable_object_deprecated.h', |
| 442 'cpp/dev/scriptable_object_deprecated.cc', |
| 443 |
| 444 # Private interfaces. |
| 445 'cpp/private/flash_fullscreen.cc', |
| 446 'cpp/private/flash_fullscreen.h', |
| 447 'cpp/private/instance_private.cc', |
| 448 'cpp/private/instance_private.h', |
| 449 'cpp/private/var_private.cc', |
| 450 'cpp/private/var_private.h', |
| 451 |
| 452 # Trusted interfaces. |
| 453 'cpp/trusted/file_chooser_trusted.cc', |
| 454 'cpp/trusted/file_chooser_trusted.h', |
| 455 |
| 456 # Entrypoints |
| 457 'cpp/module_embedder.h', |
| 458 'cpp/ppp_entrypoints.cc', |
| 459 ], |
| 460 }, |
| 461 'dependencies': [ |
| 462 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
| 463 ], |
| 464 }, |
| 465 ], |
| 466 }], |
| 467 ], |
82 } | 468 } |
OLD | NEW |