blob: 81161cd264d26eb287a5200c880980b53b3b711b [file] [log] [blame]
# Copyright 2017 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/go/go_binary.gni")
import("//build/go/go_test.gni")
import("//packages/package.gni")
go_binary("pm_bin") {
output_name = "pm"
gopackage = "fuchsia.googlesource.com/pm/cmd/pm"
go_dependencies = [
{
package = "fuchsia.googlesource.com/pm"
},
{
package = "golang.org/x/crypto"
source = "//third_party/golang/crypto"
},
]
}
go_binary("pmd_bin") {
output_name = "pmd"
gopackage = "fuchsia.googlesource.com/pm/cmd/pmd"
go_dependencies = [
{
package = "fuchsia.googlesource.com/pm"
},
{
package = "thinfs"
source = "//garnet/go/src/thinfs"
},
{
package = "golang.org/x/crypto"
source = "//third_party/golang/crypto"
},
]
}
go_test("pkgfs_test_bin") {
output_name = "pkgfs_test"
gopackage = "fuchsia.googlesource.com/pm/pkgfs"
go_dependencies = [
{
package = "fuchsia.googlesource.com/pm"
},
{
package = "thinfs"
source = "//garnet/go/src/thinfs"
},
{
package = "golang.org/x/crypto"
source = "//third_party/golang/crypto"
},
]
}
package("pm") {
deps = [
":pm_bin",
]
binaries = [ {
name = "pm"
} ]
}
package("pmd") {
deps = [
":pmd_bin",
]
binaries = [ {
name = "pmd"
} ]
}
package("pkgfs_test") {
deps = [
":pkgfs_test_bin",
]
tests = [ {
name = "pkgfs_test"
} ]
}