diff options
author | brettw <brettw@chromium.org> | 2015-02-13 22:54:16 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-14 06:54:47 +0000 |
commit | 2f79efe67a47c353ba79093d5117cae682523ad2 (patch) | |
tree | 07ee36246ee3358ff4962e953fc5b1790e180f44 | |
parent | 2412ce5af49efc38006c6aeb1b276227c02e02e4 (diff) | |
download | chromium_src-2f79efe67a47c353ba79093d5117cae682523ad2.zip chromium_src-2f79efe67a47c353ba79093d5117cae682523ad2.tar.gz chromium_src-2f79efe67a47c353ba79093d5117cae682523ad2.tar.bz2 |
Implement the rest of the PPAPI examples in the GN build.
This adds the "threading" example which was unreferenced in the GYP build, despite existing and compiling OK.
Review URL: https://codereview.chromium.org/921993002
Cr-Commit-Position: refs/heads/master@{#316379}
29 files changed, 562 insertions, 2 deletions
diff --git a/ppapi/examples/2d/BUILD.gn b/ppapi/examples/2d/BUILD.gn new file mode 100644 index 0000000..94b8ed6 --- /dev/null +++ b/ppapi/examples/2d/BUILD.gn @@ -0,0 +1,44 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +group("2d") { + testonly = true + deps = [ + ":graphics_2d", + ":paint_manager", + ":scroll", + ] +} + +ppapi_example("graphics_2d") { + output_name = "ppapi_example_graphics_2d" + sources = [ + "graphics_2d_example.c", + ] + deps = [ + "//ppapi/c", + ] +} + +ppapi_example("paint_manager") { + output_name = "ppapi_example_paint_manager" + sources = [ + "paint_manager_example.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} + +ppapi_example("scroll") { + output_name = "ppapi_example_scroll" + sources = [ + "scroll.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/examples/BUILD.gn b/ppapi/examples/BUILD.gn index db7b2e1..fedb176 100644 --- a/ppapi/examples/BUILD.gn +++ b/ppapi/examples/BUILD.gn @@ -5,6 +5,32 @@ group("examples") { testonly = true deps = [ + "//ppapi/examples/2d", "//ppapi/examples/audio", + "//ppapi/examples/audio_input", + "//ppapi/examples/compositor", + "//ppapi/examples/crxfs", + "//ppapi/examples/enumerate_devices", + "//ppapi/examples/file_chooser", + "//ppapi/examples/flash_topmost", + "//ppapi/examples/font", + "//ppapi/examples/gamepad", + "//ppapi/examples/gles2", + "//ppapi/examples/gles2_spinning_cube", + "//ppapi/examples/ime", + "//ppapi/examples/input", + "//ppapi/examples/media_stream_audio", + "//ppapi/examples/media_stream_video", + "//ppapi/examples/mouse_cursor", + "//ppapi/examples/mouse_lock", + "//ppapi/examples/printing", + "//ppapi/examples/scaling", + "//ppapi/examples/scripting", + "//ppapi/examples/stub", + "//ppapi/examples/threading", + "//ppapi/examples/url_loader", + "//ppapi/examples/video_capture", + "//ppapi/examples/video_decode", + "//ppapi/examples/video_effects", ] } diff --git a/ppapi/examples/audio_input/BUILD.gn b/ppapi/examples/audio_input/BUILD.gn new file mode 100644 index 0000000..ac11766 --- /dev/null +++ b/ppapi/examples/audio_input/BUILD.gn @@ -0,0 +1,15 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("audio_input") { + output_name = "ppapi_example_audio_input" + sources = [ + "audio_input.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/examples/compositor/BUILD.gn b/ppapi/examples/compositor/BUILD.gn new file mode 100644 index 0000000..d7007a1 --- /dev/null +++ b/ppapi/examples/compositor/BUILD.gn @@ -0,0 +1,18 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("compositor") { + output_name = "ppapi_example_compositor" + sources = [ + "compositor.cc", + "spinning_cube.cc", + "spinning_cube.h", + ] + deps = [ + "//ppapi/cpp", + "//ppapi/lib/gl/gles2", + ] +} diff --git a/ppapi/examples/crxfs/BUILD.gn b/ppapi/examples/crxfs/BUILD.gn new file mode 100644 index 0000000..f038c04 --- /dev/null +++ b/ppapi/examples/crxfs/BUILD.gn @@ -0,0 +1,15 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("crxfs") { + output_name = "ppapi_example_crxfs" + sources = [ + "crxfs.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/examples/enumerate_devices/BUILD.gn b/ppapi/examples/enumerate_devices/BUILD.gn new file mode 100644 index 0000000..c7d79d9 --- /dev/null +++ b/ppapi/examples/enumerate_devices/BUILD.gn @@ -0,0 +1,15 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("enumerate_devices") { + output_name = "ppapi_example_enumerate_devices" + sources = [ + "enumerate_devices.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/examples/file_chooser/BUILD.gn b/ppapi/examples/file_chooser/BUILD.gn new file mode 100644 index 0000000..d7b6476 --- /dev/null +++ b/ppapi/examples/file_chooser/BUILD.gn @@ -0,0 +1,15 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("file_chooser") { + output_name = "ppapi_example_file_chooser" + sources = [ + "file_chooser.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/examples/flash_topmost/BUILD.gn b/ppapi/examples/flash_topmost/BUILD.gn new file mode 100644 index 0000000..a0ec348 --- /dev/null +++ b/ppapi/examples/flash_topmost/BUILD.gn @@ -0,0 +1,15 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("flash_topmost") { + output_name = "ppapi_example_flash_topmost" + sources = [ + "flash_topmost.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/examples/font/BUILD.gn b/ppapi/examples/font/BUILD.gn new file mode 100644 index 0000000..632a428 --- /dev/null +++ b/ppapi/examples/font/BUILD.gn @@ -0,0 +1,15 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("font") { + output_name = "ppapi_example_simple_font" + sources = [ + "simple_font.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/examples/gamepad/BUILD.gn b/ppapi/examples/gamepad/BUILD.gn new file mode 100644 index 0000000..b928c93 --- /dev/null +++ b/ppapi/examples/gamepad/BUILD.gn @@ -0,0 +1,15 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("gamepad") { + output_name = "ppapi_example_gamepad" + sources = [ + "gamepad.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/examples/gles2/BUILD.gn b/ppapi/examples/gles2/BUILD.gn new file mode 100644 index 0000000..4a86017 --- /dev/null +++ b/ppapi/examples/gles2/BUILD.gn @@ -0,0 +1,16 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("gles2") { + output_name = "ppapi_example_gles2" + sources = [ + "gles2.cc", + ] + deps = [ + "//ppapi/cpp", + "//ppapi/lib/gl/gles2", + ] +} diff --git a/ppapi/examples/gles2_spinning_cube/BUILD.gn b/ppapi/examples/gles2_spinning_cube/BUILD.gn new file mode 100644 index 0000000..26d1ecf --- /dev/null +++ b/ppapi/examples/gles2_spinning_cube/BUILD.gn @@ -0,0 +1,18 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("gles2_spinning_cube") { + output_name = "ppapi_example_gles2_spinning_cube" + sources = [ + "gles2_spinning_cube.cc", + "spinning_cube.cc", + "spinning_cube.h", + ] + deps = [ + "//ppapi/cpp", + "//ppapi/lib/gl/gles2", + ] +} diff --git a/ppapi/examples/ime/BUILD.gn b/ppapi/examples/ime/BUILD.gn new file mode 100644 index 0000000..79b4a9e --- /dev/null +++ b/ppapi/examples/ime/BUILD.gn @@ -0,0 +1,15 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("ime") { + output_name = "ppapi_example_ime" + sources = [ + "ime.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/examples/input/BUILD.gn b/ppapi/examples/input/BUILD.gn new file mode 100644 index 0000000..38340f9 --- /dev/null +++ b/ppapi/examples/input/BUILD.gn @@ -0,0 +1,15 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("input") { + output_name = "ppapi_example_input" + sources = [ + "pointer_event_input.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/examples/media_stream_audio/BUILD.gn b/ppapi/examples/media_stream_audio/BUILD.gn new file mode 100644 index 0000000..39a8ae9 --- /dev/null +++ b/ppapi/examples/media_stream_audio/BUILD.gn @@ -0,0 +1,15 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("media_stream_audio") { + output_name = "ppapi_example_media_stream_audio" + sources = [ + "media_stream_audio.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/examples/media_stream_video/BUILD.gn b/ppapi/examples/media_stream_video/BUILD.gn new file mode 100644 index 0000000..578e8f6 --- /dev/null +++ b/ppapi/examples/media_stream_video/BUILD.gn @@ -0,0 +1,16 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("media_stream_video") { + output_name = "ppapi_example_media_stream_video" + sources = [ + "media_stream_video.cc", + ] + deps = [ + "//ppapi/cpp", + "//ppapi/lib/gl/gles2", + ] +} diff --git a/ppapi/examples/mouse_cursor/BUILD.gn b/ppapi/examples/mouse_cursor/BUILD.gn new file mode 100644 index 0000000..03d2a19 --- /dev/null +++ b/ppapi/examples/mouse_cursor/BUILD.gn @@ -0,0 +1,15 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("mouse_cursor") { + output_name = "ppapi_example_mouse_cursor" + sources = [ + "mouse_cursor.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/examples/mouse_lock/BUILD.gn b/ppapi/examples/mouse_lock/BUILD.gn new file mode 100644 index 0000000..7b98278 --- /dev/null +++ b/ppapi/examples/mouse_lock/BUILD.gn @@ -0,0 +1,15 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("mouse_lock") { + output_name = "ppapi_example_mouse_lock" + sources = [ + "mouse_lock.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/examples/printing/BUILD.gn b/ppapi/examples/printing/BUILD.gn new file mode 100644 index 0000000..64c950d --- /dev/null +++ b/ppapi/examples/printing/BUILD.gn @@ -0,0 +1,15 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("printing") { + output_name = "ppapi_example_printing" + sources = [ + "printing.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/examples/scaling/BUILD.gn b/ppapi/examples/scaling/BUILD.gn new file mode 100644 index 0000000..fdc42e0a --- /dev/null +++ b/ppapi/examples/scaling/BUILD.gn @@ -0,0 +1,15 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("scaling") { + output_name = "ppapi_example_scaling" + sources = [ + "scaling.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/examples/scripting/BUILD.gn b/ppapi/examples/scripting/BUILD.gn new file mode 100644 index 0000000..f57e73f --- /dev/null +++ b/ppapi/examples/scripting/BUILD.gn @@ -0,0 +1,15 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("scripting") { + output_name = "ppapi_example_post_message" + sources = [ + "post_message.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/examples/stub/BUILD.gn b/ppapi/examples/stub/BUILD.gn new file mode 100644 index 0000000..9d2a452 --- /dev/null +++ b/ppapi/examples/stub/BUILD.gn @@ -0,0 +1,33 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +group("stub") { + testonly = true + deps = [ + ":c_stub", + ":cc_stub", + ] +} + +ppapi_example("c_stub") { + output_name = "ppapi_example_c_stub" + sources = [ + "stub.c", + ] + deps = [ + "//ppapi/c", + ] +} + +ppapi_example("cc_stub") { + output_name = "ppapi_example_cc_stub" + sources = [ + "stub.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/examples/threading/BUILD.gn b/ppapi/examples/threading/BUILD.gn new file mode 100644 index 0000000..8861dd8 --- /dev/null +++ b/ppapi/examples/threading/BUILD.gn @@ -0,0 +1,15 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("threading") { + output_name = "ppapi_example_threading" + sources = [ + "threading.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/examples/url_loader/BUILD.gn b/ppapi/examples/url_loader/BUILD.gn new file mode 100644 index 0000000..693325a --- /dev/null +++ b/ppapi/examples/url_loader/BUILD.gn @@ -0,0 +1,33 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +group("url_loader") { + testonly = true + deps = [ + ":file", + ":streaming", + ] +} + +ppapi_example("file") { + output_name = "ppapi_example_url_loader" + sources = [ + "streaming.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} + +ppapi_example("streaming") { + output_name = "ppapi_example_file" + sources = [ + "stream_to_file.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/examples/video_capture/BUILD.gn b/ppapi/examples/video_capture/BUILD.gn new file mode 100644 index 0000000..ab48184 --- /dev/null +++ b/ppapi/examples/video_capture/BUILD.gn @@ -0,0 +1,16 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("video_capture") { + output_name = "ppapi_example_vc" + sources = [ + "video_capture.cc", + ] + deps = [ + "//ppapi/cpp", + "//ppapi/lib/gl/gles2", + ] +} diff --git a/ppapi/examples/video_decode/BUILD.gn b/ppapi/examples/video_decode/BUILD.gn new file mode 100644 index 0000000..285136e --- /dev/null +++ b/ppapi/examples/video_decode/BUILD.gn @@ -0,0 +1,37 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +group("video_decode") { + testonly = true + deps = [ + ":dev", + ":stable", + ] +} + +ppapi_example("dev") { + output_name = "ppapi_example_video_decode_dev" + sources = [ + "video_decode_dev.cc", + "testdata.h", + ] + deps = [ + "//ppapi/cpp", + "//ppapi/lib/gl/gles2", + ] +} + +ppapi_example("stable") { + output_name = "ppapi_example_video_decode" + sources = [ + "video_decode.cc", + "testdata.h", + ] + deps = [ + "//ppapi/cpp", + "//ppapi/lib/gl/gles2", + ] +} diff --git a/ppapi/examples/video_effects/BUILD.gn b/ppapi/examples/video_effects/BUILD.gn new file mode 100644 index 0000000..a93a08d --- /dev/null +++ b/ppapi/examples/video_effects/BUILD.gn @@ -0,0 +1,15 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//ppapi/examples/ppapi_example.gni") + +ppapi_example("video_effects") { + output_name = "video_effects" + sources = [ + "video_effects.cc", + ] + deps = [ + "//ppapi/cpp", + ] +} diff --git a/ppapi/lib/gl/gles2/BUILD.gn b/ppapi/lib/gl/gles2/BUILD.gn index e9048a1..81bdde4 100644 --- a/ppapi/lib/gl/gles2/BUILD.gn +++ b/ppapi/lib/gl/gles2/BUILD.gn @@ -2,6 +2,10 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +config("gles2_config") { + include_dirs = [ "//ppapi/lib/gl/include" ] +} + source_set("gles2") { sources = [ "gl2ext_ppapi.c", @@ -9,9 +13,9 @@ source_set("gles2") { "gles2.c", ] - include_dirs = [ "lib/gl/include" ] + public_configs = [ ":gles2_config" ] - deps = [ + public_deps = [ "//ppapi/c", ] } diff --git a/ppapi/ppapi_tests.gypi b/ppapi/ppapi_tests.gypi index c3013f8..9b3067b 100644 --- a/ppapi/ppapi_tests.gypi +++ b/ppapi/ppapi_tests.gypi @@ -228,6 +228,7 @@ }, }, { + # GN version: //ppapi/examples/mouse_cursor 'target_name': 'ppapi_example_mouse_cursor', 'dependencies': [ 'ppapi_example_skeleton', @@ -238,6 +239,7 @@ ], }, { + # GN version: //ppapi/examples/mouse_lock 'target_name': 'ppapi_example_mouse_lock', 'dependencies': [ 'ppapi_example_skeleton', @@ -249,6 +251,7 @@ }, { + # GN version: //ppapi/examples/gamepad 'target_name': 'ppapi_example_gamepad', 'dependencies': [ 'ppapi_example_skeleton', @@ -260,6 +263,7 @@ }, { + # GN version: //ppapi/examples/stub:c_stub 'target_name': 'ppapi_example_c_stub', 'dependencies': [ 'ppapi_example_skeleton', @@ -270,6 +274,7 @@ ], }, { + # GN version: //ppapi/examples/stub:cc_stub 'target_name': 'ppapi_example_cc_stub', 'dependencies': [ 'ppapi_example_skeleton', @@ -280,6 +285,7 @@ ], }, { + # GN version: //ppapi/examples/crxfs 'target_name': 'ppapi_example_crxfs', 'dependencies': [ 'ppapi_example_skeleton', @@ -290,6 +296,7 @@ ], }, { + # GN version: //ppapi/examples/audio 'target_name': 'ppapi_example_audio', 'dependencies': [ 'ppapi_example_skeleton', @@ -300,6 +307,7 @@ ], }, { + # GN version: //ppapi/examples/audio_input 'target_name': 'ppapi_example_audio_input', 'dependencies': [ 'ppapi_example_skeleton', @@ -310,6 +318,7 @@ ], }, { + # GN version: //ppapi/examples/file_chooser 'target_name': 'ppapi_example_file_chooser', 'dependencies': [ 'ppapi_example_skeleton', @@ -320,6 +329,7 @@ ], }, { + # GN version: //ppapi/examples/2d:graphics_2d 'target_name': 'ppapi_example_graphics_2d', 'dependencies': [ 'ppapi_example_skeleton', @@ -330,6 +340,7 @@ ], }, { + # GN version: //ppapi/examples/ime 'target_name': 'ppapi_example_ime', 'dependencies': [ 'ppapi_example_skeleton', @@ -340,6 +351,7 @@ ], }, { + # GN version: //ppapi/examples/2d:paint_manager 'target_name': 'ppapi_example_paint_manager', 'dependencies': [ 'ppapi_example_skeleton', @@ -350,6 +362,7 @@ ], }, { + # GN version: //ppapi/examples/input 'target_name': 'ppapi_example_input', 'dependencies': [ 'ppapi_example_skeleton', @@ -360,6 +373,7 @@ ], }, { + # GN version: //ppapi/examples/scripting 'target_name': 'ppapi_example_post_message', 'dependencies': [ 'ppapi_example_skeleton', @@ -370,6 +384,7 @@ ], }, { + # GN version: //ppapi/examples/scaling 'target_name': 'ppapi_example_scaling', 'dependencies': [ 'ppapi_example_skeleton', @@ -380,6 +395,7 @@ ], }, { + # GN version: //ppapi/examples/2d:scroll 'target_name': 'ppapi_example_scroll', 'dependencies': [ 'ppapi_example_skeleton', @@ -390,6 +406,7 @@ ], }, { + # GN version: //ppapi/examples/font 'target_name': 'ppapi_example_simple_font', 'dependencies': [ 'ppapi_example_skeleton', @@ -400,6 +417,18 @@ ], }, { + # GN version: //ppapi/examples/threading + 'target_name': 'ppapi_example_threading', + 'dependencies': [ + 'ppapi_example_skeleton', + 'ppapi.gyp:ppapi_cpp', + ], + 'sources': [ + 'examples/threading/threading.cc', + ], + }, + { + # GN version: //ppapi/examples/url_loader:streaming 'target_name': 'ppapi_example_url_loader', 'dependencies': [ 'ppapi_example_skeleton', @@ -410,6 +439,7 @@ ], }, { + # GN version: //ppapi/examples/url_loader:file 'target_name': 'ppapi_example_url_loader_file', 'dependencies': [ 'ppapi_example_skeleton', @@ -420,6 +450,7 @@ ], }, { + # GN version: //ppapi/examples/gles2 'target_name': 'ppapi_example_gles2', 'dependencies': [ 'ppapi_example_skeleton', @@ -434,6 +465,7 @@ ], }, { + # GN version: //ppapi/examples/video_decode:stable 'target_name': 'ppapi_example_video_decode', 'dependencies': [ 'ppapi_example_skeleton', @@ -449,6 +481,7 @@ ], }, { + # GN version: //ppapi/examples/video_decode:dev 'target_name': 'ppapi_example_video_decode_dev', 'dependencies': [ 'ppapi_example_skeleton', @@ -464,6 +497,7 @@ ], }, { + # GN version: //ppapi/example/video_capture 'target_name': 'ppapi_example_vc', 'dependencies': [ 'ppapi_example_skeleton', @@ -478,6 +512,7 @@ ], }, { + # GN version: //ppapi/examples/video_effects 'target_name': 'ppapi_example_video_effects', 'dependencies': [ 'ppapi_example_skeleton', @@ -488,6 +523,7 @@ ], }, { + # GN version: //ppapi/examples/enumerate_devices 'target_name': 'ppapi_example_enumerate_devices', 'dependencies': [ 'ppapi_example_skeleton', @@ -498,6 +534,7 @@ ], }, { + # GN version: //ppapi/examples/flash_topmost 'target_name': 'ppapi_example_flash_topmost', 'dependencies': [ 'ppapi_example_skeleton', @@ -508,6 +545,7 @@ ], }, { + # GN version: //ppapi/examples/printing 'target_name': 'ppapi_example_printing', 'dependencies': [ 'ppapi_example_skeleton', @@ -518,6 +556,7 @@ ], }, { + # GN version: //ppapi/examples/media_stream_audio 'target_name': 'ppapi_example_media_stream_audio', 'dependencies': [ 'ppapi_example_skeleton', @@ -528,6 +567,7 @@ ], }, { + # GN version: //ppapi/examples/media_stream_video 'target_name': 'ppapi_example_media_stream_video', 'dependencies': [ 'ppapi_example_skeleton', @@ -542,6 +582,7 @@ ], }, { + # GN version: //ppapi/examples/gles2_spinning_cube 'target_name': 'ppapi_example_gles2_spinning_cube', 'dependencies': [ 'ppapi_example_skeleton', @@ -558,6 +599,7 @@ ], }, { + # GN version: //ppapi/examples/compositor 'target_name': 'ppapi_example_compositor', 'dependencies': [ 'ppapi_example_skeleton', @@ -573,5 +615,7 @@ 'examples/compositor/spinning_cube.h', ], }, + # Adding a new PPAPI example? Don't forget to update the GN build. + # See //ppapi/examples/BUILD.gn ], } |