OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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/tools/embed/rules.gni") |
6 | 7 |
7 mojo_native_application("prediction") { | 8 mojo_native_application("prediction") { |
8 output_name = "prediction_service" | 9 output_name = "prediction_service" |
9 | 10 |
10 sources = [ | 11 sources = [ |
| 12 "dictionary_service.cc", |
| 13 "dictionary_service.h", |
| 14 "input_info.cc", |
| 15 "input_info.h", |
| 16 "key_set.cc", |
| 17 "key_set.h", |
11 "prediction_service_impl.cc", | 18 "prediction_service_impl.cc", |
12 "prediction_service_impl.h", | 19 "prediction_service_impl.h", |
| 20 "proximity_info_service.cc", |
| 21 "proximity_info_service.h", |
| 22 "touch_position_correction.cc", |
| 23 "touch_position_correction.h", |
13 ] | 24 ] |
14 | 25 |
15 deps = [ | 26 deps = [ |
| 27 ":dict_file", |
| 28 "//base", |
16 "//mojo/application", | 29 "//mojo/application", |
17 "//mojo/services/prediction/public/interfaces", | 30 "//mojo/services/prediction/public/interfaces", |
| 31 "//third_party/prediction:suggest", |
18 ] | 32 ] |
19 } | 33 } |
20 | 34 |
21 mojo_native_application("apptests") { | 35 mojo_native_application("apptests") { |
22 output_name = "prediction_apptests" | 36 output_name = "prediction_apptests" |
23 | 37 |
24 testonly = true | 38 testonly = true |
25 | 39 |
26 sources = [ | 40 sources = [ |
27 "prediction_apptests.cc", | 41 "prediction_apptests.cc", |
28 ] | 42 ] |
29 | 43 |
30 deps = [ | 44 deps = [ |
31 "//base", | 45 "//base", |
32 "//mojo/application", | 46 "//mojo/application", |
33 "//mojo/application:test_support", | 47 "//mojo/application:test_support", |
34 "//mojo/services/prediction/public/interfaces", | 48 "//mojo/services/prediction/public/interfaces", |
35 ] | 49 ] |
36 | 50 |
37 data_deps = [ ":prediction($default_toolchain)" ] | 51 data_deps = [ ":prediction($default_toolchain)" ] |
38 } | 52 } |
| 53 |
| 54 embed_file("dict_file") { |
| 55 source = "res/main_en.dict" |
| 56 namespace = "prediction" |
| 57 variable = "kDictFile" |
| 58 } |
OLD | NEW |