blob: fd61cd65a1a11b3c8f1f9bfbb317de4402e8576e [file] [log] [blame]
# Copyright 2018 The Chromium OS 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("//common-mk/pkg_config.gni")
group("all") {
deps = [
":hermes",
":libhermes",
]
if (use.test) {
deps += [ ":hermes_test" ]
}
}
pkg_config("target_defaults") {
pkg_deps = [
"google-lpa",
"libbrillo-${libbase_ver}",
"libchrome-${libbase_ver}",
]
libs = [ "qrtr" ]
}
static_library("libhermes") {
configs += [ ":target_defaults" ]
sources = [
"apdu.cc",
"card_qrtr.cc",
"executor.cc",
"qmi_uim.cc",
"sgp_22.cc",
"smdp.cc",
"socket_qrtr.cc",
]
}
executable("hermes") {
configs += [ ":target_defaults" ]
sources = [
"main.cc",
]
deps = [
":libhermes",
]
}
if (use.test) {
pkg_config("test_config") {
pkg_deps = [ "libchrome-test-${libbase_ver}" ]
}
executable("hermes_test") {
configs += [
# //common-mk:test should be at the top. crbug.com/887845
# TODO(crbug.com/887845): Remove this note after library order issue is resolved.
"//common-mk:test",
":target_defaults",
":test_config",
]
sources = [
"apdu_test.cc",
]
deps = [
":libhermes",
"//common-mk/testrunner",
]
}
}