forked from SwiftyLab/MetaCodable
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMetaCodableMacroPluginCore.podspec
More file actions
23 lines (19 loc) · 955 Bytes
/
MetaCodableMacroPluginCore.podspec
File metadata and controls
23 lines (19 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Pod::Spec.new do |s|
require_relative 'Utils/spec'
s.extend MetaCodable::Spec
s.module_name = "PluginCore"
s.define(false) # Don't auto-set source_files
s.dependency 'SwiftSyntax/Lib', *s.swift_syntax_constraint
s.dependency 'SwiftSyntax/Diagnostics', *s.swift_syntax_constraint
s.dependency 'SwiftSyntax/Builder', *s.swift_syntax_constraint
s.dependency 'SwiftSyntax/Macros', *s.swift_syntax_constraint
# Use vendored swift-collections instead of external dependency
# Previously: s.dependency 'SwiftyCollections/OrderedCollections', '~> 1.0.4'
# Include PluginCore sources (now includes OrderedCollections internally)
s.source_files = "Sources/#{s.module_name}/**/*.swift"
# Exclude test files from OrderedCollections
s.exclude_files = "Sources/#{s.module_name}/OrderedCollections/**/*+Testing.swift"
s.pod_target_xcconfig = {
'OTHER_SWIFT_FLAGS' => "-Xfrontend -package-name -Xfrontend MetaCodable"
}
end