| 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("//mojo/public/mojo_application.gni") | 5 import("//mojo/public/mojo_application.gni") |
| 6 import("//mojo/public/mojo_application_manifest.gni") | 6 import("//mojo/public/mojo_application_manifest.gni") |
| 7 import("//testing/test.gni") |
| 7 | 8 |
| 8 group("catalog") { | 9 group("catalog") { |
| 10 testonly = true |
| 9 deps = [ | 11 deps = [ |
| 10 ":lib", | 12 ":lib", |
| 11 ] | 13 ] |
| 12 } | 14 } |
| 13 | 15 |
| 14 source_set("lib") { | 16 source_set("lib") { |
| 15 sources = [ | 17 sources = [ |
| 18 "builder.cc", |
| 19 "builder.h", |
| 16 "catalog.cc", | 20 "catalog.cc", |
| 17 "catalog.h", | 21 "catalog.h", |
| 22 "entry.cc", |
| 23 "entry.h", |
| 18 "loader.cc", | 24 "loader.cc", |
| 19 "loader.h", | 25 "loader.h", |
| 26 "store.cc", |
| 27 "store.h", |
| 20 ] | 28 ] |
| 21 | 29 |
| 22 deps = [ | 30 deps = [ |
| 23 ":manifest", | 31 ":manifest", |
| 24 "//base", | 32 "//base", |
| 25 "//mojo/common:url_type_converters", | 33 "//mojo/common:url_type_converters", |
| 26 "//mojo/services/catalog/public/interfaces", | 34 "//mojo/services/catalog/public/interfaces", |
| 27 "//mojo/shell/public/cpp", | 35 "//mojo/shell/public/cpp", |
| 28 "//mojo/util:filename_util", | 36 "//mojo/util:filename_util", |
| 29 "//net", | 37 "//net", |
| 30 ] | 38 ] |
| 31 } | 39 } |
| 32 | 40 |
| 33 mojo_application_manifest("manifest") { | 41 mojo_application_manifest("manifest") { |
| 34 application_name = "catalog" | 42 application_name = "catalog" |
| 35 source = "manifest.json" | 43 source = "manifest.json" |
| 36 } | 44 } |
| 45 |
| 46 source_set("unittests") { |
| 47 testonly = true |
| 48 sources = [ |
| 49 "builder_unittest.cc", |
| 50 ] |
| 51 deps = [ |
| 52 ":lib", |
| 53 "//base", |
| 54 "//mojo/shell/public/cpp", |
| 55 "//testing/gtest", |
| 56 ] |
| 57 } |
| OLD | NEW |