blob: ad86ba05635e4b8cf5f10596e2d17e7de1432761 [file] [log] [blame]
# Copyright 2019 The Fuchsia 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/test/test_package.gni")
import("//build/package.gni")
source_set("lib") {
sources = [
"limbo_client.cc",
"limbo_client.h",
"options.cc",
"options.h",
]
deps = [
"//sdk/lib/sys/cpp",
"//src/lib/fsl",
"//src/lib/fxl",
]
public_deps = [ "//sdk/fidl/fuchsia.exception" ]
}
executable("exe") {
output_name = "limbo_client"
sources = [ "main.cc" ]
deps = [
":lib",
"//sdk/lib/sys/cpp",
"//zircon/public/lib/async-loop-cpp",
"//zircon/public/lib/async-loop-default",
"//zircon/public/lib/zx",
]
}
package("limbo_client") {
deps = [ ":exe" ]
binaries = [
{
name = "limbo_client"
shell = true
},
]
meta = [
{
path = "meta/limbo_client.cmx"
dest = "limbo.cmx"
},
]
}
# Tests --------------------------------------------------------------------------------------------
group("tests") {
testonly = true
public_deps = [ ":limbo_client_unittest" ]
}
executable("limbo_client_unittest") {
testonly = true
sources = [
"limbo_client_unittest.cc",
"unittest_main.cc",
]
deps = [
":lib",
"//sdk/fidl/fuchsia.exception",
"//sdk/lib/sys/cpp/testing:unit",
"//src/lib/fxl/test:test_settings",
"//src/lib/syslog/cpp",
"//third_party/googletest:gtest",
"//zircon/public/lib/async-loop-cpp",
"//zircon/public/lib/async-loop-default",
]
}