blob: 989102a19d7ddd71ad9f9b6a96b70ec5e6cb085f [file] [log] [blame]
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//chromeos/services/ime/public/features.gni")
assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos")
source_set("lib") {
sources = [
"ime_service.cc",
"ime_service.h",
"input_engine.cc",
"input_engine.h",
]
deps = [
"//base",
"//chromeos/services/ime/public/cpp:buildflags",
"//chromeos/services/ime/public/cpp:rulebased",
"//chromeos/services/ime/public/mojom",
"//services/service_manager/public/cpp",
"//services/service_manager/public/mojom",
]
if (enable_cros_ime_decoder) {
sources += [
"decoder/decoder_engine.cc",
"decoder/decoder_engine.h",
]
}
}
source_set("sandbox_hook") {
sources = [
"ime_sandbox_hook.cc",
"ime_sandbox_hook.h",
]
deps = [
"//base",
"//sandbox/linux:sandbox_services",
"//services/service_manager/sandbox:sandbox",
]
}
source_set("unit_tests") {
testonly = true
deps = [
"//chromeos/services/ime/public/cpp:rulebased_unit_tests",
]
}
source_set("services_unittests") {
testonly = true
deps = [
":lib",
"//base",
"//base/test:test_support",
"//chromeos/services/ime/public/mojom",
"//mojo/public/cpp/bindings",
"//services/network:test_support",
"//services/service_manager/public/cpp",
"//services/service_manager/public/cpp/test:test_support",
"//testing/gmock",
"//testing/gtest",
]
sources = [
"ime_service_unittest.cc",
]
}