Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//services/catalog/public/tools/catalog.gni") | 5 import("//services/catalog/public/tools/catalog.gni") |
| 6 import("//services/service_manager/public/cpp/service.gni") | 6 import("//services/service_manager/public/cpp/service.gni") |
| 7 import("//services/service_manager/public/service_manifest.gni") | 7 import("//services/service_manager/public/service_manifest.gni") |
| 8 import("//services/service_manager/public/tools/test/service_test.gni") | 8 import("//services/service_manager/public/tools/test/service_test.gni") |
| 9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 10 | 10 |
| 11 source_set("lib") { | 11 source_set("lib") { |
| 12 sources = [ | 12 sources = [ |
| 13 "mus_demo.cc", | 13 "mus_demo.cc", |
| 14 "mus_demo.h", | 14 "mus_demo.h", |
| 15 "mus_demo_internal.cc", | |
| 16 "mus_demo_internal.h", | |
| 15 ] | 17 ] |
| 16 | 18 |
| 17 public_deps = [ | 19 public_deps = [ |
| 18 "//services/service_manager/public/cpp:sources", | 20 "//services/service_manager/public/cpp:sources", |
| 19 "//skia", | 21 "//skia", |
| 20 ] | 22 ] |
| 21 | 23 |
| 22 deps = [ | 24 deps = [ |
| 23 "//base", | 25 "//base", |
| 24 "//mojo/public/cpp/bindings", | 26 "//mojo/public/cpp/bindings", |
| 25 "//services/service_manager/public/cpp", | 27 "//services/service_manager/public/cpp", |
| 26 "//services/ui/public/cpp", | 28 "//services/ui/public/cpp", |
| 27 "//services/ui/public/cpp:internal", | 29 "//services/ui/public/cpp:internal", |
| 28 "//services/ui/public/interfaces", | 30 "//services/ui/public/interfaces", |
| 29 "//ui/aura", | 31 "//ui/aura", |
| 30 "//ui/aura_extra", | 32 "//ui/aura_extra", |
| 31 "//ui/gfx/geometry", | 33 "//ui/gfx/geometry", |
| 32 "//ui/wm", | 34 "//ui/wm", |
| 33 ] | 35 ] |
| 34 } | 36 } |
| 35 | 37 |
| 36 service("mus_demo") { | 38 service("mus_demo_internal") { |
|
kylechar
2017/02/14 18:40:11
I'm not a big fan of these file and GN target rena
fwang
2017/02/14 20:47:28
I initially wanted to keep all in one class but it
fwang
2017/02/15 13:49:26
Done.
| |
| 37 sources = [ | 39 sources = [ |
| 38 "main.cc", | 40 "main_internal.cc", |
| 39 ] | 41 ] |
| 40 | 42 |
| 41 deps = [ | 43 deps = [ |
| 42 ":lib", | 44 ":lib", |
| 43 ] | 45 ] |
| 44 | 46 |
| 45 data_deps = [ | 47 data_deps = [ |
| 46 "//services/ui", | 48 "//services/ui", |
| 47 ] | 49 ] |
| 48 } | 50 } |
| 49 | 51 |
| 50 service_manifest("manifest") { | 52 service_manifest("manifest_internal") { |
| 51 name = "mus_demo" | 53 name = "mus_demo_internal" |
| 52 source = "manifest.json" | 54 source = "manifest_internal.json" |
| 53 } | 55 } |
| 54 | 56 |
| 55 service_manifest("test_manifest") { | 57 service_manifest("test_manifest") { |
| 56 name = "mus_demo_unittests" | 58 name = "mus_demo_unittests" |
| 57 source = "test_manifest.json" | 59 source = "test_manifest.json" |
| 58 } | 60 } |
| 59 | 61 |
| 60 service_test("mus_demo_unittests") { | 62 service_test("mus_demo_unittests") { |
| 61 testonly = true | 63 testonly = true |
| 62 | 64 |
| 63 sources = [ | 65 sources = [ |
| 64 "mus_demo_unittests.cc", | 66 "mus_demo_unittests.cc", |
| 65 ] | 67 ] |
| 66 | 68 |
| 67 catalog = ":mus_demo_unittests_catalog" | 69 catalog = ":mus_demo_unittests_catalog" |
| 68 | 70 |
| 69 deps = [ | 71 deps = [ |
| 70 ":demo", | 72 ":demo", |
| 71 "//base", | 73 "//base", |
| 72 "//services/service_manager/public/cpp", | 74 "//services/service_manager/public/cpp", |
| 73 "//services/service_manager/public/cpp:service_test_support", | 75 "//services/service_manager/public/cpp:service_test_support", |
| 74 "//services/ui/public/interfaces", | 76 "//services/ui/public/interfaces", |
| 75 "//testing/gtest", | 77 "//testing/gtest", |
| 76 ] | 78 ] |
| 77 | 79 |
| 78 data_deps = [ | 80 data_deps = [ |
| 79 ":mus_demo", | 81 ":mus_demo_internal", |
| 80 ] | 82 ] |
| 81 } | 83 } |
| 82 | 84 |
| 83 group("demo") { | 85 group("demo") { |
| 84 deps = [ | 86 deps = [ |
| 85 ":mus_demo", | 87 ":mus_demo_internal", |
| 86 ] | 88 ] |
| 87 } | 89 } |
| 88 | 90 |
| 89 catalog("mus_demo_unittests_catalog") { | 91 catalog("mus_demo_unittests_catalog") { |
| 90 embedded_services = [ ":test_manifest" ] | 92 embedded_services = [ ":test_manifest" ] |
| 91 | 93 |
| 92 standalone_services = [ | 94 standalone_services = [ |
| 93 ":manifest", | 95 ":manifest_internal", |
| 94 "//services/ui:manifest", | 96 "//services/ui:manifest", |
| 95 ] | 97 ] |
| 96 } | 98 } |
| OLD | NEW |