| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("//build/config/nacl/config.gni") | 5 import("//build/config/nacl/config.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 | 7 |
| 8 # Collection of examples which are currently capable of being built as pexes. | 8 # Collection of examples which are currently capable of being built as pexes. |
| 9 # TODO(smklein): Make all examples build as pexes. | 9 # TODO(smklein): Make all examples build as pexes. |
| 10 group("portable_examples") { | 10 group("portable_examples") { |
| 11 testonly = true | 11 testonly = true |
| 12 | 12 |
| 13 deps = [ | 13 deps = [ |
| 14 "//examples/apptest", | 14 "//examples/apptest", |
| 15 "//examples/audio_play_test", | 15 "//examples/audio_play_test", |
| 16 "//examples/content_handler_demo", | 16 "//examples/content_handler_demo", |
| 17 "//examples/dart", | 17 "//examples/dart", |
| 18 "//examples/echo", | 18 "//examples/echo", |
| 19 "//examples/echo_terminal", | 19 "//examples/echo_terminal", |
| 20 "//examples/embedded_app", |
| 20 "//examples/forwarding_content_handler", | 21 "//examples/forwarding_content_handler", |
| 22 "//examples/ganesh_app", |
| 21 "//examples/http_handler", | 23 "//examples/http_handler", |
| 22 "//examples/indirect_service", | 24 "//examples/indirect_service", |
| 23 "//examples/moterm_example_app", | 25 "//examples/moterm_example_app", |
| 24 "//examples/native_run_app", | 26 "//examples/native_run_app", |
| 25 "//examples/notification_generator", | 27 "//examples/notification_generator", |
| 26 "//examples/recursive_content_handler", | 28 "//examples/recursive_content_handler", |
| 27 "//examples/serialization", | 29 "//examples/serialization", |
| 28 "//examples/spinning_cube", | 30 "//examples/spinning_cube", |
| 29 "//examples/tiny", | 31 "//examples/tiny", |
| 30 "//examples/trace_me", | 32 "//examples/trace_me", |
| 31 "//examples/wget", | 33 "//examples/wget", |
| 32 ] | 34 ] |
| 33 } | 35 } |
| 34 | 36 |
| 35 group("examples") { | 37 group("examples") { |
| 36 testonly = true | 38 testonly = true |
| 37 | 39 |
| 38 # TODO(smklein) - These deps are not compatible with NaCl because they depend | |
| 39 # on skia. Make Skia build with NaCl. | |
| 40 deps = [ | 40 deps = [ |
| 41 ":portable_examples", | 41 ":portable_examples", |
| 42 "//examples/embedded_app", | |
| 43 "//examples/ganesh_app", | |
| 44 "//examples/png_viewer", | |
| 45 ] | 42 ] |
| 46 | 43 |
| 47 # TODO(cstout) - javascript/v8 build support for fnl/musl | 44 # TODO(cstout) - javascript/v8 build support for fnl/musl |
| 48 if (!is_android && !is_fnl) { | 45 if (!is_android && !is_fnl) { |
| 49 deps += [ "//examples/pdf_viewer" ] | 46 deps += [ "//examples/pdf_viewer" ] |
| 50 } | 47 } |
| 51 | 48 |
| 52 if (is_android) { | 49 if (is_android) { |
| 53 deps += [ | 50 deps += [ |
| 54 "//examples/device_name", | 51 "//examples/device_name", |
| (...skipping 18 matching lines...) Expand all Loading... |
| 73 } | 70 } |
| 74 | 71 |
| 75 if (is_linux && !is_fnl) { | 72 if (is_linux && !is_fnl) { |
| 76 deps += [ "//examples/python" ] | 73 deps += [ "//examples/python" ] |
| 77 } | 74 } |
| 78 | 75 |
| 79 if (mojo_use_nacl && (is_linux || is_android) && !is_asan) { | 76 if (mojo_use_nacl && (is_linux || is_android) && !is_asan) { |
| 80 deps += [ ":portable_examples(//build/toolchain/nacl:newlib_pnacl)" ] | 77 deps += [ ":portable_examples(//build/toolchain/nacl:newlib_pnacl)" ] |
| 81 } | 78 } |
| 82 } | 79 } |
| OLD | NEW |