Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(657)

Side by Side Diff: components/spellcheck/browser/BUILD.gn

Issue 2159283003: [WIP][DO NOT LAND] Componentize spellcheck Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 if (is_android) {
6 import("//build/config/android/rules.gni")
7 }
8
9 source_set("browser") {
10 sources = [
11 "feedback.cc",
12 "feedback.h",
13 "feedback_sender.cc",
14 "feedback_sender.h",
15 "misspelling.cc",
16 "misspelling.h",
17 "pref_names.cc",
18 "pref_names.h",
19 "spellcheck_action.cc",
20 "spellcheck_action.h",
21 "spellcheck_dictionary.h",
22 "spellchecker_session_bridge_android.cc",
23 "spellchecker_session_bridge_android.h",
24 "spellcheck_host_metrics.cc",
25 "spellcheck_host_metrics.h",
26 "spellcheck_message_filter_platform_android.cc",
27 "spellcheck_message_filter_platform.h",
28 "spellcheck_platform_android.cc",
29 "spellcheck_platform.h",
30 "spellcheck_platform_mac.mm",
31 "spelling_service_client.cc",
32 "spelling_service_client.h",
33 "word_trimmer.cc",
34 "word_trimmer.h",
35 ]
36
37 deps = [
38 "//base",
39 "//content/public/common",
40 "//content/public/browser",
41 ]
42
43 if (is_android) {
44 sources += [
45 "../android/component_jni_registrar.cc",
46 "../android/component_jni_registrar.h",
47 ]
48 deps += [ ":jni_headers", ":java" ]
49 }
50 }
51
52 source_set("unit_tests") {
53 testonly = true
54 sources = [
55 "feedback_sender_unittest.cc",
56 "feedback_unittest.cc",
57 "misspelling_unittest.cc",
58 "spellcheck_action_unittest.cc",
59 "spellcheck_host_metrics_unittest.cc",
60 "spellcheck_platform_mac_unittest.cc",
61 "word_trimmer_unittest.cc",
62 ]
63
64 deps = [
65 ":browser",
66 "//testing/gtest",
67 ]
68 }
69
70 if (is_android) {
71 android_library("java") {
72 deps = [
73 "//base:base_java",
74 "//third_party/jsr-305:jsr_305_javalib",
75 ]
76
77 java_files = [
78 "../android/java/src/org/chromium/components/spellcheck/SpellCheckerSessio nBridge.java",
79 ]
80 }
81
82 generate_jni("jni_headers") {
83 sources = [
84 "../android/java/src/org/chromium/components/spellcheck/SpellCheckerSessio nBridge.java",
85 ]
86 jni_package = "components/spellcheck"
87 }
88 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698