chromium/third_party/google-closure-library/closure/goog/json/BUILD

load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library")

package(default_visibility = ["//visibility:public"])

licenses(["notice"])

closure_js_library(
    name = "hybrid",
    srcs = ["hybrid.js"],
    deps = [
        ":json",
        "//closure/goog/asserts",
    ],
)

closure_js_library(
    name = "json",
    srcs = ["json.js"],
)

closure_js_library(
    name = "json_perf",
    testonly = 1,
    srcs = ["json_perf.js"],
    deps = [
        ":json",
        "//closure/goog/dom",
        "//closure/goog/math",
        "//closure/goog/string",
        "//closure/goog/testing:jsunit",
        "//closure/goog/testing:performancetable",
        "//closure/goog/testing:propertyreplacer",
    ],
)

closure_js_library(
    name = "jsonable",
    srcs = ["jsonable.js"],
)

closure_js_library(
    name = "nativejsonprocessor",
    srcs = ["nativejsonprocessor.js"],
    deps = [
        ":processor",
        "//closure/goog/asserts",
    ],
)

closure_js_library(
    name = "processor",
    srcs = ["processor.js"],
    deps = [
        "//closure/goog/string:parser",
        "//closure/goog/string:stringifier",
    ],
)