forked from defagos/CoconutKit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCoconutKit.podspec
45 lines (38 loc) · 2.34 KB
/
CoconutKit.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
43
44
45
Pod::Spec.new do |s|
s.name = 'CoconutKit'
s.version = '3.0.rc4'
s.license = 'MIT'
s.summary = 'CoconutKit is a library of high-quality iOS components.'
s.homepage = 'https://github.com/defagos/CoconutKit'
s.author = { 'Samuel Défago' => '[email protected]' }
s.source = { :git => 'https://github.com/defagos/CoconutKit.git', :tag => s.version.to_s }
s.social_media_url = 'http://twitter.com/defagos'
s.platform = :ios, '7.0'
s.description = <<-DESC
CoconutKit is a productivity framework for iOS, crafted with love and focusing on ease of use. It provides a convenient, Cocoa-friendly toolbox to help you efficiently write robust and polished native applications.
DESC
s.prefix_header_file = 'CoconutKit/CoconutKit-Prefix.pch'
s.frameworks = 'CoreData', 'CoreGraphics', 'CoreText', 'Foundation', 'MessageUI', 'MobileCoreServices', 'QuartzCore', 'QuickLook', 'UIKit', 'WebKit'
# The spec uses ARC for compilation. Files which cannot be compiled using ARC are moved to a subspec
non_arc_source_files = 'CoconutKit/Sources/Externals/MAZeroingWeakRef-75695a81/*.{h,m}'
# ARC source files
s.requires_arc = true
s.source_files = 'CoconutKit/Sources/**/*.{h,m}'
s.exclude_files = non_arc_source_files
# Non-ARC source files
s.subspec 'fno-objc-arc' do |source_file|
source_file.requires_arc = false
source_file.source_files = non_arc_source_files
end
# Process the publicHeaders.txt file listing public headers to generate a public header directory as well as a global header file
# TODO: An additional CocoaPods temporary fix has been added, see https://github.com/CocoaPods/CocoaPods/issues/1653.
s.preserve_paths = 'Tools/Scripts/GeneratedHeaders', 'Tools/Scripts/GeneratedResources'
s.prepare_command = <<-CMD
ruby Tools/Scripts/fix_cocoapods_localized_strings.rb
ruby Tools/Scripts/generate_public_headers.rb
CMD
s.public_header_files = 'Tools/Scripts/GeneratedHeaders/*.h'
# Do not use CoconutKit-resources target, use CocoaPods native bundle creation mechanism
# TODO: Replace with localized resources with 'CoconutKit-resources/*.lproj' when the bug above has been fixed
s.resource_bundle = { 'CoconutKit-resources' => ['CoconutKit-resources/{HTML,Images,Nibs}/*', 'Tools/Scripts/GeneratedResources/*.lproj'] }
end