-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathAssociatedObject.podspec
42 lines (32 loc) · 1.46 KB
/
AssociatedObject.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
34
35
36
37
38
39
40
41
42
Pod::Spec.new do |s|
s.name = "AssociatedObject"
s.version = "0.10.3"
s.summary = "Swift Macro for allowing variable declarations even in class extensions."
s.description = <<-DESC
Swift Macro for allowing variable declarations even in class extensions.
DESC
s.homepage = "https://github.com/p-x9/AssociatedObject"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "p-x9" => "https://github.com/p-x9" }
s.ios.deployment_target = "13.0"
s.tvos.deployment_target = "13.0"
s.osx.deployment_target = "10.15"
s.watchos.deployment_target = "6.0"
s.source = { :git => "https://github.com/p-x9/AssociatedObject.git", :tag => "#{s.version}" }
s.prepare_command = 'swift build -c release && cp -f .build/release/AssociatedObjectPlugin ./Binary'
s.source_files = "Sources/AssociatedObject/**/*.{c,h,m,swift}", 'Sources/AssociatedObjectC/**/*.{c,h,m,swift}'
s.swift_versions = "5.9"
# CocoaPods do not support Linux
# s.dependency "ObjectAssociation", "0.5.0"
s.preserve_paths = ["Binary/AssociatedObjectPlugin"]
s.pod_target_xcconfig = {
'OTHER_SWIFT_FLAGS' => [
'-load-plugin-executable ${PODS_ROOT}/AssociatedObject/Binary/AssociatedObjectPlugin#AssociatedObjectPlugin'
]
}
s.user_target_xcconfig = {
'OTHER_SWIFT_FLAGS' => [
'-load-plugin-executable ${PODS_ROOT}/AssociatedObject/Binary/AssociatedObjectPlugin#AssociatedObjectPlugin'
]
}
end