json/nlohmann_json.podspec

52 lines
1.7 KiB
Plaintext
Raw Normal View History

# upgrades how to:
# 1. update s.version
# 2. run `pod spec lint nlohmann_json.podspec`
# 3. register a session with cocoapods
# 4. run `pod trunk push ./`
# see cocoapods documentation http://docs.cocoapods.org/specification.html for
# more details.
2018-06-27 18:39:04 +03:00
Pod::Spec.new do |s|
# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
s.name = "nlohmann_json"
s.version = "3.1.2"
s.summary = "JSON for Modern C++"
2018-06-27 18:39:04 +03:00
# CocoaPods strips indentation for description
2018-06-27 18:39:04 +03:00
s.description = <<-DESC
JSON library for modern c++, it can read & write JSON. If you know how to
use std::vector or std::map, you are already set.
2018-06-27 18:39:04 +03:00
DESC
s.homepage = "https://github.com/nlohmann/json"
s.screenshots = "https://raw.githubusercontent.com/nlohmann/json/master/doc/json.gif"
2018-06-27 18:39:04 +03:00
license_text = File.read("LICENSE.MIT")
# cocoapods checks extension and expects it to be a txt. so instead
# we read the file and pass it in as text.
s.license = { :type => "MIT", :text => license_text }
s.authors = {
"Niels Lohmann" => "mail@nlohmann.me"
2018-06-27 18:39:04 +03:00
}
s.platform = :ios, "8.0"
# When using multiple platforms. I haven't tested integration with other
# platforms. Theoretically it should just work without problem.
# s.ios.deployment_target = "8.0"
2018-06-27 18:39:04 +03:00
# s.osx.deployment_target = "10.7"
# s.watchos.deployment_target = "2.0"
# s.tvos.deployment_target = "9.0"
s.source = { :git => "https://github.com/nlohmann/json.git", :tag => "v#{s.version}" }
s.source_files = "single_include/**/*.hpp"
2018-06-27 18:39:04 +03:00
s.public_header_files = "single_include/nlohmann/json.hpp"
end