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