blob: 52fb6899eac2c6b22dfb2df8ef69a27e215f8c75 [file] [log] [blame]
# Copyright 2020 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_library.gni")
import("//build/go/go_test.gni")
import("//tools/fidl/lib/fidlgentest/fidlgentest_go_test.gni")
go_library("fidlgen_cpp") {
deps = [ "//tools/fidl/lib/fidlgen" ]
sources = [
"bits.go",
"codegen_options.go",
"const.go",
"enum.go",
"generator.go",
"handles.go",
"ir.go",
"ir_test.go",
"name_transforms.go",
"name_transforms_test.go",
"names.go",
"names_test.go",
"namespace.go",
"namespaced_enum.go",
"namespaced_enum_test.go",
"protocol.go",
"protocol_test.go",
"service.go",
"struct.go",
"table.go",
"template_funcs.go",
"testutils_test.go",
"union.go",
"zircon_names.go",
]
}
if (is_host) {
fidlgentest_go_test("fidlgen_cpp_ir_test") {
gopackages = [ "go.fuchsia.dev/fuchsia/tools/fidl/lib/fidlgen_cpp" ]
deps = [
":fidlgen_cpp",
"//third_party/golibs:github.com/google/go-cmp",
]
}
}
group("tests") {
testonly = true
deps = [ ":fidlgen_cpp_ir_test($host_toolchain)" ]
}