Skip to content

Instantly share code, notes, and snippets.

@lxcid
Last active December 22, 2015 02:27
Show Gist options
  • Save lxcid/91201169c552187ccfca to your computer and use it in GitHub Desktop.
Save lxcid/91201169c552187ccfca to your computer and use it in GitHub Desktop.
A custom CocoaPods Spec for google-toolbox-for-mac
Pod::Spec.new do |s|
s.name = "google-toolbox-for-mac"
s.version = "2.0.0.0.1"
s.summary = "Mirror of http://google-toolbox-for-mac.googlecode.com"
s.description = <<-DESC
A collection of source from different Google projects that may be
of use to developers working other Mac projects.
DESC
s.homepage = "https://github.com/lxcid/google-toolbox-for-mac"
s.license = { :type => 'Apache License, Version 2.0', :file => 'COPYING' }
s.author = { "thomasvl" => "thomasvl@google.com" }
s.ios.deployment_target = "7.0"
s.osx.deployment_target = "10.9"
s.source = {
:git => "https://github.com/lxcid/google-toolbox-for-mac.git",
:tag => "2.0.0.0"
}
s.framework = "Foundation", "CoreGraphics"
s.requires_arc = false
s.subspec 'Core' do |ss|
ss.source_files = 'GTMDefines.h'
end
s.subspec 'DebugUtils' do |ss|
ss.dependency 'google-toolbox-for-mac/Core'
ss.source_files = 'DebugUtils/**/*.{h,m}'
ss.exclude_files = 'DebugUtils/**/*Test.m'
end
s.subspec 'Foundation' do |ss|
ss.subspec 'HTML' do |sss|
sss.dependency 'google-toolbox-for-mac/Core'
sss.source_files = 'Foundation/GTMNSString+HTML.{h,m}'
end
ss.subspec 'Others' do |sss|
sss.dependency 'google-toolbox-for-mac/Core'
sss.dependency 'google-toolbox-for-mac/DebugUtils'
sss.source_files = 'Foundation/**/*.{h,m}'
sss.exclude_files = [
'Foundation/**/*Test.m',
# defined in subspec HTML
'Foundation/GTMNSString+HTML.{h,m}'
]
sss.ios.exclude_files = [
'Foundation/GTMAbstractDOListener.{h,m}',
'Foundation/GTMFileSystemKQueue.{h,m}',
'Foundation/GTMFourCharCode.{h,m}',
'Foundation/GTMNSAppleEventDescriptor+Foundation.{h,m}',
'Foundation/GTMNSAppleEventDescriptor+Handler.{h,m}',
'Foundation/GTMNSAppleScript+Handler.{h,m}',
'Foundation/GTMNSFileManager+Carbon.{h,m}',
'Foundation/GTMNSString+FindFolder.{h,m}',
'Foundation/GTMScriptRunner.{h,m}',
'Foundation/GTMTransientRootProxy.{h,m}',
'Foundation/GTMTransientRootPortProxy.{h,m}'
]
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment