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.h", |
11 "prediction_service_impl.cc", | 17 "prediction_service_impl.cc", |
12 "prediction_service_impl.h", | 18 "prediction_service_impl.h", |
| 19 "proximity_info_factory.cc", |
| 20 "proximity_info_factory.h", |
| 21 "touch_position_correction.cc", |
| 22 "touch_position_correction.h", |
13 ] | 23 ] |
14 | 24 |
15 deps = [ | 25 deps = [ |
| 26 ":dict_file", |
| 27 "//base", |
16 "//mojo/application", | 28 "//mojo/application", |
17 "//mojo/services/prediction/public/interfaces", | 29 "//mojo/services/prediction/public/interfaces", |
| 30 "//third_party/android_prediction:suggest", |
18 ] | 31 ] |
19 } | 32 } |
20 | 33 |
21 mojo_native_application("apptests") { | 34 mojo_native_application("apptests") { |
22 output_name = "prediction_apptests" | 35 output_name = "prediction_apptests" |
23 | 36 |
24 testonly = true | 37 testonly = true |
25 | 38 |
26 sources = [ | 39 sources = [ |
27 "prediction_apptests.cc", | 40 "prediction_apptests.cc", |
28 ] | 41 ] |
29 | 42 |
30 deps = [ | 43 deps = [ |
31 "//base", | 44 "//base", |
32 "//mojo/application", | 45 "//mojo/application", |
33 "//mojo/application:test_support", | 46 "//mojo/application:test_support", |
34 "//mojo/services/prediction/public/interfaces", | 47 "//mojo/services/prediction/public/interfaces", |
35 ] | 48 ] |
36 | 49 |
37 data_deps = [ ":prediction($default_toolchain)" ] | 50 data_deps = [ ":prediction($default_toolchain)" ] |
38 } | 51 } |
| 52 |
| 53 embed_file("dict_file") { |
| 54 source = "res/main_en.dict" |
| 55 namespace = "prediction" |
| 56 variable = "kDictFile" |
| 57 } |
OLD | NEW |