forked from zonble/OpenCC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OpenCC.podspec
33 lines (29 loc) · 1.32 KB
/
OpenCC.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Pod::Spec.new do |s|
s.name = "OpenCC"
s.version = "0.3.2"
s.summary = "Open Chinese Convert"
s.description = <<-DESC
The Pod spec wraps OpeCC (Open Chinese Convert) that helps you to convert Traditianl Chinese
to Simplified Chinese, and vise versa.
DESC
s.homepage = "https://github.com/SPHTech/OpenCC"
s.license = { :type => "MIT", :file => "LICENSE" }
s.source = { :git => "https://github.com/SPHTech/OpenCC.git", :tag => s.version.to_s, :submodules => true }
s.social_media_url = "https://twitter.com/zonble"
s.ios.deployment_target = "11.0"
s.osx.deployment_target = "10.13"
s.tvos.deployment_target = "11.0"
s.vendored_frameworks = "OpenCCBridge.xcframework"
s.source_files = "SwiftOpenCC/Sources/OpenCC"
s.preserve_paths = ["SwiftOpenCC/Sources/OpenCCBridge/include", "OpenCCBridge.xcframework"]
s.xcconfig = {
"HEADER_SEARCH_PATHS" => "#{File.join(File.dirname(__FILE__), "SwiftOpenCC/Sources/OpenCCBridge/include")} $(PODS_ROOT)/OpenCC/SwiftOpenCC/Sources/OpenCCBridge/include",
"OTHER_LDFLAGS" => "-ObjC -lc++",
"OTHER_CFLAGS" => "-fembed-bitcode",
}
s.frameworks = "OpenCCBridge"
s.swift_versions = ["5.0", "5.1", "5.5"]
s.resource = "SwiftOpenCC/OpenCCDictionary.bundle"
s.prepare_command = "/bin/sh build.sh"
end