|
Pod::Spec.new do |s| |
|
s.name = 'cocos2d' |
|
s.license = 'MIT' |
|
s.version = '2.0.0' |
|
s.summary = 'cocos2d for iPhone is a framework for building 2D games, demos, and other graphical/interactive applications.' |
|
s.description = 'cocos2d for iPhone is a framework for building 2D games, demos, and other graphical/interactive applications for iPod Touch, iPhone, iPad and Mac. It is based on the cocos2d design but instead of using python it, uses objective-c.' |
|
s.homepage = 'http://www.cocos2d-iphone.org' |
|
s.author = { 'Ricardo Quesada' => '[email protected]', 'Zynga Inc.' => 'https://zynga.com/' } |
|
s.source = {:git => 'https://github.com/cocos2d/cocos2d-iphone.git', :tag => 'release-2.0'} |
|
|
|
common_sources = FileList['cocos2d/**/*.{h,m,c}'].exclude(/Platforms\/.+\//) + |
|
FileList['external/libpng/*.{h,c}'].exclude(/pngtest/) + |
|
['external/kazmath/src/**/*.{c,h}', 'external/kazmath/include/**/*.{c,h}'] |
|
s.osx.source_files = common_sources + ['cocos2d/Platforms/Mac/*.{h,m}'] |
|
s.ios.source_files = common_sources + ['cocos2d/Platforms/iOS/*.{h,m}'] |
|
s.xcconfig = { 'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/cocos2d/external/kazmath/include"' } |
|
s.frameworks = ["OpenGLES", "QuartzCore", "GameKit"] |
|
s.library = 'z' |
|
|
|
s.subspec 'CocosDenshion' do |p| |
|
common_sources2 = ['CocosDenshion/CocosDenshion/*.{h,m}', 'CocosDenshion/CocosDenshionExtras/CDXPropertyModifierAction.{h,m}'] |
|
p.ios.source_files = common_sources2 |
|
p.osx.source_files = common_sources2 + ['CocosDenshion/CocosDenshionExtras/CDXMacOSXSupport.{h,m}'] |
|
p.frameworks = ["OpenAL", "AVFoundation", "AudioToolbox"] |
|
end |
|
|
|
s.prefix_header_contents = ''' |
|
#define CC_ENABLE_GL_STATE_CACHE 1 |
|
''' |
|
|
|
def s.copy_header_mapping(from) |
|
from.relative_path_from(Pathname.new('cocos2d')) |
|
end |
|
end |