blob: 9fad9e7bf1f850ab789df47cce42112cbbcdc506 [file] [log] [blame]
# Copyright 2020 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("//build/config/chromeos/ui_mode.gni")
# C++ components used by both lacros-chrome and ash-chrome.
config("crosapi_implementation") {
defines = [ "IS_CROSAPI_IMPL" ]
}
component("cpp") {
output_name = "crosapi_public_cpp"
sources = [
"gurl_os_handler_utils.cc",
"gurl_os_handler_utils.h",
"keystore_service_util.cc",
"keystore_service_util.h",
"scoped_allow_sync_call.cc",
"scoped_allow_sync_call.h",
]
configs += [ ":crosapi_implementation" ]
deps = [
":crosapi_constants",
"//base",
"//chromeos/crosapi/mojom",
"//mojo/public/cpp/bindings",
]
if (is_chromeos_ash) {
sources += [
"lacros_startup_state.cc",
"lacros_startup_state.h",
]
}
}
static_library("crosapi_constants") {
sources = [
"crosapi_constants.cc",
"crosapi_constants.h",
]
deps = [ "//base" ]
}
source_set("unit_tests") {
testonly = true
deps = [
":cpp",
"//base/test:test_support",
"//chromeos/crosapi/mojom",
"//testing/gtest",
]
sources = [
"gurl_os_handler_unittest.cc",
"keystore_service_util_unittest.cc",
]
}