Uh oh!
There was an error while loading. Please reload this page.
forked from SwiftyLab/MetaCodable
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMetaCodable.podspec
More file actions
Latest commit
29 lines (25 loc) · 1.17 KB
/
Copy pathMetaCodable.podspec
File metadata and controls
29 lines (25 loc) · 1.17 KB
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
Pod::Spec.newdo |s|
require_relative'Utils/spec'
s.extendMetaCodable::Spec
s.define(false)
s.default_subspec='Macro'
s.subspec'Macro'do |ms|
ms.dependency'MetaCodableMacro',"= #{s.version}"
end
s.subspec'HelperCoders'do |ms|
ms.dependency'MetaCodableHelperCoders',"= #{s.version}"
end
s.test_spec'HelperCodersTests'do |ts|
ts.source_files="Tests/#{s.name}Tests/**/*.swift"
ts.exclude_files="Tests/#{s.name}Tests/DynamicCodable/**/*.swift"
ts.dependency'MetaCodableMacroPluginCore',"= #{s.version}"
ts.dependency'MetaCodableMacroPlugin',"= #{s.version}"
ts.dependency'MetaCodable/Macro',"= #{s.version}"
ts.dependency'MetaCodable/HelperCoders',"= #{s.version}"
ts.dependency'SwiftSyntax/MacrosTestSupport', *s.swift_syntax_constraint
macro_spec=Pod::Specification.from_file(File.join(File.dirname(__FILE__),'MetaCodableMacro.podspec'))
xcconfig=macro_spec.attributes_hash['user_target_xcconfig']
xcconfig['OTHER_SWIFT_FLAGS']="#{xcconfig['OTHER_SWIFT_FLAGS']} -Xfrontend -package-name -Xfrontend MetaCodable -Xfrontend -swift-version -Xfrontend 6"
ts.pod_target_xcconfig=xcconfig
end
end