Add Swift support for json depedency.

PiperOrigin-RevId: 523546713
This commit is contained in:
Suet-Fei Li
2023-04-11 17:12:58 -07:00
committed by Copybara-Service
parent 97fe0be263
commit ed4e000a2d
+23
View File
@@ -242,6 +242,28 @@ let package = Package(
.headerSearchPath("compiled_proto/"),
]
),
.target(
name: "json",
path: "third_party/json",
exclude:[
"LICENSES",
"cmake",
"docs",
"single_include",
"tests",
"tools",
"CITATION.cff",
"CMakeLists.txt",
"ChangeLog.md",
"LICENSE.MIT",
"Makefile",
"README.md",
"meson.build",
"nlohmann_json.natvis",
"wsjcpp.yml",
],
publicHeadersPath: "include/nlohmann/"
),
.target(
name: "protobuf",
path: "third_party/protobuf/src",
@@ -373,6 +395,7 @@ let package = Package(
name: "NearbyCoreAdapter",
dependencies: [
"google-toolbox-for-mac",
"json",
"smhasher",
"ukey2",
"protobuf",