OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//mojo/public/mojo_application.gni") |
| 6 import("//mojo/public/mojo_application_manifest.gni") |
| 7 import("//testing/test.gni") |
| 8 |
| 9 source_set("lib") { |
| 10 sources = [ |
| 11 "clipboard_application_delegate.cc", |
| 12 "clipboard_application_delegate.h", |
| 13 "clipboard_standalone_impl.cc", |
| 14 "clipboard_standalone_impl.h", |
| 15 ] |
| 16 |
| 17 deps = [ |
| 18 "//base", |
| 19 "//components/clipboard/public/interfaces", |
| 20 "//mojo/public/cpp/bindings", |
| 21 "//mojo/public/cpp/bindings:callback", |
| 22 "//services/shell/public/cpp", |
| 23 "//services/tracing/public/cpp", |
| 24 ] |
| 25 } |
| 26 |
| 27 mojo_native_application("clipboard") { |
| 28 sources = [ |
| 29 "main.cc", |
| 30 ] |
| 31 |
| 32 deps = [ |
| 33 ":lib", |
| 34 "//base", |
| 35 "//mojo/public/cpp/bindings:callback", |
| 36 "//services/shell/public/cpp", |
| 37 ] |
| 38 |
| 39 data_deps = [ |
| 40 ":manifest", |
| 41 ] |
| 42 } |
| 43 |
| 44 mojo_application_manifest("manifest") { |
| 45 application_name = "clipboard" |
| 46 source = "manifest.json" |
| 47 } |
| 48 |
| 49 test("clipboard_service_unittests") { |
| 50 sources = [ |
| 51 "clipboard_unittest.cc", |
| 52 ] |
| 53 |
| 54 deps = [ |
| 55 "//base", |
| 56 "//components/clipboard/public/interfaces", |
| 57 "//mojo/common", |
| 58 "//services/shell/public/cpp:shell_test_support", |
| 59 "//services/shell/public/cpp:sources", |
| 60 "//services/shell/public/cpp/test:run_all_shelltests", |
| 61 ] |
| 62 |
| 63 data_deps = [ |
| 64 ":test_manifest", |
| 65 ":clipboard", |
| 66 ] |
| 67 } |
| 68 |
| 69 mojo_application_manifest("test_manifest") { |
| 70 type = "exe" |
| 71 application_name = "clipboard_service_unittests" |
| 72 source = "test_manifest.json" |
| 73 } |
OLD | NEW |