mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Re-land of https://github.com/pytorch/pytorch/pull/125242 Pull Request resolved: https://github.com/pytorch/pytorch/pull/127034 Approved by: https://github.com/malfet
19 lines
454 B
Plaintext
19 lines
454 B
Plaintext
load("@rules_cc//cc:defs.bzl", "cc_library")
|
|
|
|
cc_library(name = "nlohmann",
|
|
includes = ["include"],
|
|
deps = ["nlohmann-internal"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
cc_import(name = "nlohmann-internal",
|
|
hdrs = glob(["include/**/*.hpp"]),
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
cc_library(
|
|
name = "nlohmann_single_include",
|
|
hdrs = glob(["single_include/nlohmann/*.hpp"]),
|
|
visibility = ["//visibility:public"],
|
|
)
|