Add Package.swift

This commit is contained in:
Richard Topchii 2021-06-03 13:43:36 +03:00
parent 569a5dee76
commit 55116723a1

48
Package.swift Executable file
View File

@ -0,0 +1,48 @@
// swift-tools-version:5.4
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "json",
platforms: [
.iOS(.v9), .macOS(.v10_10), .tvOS(.v9), .watchOS(.v2)
],
products: [
.library(
name: "json",
targets: ["json"]),
],
targets: [
.target(
name: "json",
dependencies: [],
path: ".",
exclude:
[
"appveyor.yml",
"benchmarks",
"cmake",
"ChangeLog.md",
"doc",
"include",
"test",
"third_party",
"CMakeLists.txt",
"CODE_OF_CONDUCT.md",
"LICENSE.MIT",
"Makefile",
"meson.build",
"nlohmann_json.natvis",
"README.md",
"wsjcpp.yml",
],
sources:
[
"_SwiftPackageManagerFile.cpp"
],
publicHeadersPath: "./single_include/nlohmann/")
],
cxxLanguageStandard: .cxx11
)