blob: fe59bb8ccd28e01901e6a96c44e5cee20878c9be [file]
# Copyright 2018 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.
# Do not use - depend directly on //src/lib/json_parser instead.
# This is a transitional target and will be removed soon.
# Bug: 36759
group("json") {
public_deps = [ ":json_parser" ]
}
group("tests") {
testonly = true
deps = [ ":json_parser_unittests_bin($host_toolchain)" ]
if (is_fuchsia) {
deps += [ ":json_parser_unittests_package" ]
}
}
## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ##
#
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
#
# AUTO-GENERATED - DO NOT EDIT
#
# The targets below are auto-generated based on the targets defined in the
# BUILD.bazel file from the same directory. If you made changes to targets in
# Bazel, instead of editing this file manually, run:
#
# > fx bazel2gn
#
# Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and
# rerun bazel2gn.
import("//build/tools/bazel2gn/bazel_migration.gni")
source_set("json_parser") {
sources = [
"json_parser.cc",
"rapidjson_validation.cc",
]
public = [
"json_parser.h",
"pretty_print.h",
"rapidjson_validation.h",
]
visibility = [
":*",
"//src/cobalt/*",
"//src/connectivity/*",
"//src/developer/*",
"//src/devices/*",
"//src/graphics/*",
"//src/starnix/*",
"//src/storage/*",
"//src/sys/*",
"//src/ui/*",
"//src/virtualization/*",
"//vendor/google/*",
]
public_deps = [
"//sdk/lib/fit",
"//src/lib/fxl",
"//third_party/rapidjson",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/zx",
]
}
executable("json_parser_unittests_bin") {
testonly = true
sources = [
"json_parser_unittest.cc",
"rapidjson_validation_unittest.cc",
]
configs += [ "//build/config/lto:no-fat-lto-objects-linking" ]
output_name = "json_parser_unittests"
deps = [
":json_parser",
"//src/lib/files",
"//src/lib/fxl",
"//src/lib/fxl/test:gtest_main",
"//third_party/rapidjson",
]
}
fuchsia_component_manifest("json_parser_unittests_manifest") {
testonly = true
component_name = "json_parser_unittests"
manifest = "meta/json_parser_unittests.cml"
}
fuchsia_test_component("json_parser_unittests_component") {
cm_label = ":json_parser_unittests_manifest"
deps = [ ":json_parser_unittests_bin" ]
}
fuchsia_test_package("json_parser_unittests_package") {
package_name = "json_parser_unittests-gn"
test_components = [ ":json_parser_unittests_component" ]
test_specs = {
environments = [ emu_env ]
}
}