| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'targets': [ | |
| 7 { | |
| 8 'target_name': 'ppapi_example', | |
| 9 'dependencies': [ | |
| 10 'ppapi.gyp:ppapi_cpp' | |
| 11 ], | |
| 12 'xcode_settings': { | |
| 13 'INFOPLIST_FILE': 'example/Info.plist', | |
| 14 }, | |
| 15 'sources': [ | |
| 16 'example/example.cc', | |
| 17 ], | |
| 18 'conditions': [ | |
| 19 ['OS=="win"', { | |
| 20 'type': 'shared_library', | |
| 21 'sources': [ | |
| 22 'example/example.rc', | |
| 23 ], | |
| 24 'run_as': { | |
| 25 'action': [ | |
| 26 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)', | |
| 27 '--register-pepper-plugins=$(TargetPath);application/x-ppapi-examp
le', | |
| 28 'file://$(ProjectDir)/example/example.html', | |
| 29 ], | |
| 30 }, | |
| 31 }], | |
| 32 ['os_posix == 1 and OS != "mac"', { | |
| 33 'type': 'shared_library', | |
| 34 'cflags': ['-fvisibility=hidden'], | |
| 35 # -gstabs, used in the official builds, causes an ICE. Simply remove | |
| 36 # it. | |
| 37 'cflags!': ['-gstabs'], | |
| 38 }], | |
| 39 ['OS=="mac"', { | |
| 40 'type': 'loadable_module', | |
| 41 'mac_bundle': 1, | |
| 42 'product_name': 'PPAPIExample', | |
| 43 'product_extension': 'plugin', | |
| 44 'sources+': [ | |
| 45 'example/Info.plist' | |
| 46 ], | |
| 47 }], | |
| 48 ], | |
| 49 # See README for instructions on how to run and debug on the Mac. | |
| 50 #'conditions' : [ | |
| 51 # ['OS=="mac"', { | |
| 52 # 'target_name' : 'Chromium', | |
| 53 # 'type' : 'executable', | |
| 54 # 'xcode_settings' : { | |
| 55 # 'ARGUMENTS' : '--renderer-startup-dialog --internal-pepper --no-san
dbox file://${SRCROOT}/test_page.html' | |
| 56 # }, | |
| 57 # }], | |
| 58 #], | |
| 59 }, | |
| 60 { | |
| 61 'target_name': 'ppapi_tests', | |
| 62 'type': 'loadable_module', | |
| 63 'include_dirs': [ | |
| 64 'lib/gl/include', | |
| 65 ], | |
| 66 'sources': [ | |
| 67 # Common test files. | |
| 68 'tests/test_case.cc', | |
| 69 'tests/test_case.h', | |
| 70 'tests/testing_instance.cc', | |
| 71 'tests/testing_instance.h', | |
| 72 | |
| 73 # Test cases. | |
| 74 'tests/all_c_includes.h', | |
| 75 'tests/all_cpp_includes.h', | |
| 76 'tests/arch_dependent_sizes_32.h', | |
| 77 'tests/arch_dependent_sizes_64.h', | |
| 78 'tests/pp_thread.h', | |
| 79 'tests/test_broker.cc', | |
| 80 'tests/test_broker.h', | |
| 81 'tests/test_buffer.cc', | |
| 82 'tests/test_buffer.h', | |
| 83 'tests/test_c_includes.c', | |
| 84 'tests/test_char_set.cc', | |
| 85 'tests/test_char_set.h', | |
| 86 'tests/test_core.cc', | |
| 87 'tests/test_core.h', | |
| 88 'tests/test_cpp_includes.cc', | |
| 89 'tests/test_crypto.cc', | |
| 90 'tests/test_crypto.h', | |
| 91 'tests/test_cursor_control.cc', | |
| 92 'tests/test_cursor_control.h', | |
| 93 'tests/test_directory_reader.cc', | |
| 94 'tests/test_directory_reader.h', | |
| 95 'tests/test_file_io.cc', | |
| 96 'tests/test_file_io.h', | |
| 97 'tests/test_file_ref.cc', | |
| 98 'tests/test_file_ref.h', | |
| 99 'tests/test_file_system.cc', | |
| 100 'tests/test_file_system.h', | |
| 101 'tests/test_flash_clipboard.cc', | |
| 102 'tests/test_flash_clipboard.h', | |
| 103 'tests/test_flash_fullscreen.cc', | |
| 104 'tests/test_flash_fullscreen.h', | |
| 105 'tests/test_fullscreen.cc', | |
| 106 'tests/test_fullscreen.h', | |
| 107 'tests/test_graphics_2d.cc', | |
| 108 'tests/test_graphics_2d.h', | |
| 109 'tests/test_graphics_3d.cc', | |
| 110 'tests/test_graphics_3d.h', | |
| 111 'tests/test_image_data.cc', | |
| 112 'tests/test_image_data.h', | |
| 113 'tests/test_memory.cc', | |
| 114 'tests/test_memory.h', | |
| 115 'tests/test_net_address_private.cc', | |
| 116 'tests/test_net_address_private.h', | |
| 117 'tests/test_paint_aggregator.cc', | |
| 118 'tests/test_paint_aggregator.h', | |
| 119 'tests/test_post_message.cc', | |
| 120 'tests/test_post_message.h', | |
| 121 'tests/test_scrollbar.cc', | |
| 122 'tests/test_scrollbar.h', | |
| 123 'tests/test_struct_sizes.c', | |
| 124 'tests/test_tcp_socket_private.cc', | |
| 125 'tests/test_tcp_socket_private.h', | |
| 126 'tests/test_uma.cc', | |
| 127 'tests/test_uma.h', | |
| 128 'tests/test_url_loader.cc', | |
| 129 'tests/test_url_loader.h', | |
| 130 'tests/test_url_util.cc', | |
| 131 'tests/test_url_util.h', | |
| 132 'tests/test_utils.cc', | |
| 133 'tests/test_utils.h', | |
| 134 'tests/test_var.cc', | |
| 135 'tests/test_var.h', | |
| 136 'tests/test_video_decoder.cc', | |
| 137 'tests/test_video_decoder.h', | |
| 138 | |
| 139 # Deprecated test cases. | |
| 140 'tests/test_instance_deprecated.cc', | |
| 141 'tests/test_instance_deprecated.h', | |
| 142 'tests/test_var_deprecated.cc', | |
| 143 'tests/test_var_deprecated.h', | |
| 144 ], | |
| 145 'dependencies': [ | |
| 146 'ppapi.gyp:ppapi_cpp', | |
| 147 'ppapi_internal.gyp:ppapi_shared', | |
| 148 ], | |
| 149 'run_as': { | |
| 150 'action': [ | |
| 151 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)', | |
| 152 '--enable-pepper-testing', | |
| 153 '--enable-accelerated-plugins', | |
| 154 '--register-pepper-plugins=$(TargetPath);application/x-ppapi-tests', | |
| 155 'file://$(ProjectDir)/tests/test_case.html?testcase=', | |
| 156 ], | |
| 157 }, | |
| 158 'conditions': [ | |
| 159 ['OS=="win"', { | |
| 160 'defines': [ | |
| 161 '_CRT_SECURE_NO_DEPRECATE', | |
| 162 '_CRT_NONSTDC_NO_WARNINGS', | |
| 163 '_CRT_NONSTDC_NO_DEPRECATE', | |
| 164 '_SCL_SECURE_NO_DEPRECATE', | |
| 165 ], | |
| 166 }], | |
| 167 ['OS=="mac"', { | |
| 168 'mac_bundle': 1, | |
| 169 'product_name': 'ppapi_tests', | |
| 170 'product_extension': 'plugin', | |
| 171 }], | |
| 172 ['p2p_apis==1', { | |
| 173 'sources': [ | |
| 174 'tests/test_transport.cc', | |
| 175 'tests/test_transport.h', | |
| 176 ], | |
| 177 }], | |
| 178 ], | |
| 179 # TODO(dmichael): Figure out what is wrong with the script on Windows and add | |
| 180 # it as an automated action. | |
| 181 # 'actions': [ | |
| 182 # { | |
| 183 # 'action_name': 'generate_ppapi_include_tests', | |
| 184 # 'inputs': [], | |
| 185 # 'outputs': [ | |
| 186 # 'tests/test_c_includes.c', | |
| 187 # 'tests/test_cc_includes.cc', | |
| 188 # ], | |
| 189 # 'action': [ | |
| 190 # '<!@(python generate_ppapi_include_tests.py)', | |
| 191 # ], | |
| 192 # }, | |
| 193 # ], | |
| 194 }, | |
| 195 { | |
| 196 'target_name': 'ppapi_unittests', | |
| 197 'type': 'executable', | |
| 198 'variables': { | |
| 199 'chromium_code': 1, | |
| 200 }, | |
| 201 'dependencies': [ | |
| 202 'ppapi_proxy', | |
| 203 'ppapi_shared', | |
| 204 '../base/base.gyp:test_support_base', | |
| 205 '../gpu/gpu.gyp:gpu_ipc', | |
| 206 '../ipc/ipc.gyp:ipc', | |
| 207 '../ipc/ipc.gyp:test_support_ipc', | |
| 208 '../testing/gmock.gyp:gmock', | |
| 209 '../testing/gtest.gyp:gtest', | |
| 210 '../ui/gfx/surface/surface.gyp:surface', | |
| 211 ], | |
| 212 'sources': [ | |
| 213 'proxy/run_all_unittests.cc', | |
| 214 | |
| 215 'proxy/mock_resource.cc', | |
| 216 'proxy/mock_resource.h', | |
| 217 'proxy/plugin_dispatcher_unittest.cc', | |
| 218 'proxy/plugin_resource_tracker_unittest.cc', | |
| 219 'proxy/plugin_var_tracker_unittest.cc', | |
| 220 'proxy/ppapi_proxy_test.cc', | |
| 221 'proxy/ppapi_proxy_test.h', | |
| 222 'proxy/ppb_var_unittest.cc', | |
| 223 'proxy/ppp_instance_private_proxy_unittest.cc', | |
| 224 'proxy/ppp_instance_proxy_unittest.cc', | |
| 225 'proxy/ppp_messaging_proxy_unittest.cc', | |
| 226 'proxy/serialized_var_unittest.cc', | |
| 227 'shared_impl/resource_tracker_unittest.cc', | |
| 228 'shared_impl/test_globals.cc', | |
| 229 'shared_impl/test_globals.h', | |
| 230 ], | |
| 231 }, | |
| 232 { | |
| 233 'target_name': 'ppapi_example_skeleton', | |
| 234 'suppress_wildcard': 1, | |
| 235 'type': 'none', | |
| 236 'direct_dependent_settings': { | |
| 237 'product_name': '>(_target_name)', | |
| 238 'conditions': [ | |
| 239 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" or OS
=="android"', { | |
| 240 'cflags': ['-fvisibility=hidden'], | |
| 241 'type': 'shared_library', | |
| 242 # -gstabs, used in the official builds, causes an ICE. Simply remove | |
| 243 # it. | |
| 244 'cflags!': ['-gstabs'], | |
| 245 }], | |
| 246 ['OS=="win"', { | |
| 247 'type': 'shared_library', | |
| 248 }], | |
| 249 ['OS=="mac"', { | |
| 250 'type': 'loadable_module', | |
| 251 'mac_bundle': 1, | |
| 252 'product_extension': 'plugin', | |
| 253 'xcode_settings': { | |
| 254 'OTHER_LDFLAGS': [ | |
| 255 # Not to strip important symbols by -Wl,-dead_strip. | |
| 256 '-Wl,-exported_symbol,_PPP_GetInterface', | |
| 257 '-Wl,-exported_symbol,_PPP_InitializeModule', | |
| 258 '-Wl,-exported_symbol,_PPP_ShutdownModule' | |
| 259 ]}, | |
| 260 }], | |
| 261 ], | |
| 262 }, | |
| 263 }, | |
| 264 { | |
| 265 'target_name': 'ppapi_example_mouse_lock', | |
| 266 'dependencies': [ | |
| 267 'ppapi_example_skeleton', | |
| 268 'ppapi.gyp:ppapi_cpp', | |
| 269 ], | |
| 270 'sources': [ | |
| 271 'examples/mouse_lock/mouse_lock.cc', | |
| 272 ], | |
| 273 }, | |
| 274 | |
| 275 { | |
| 276 'target_name': 'ppapi_example_c_stub', | |
| 277 'dependencies': [ | |
| 278 'ppapi_example_skeleton', | |
| 279 'ppapi.gyp:ppapi_c', | |
| 280 ], | |
| 281 'sources': [ | |
| 282 'examples/stub/stub.c', | |
| 283 ], | |
| 284 }, | |
| 285 { | |
| 286 'target_name': 'ppapi_example_cc_stub', | |
| 287 'dependencies': [ | |
| 288 'ppapi_example_skeleton', | |
| 289 'ppapi.gyp:ppapi_cpp', | |
| 290 ], | |
| 291 'sources': [ | |
| 292 'examples/stub/stub.cc', | |
| 293 ], | |
| 294 }, | |
| 295 { | |
| 296 'target_name': 'ppapi_example_audio', | |
| 297 'dependencies': [ | |
| 298 'ppapi_example_skeleton', | |
| 299 'ppapi.gyp:ppapi_cpp', | |
| 300 ], | |
| 301 'sources': [ | |
| 302 'examples/audio/audio.cc', | |
| 303 ], | |
| 304 }, | |
| 305 { | |
| 306 'target_name': 'ppapi_example_file_chooser', | |
| 307 'dependencies': [ | |
| 308 'ppapi_example_skeleton', | |
| 309 'ppapi.gyp:ppapi_cpp', | |
| 310 ], | |
| 311 'sources': [ | |
| 312 'examples/file_chooser/file_chooser.cc', | |
| 313 ], | |
| 314 }, | |
| 315 { | |
| 316 'target_name': 'ppapi_example_graphics_2d', | |
| 317 'dependencies': [ | |
| 318 'ppapi_example_skeleton', | |
| 319 'ppapi.gyp:ppapi_c', | |
| 320 ], | |
| 321 'sources': [ | |
| 322 'examples/2d/graphics_2d_example.c', | |
| 323 ], | |
| 324 }, | |
| 325 { | |
| 326 'target_name': 'ppapi_example_ime', | |
| 327 'dependencies': [ | |
| 328 'ppapi_example_skeleton', | |
| 329 'ppapi.gyp:ppapi_cpp', | |
| 330 ], | |
| 331 'sources': [ | |
| 332 'examples/ime/ime.cc', | |
| 333 ], | |
| 334 }, | |
| 335 { | |
| 336 'target_name': 'ppapi_example_paint_manager', | |
| 337 'dependencies': [ | |
| 338 'ppapi_example_skeleton', | |
| 339 'ppapi.gyp:ppapi_cpp', | |
| 340 ], | |
| 341 'sources': [ | |
| 342 'examples/2d/paint_manager_example.cc', | |
| 343 ], | |
| 344 }, | |
| 345 { | |
| 346 'target_name': 'ppapi_example_post_message', | |
| 347 'dependencies': [ | |
| 348 'ppapi_example_skeleton', | |
| 349 'ppapi.gyp:ppapi_cpp', | |
| 350 ], | |
| 351 'sources': [ | |
| 352 'examples/scripting/post_message.cc', | |
| 353 ], | |
| 354 }, | |
| 355 { | |
| 356 'target_name': 'ppapi_example_scroll', | |
| 357 'dependencies': [ | |
| 358 'ppapi_example_skeleton', | |
| 359 'ppapi.gyp:ppapi_cpp', | |
| 360 ], | |
| 361 'sources': [ | |
| 362 'examples/2d/scroll.cc', | |
| 363 ], | |
| 364 }, | |
| 365 { | |
| 366 'target_name': 'ppapi_example_simple_font', | |
| 367 'dependencies': [ | |
| 368 'ppapi_example_skeleton', | |
| 369 'ppapi.gyp:ppapi_cpp', | |
| 370 ], | |
| 371 'sources': [ | |
| 372 'examples/font/simple_font.cc', | |
| 373 ], | |
| 374 }, | |
| 375 { | |
| 376 'target_name': 'ppapi_example_url_loader', | |
| 377 'dependencies': [ | |
| 378 'ppapi_example_skeleton', | |
| 379 'ppapi.gyp:ppapi_cpp', | |
| 380 ], | |
| 381 'sources': [ | |
| 382 'examples/url_loader/streaming.cc', | |
| 383 ], | |
| 384 }, | |
| 385 { | |
| 386 'target_name': 'ppapi_example_gles2', | |
| 387 'dependencies': [ | |
| 388 'ppapi_example_skeleton', | |
| 389 'ppapi.gyp:ppapi_cpp', | |
| 390 'ppapi.gyp:ppapi_gles2', | |
| 391 'ppapi.gyp:ppapi_egl', | |
| 392 ], | |
| 393 'include_dirs': [ | |
| 394 'lib/gl/include', | |
| 395 ], | |
| 396 'sources': [ | |
| 397 'examples/gles2/gles2.cc', | |
| 398 'examples/gles2/testdata.h', | |
| 399 ], | |
| 400 }, | |
| 401 { | |
| 402 'target_name': 'ppapi_example_vc', | |
| 403 'dependencies': [ | |
| 404 'ppapi_example_skeleton', | |
| 405 'ppapi.gyp:ppapi_cpp', | |
| 406 'ppapi.gyp:ppapi_gles2', | |
| 407 'ppapi.gyp:ppapi_egl', | |
| 408 ], | |
| 409 'include_dirs': [ | |
| 410 'lib/gl/include', | |
| 411 ], | |
| 412 'sources': [ | |
| 413 'examples/video_capture/video_capture.cc', | |
| 414 ], | |
| 415 }, | |
| 416 ], | |
| 417 } | |
| OLD | NEW |