forked from kstenerud/ObjectAL-for-iPhone
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathcocos2d.podspec
37 lines (30 loc) · 1.72 KB
/
cocos2d.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
# Copy of https://github.com/CocoaPods/Specs/blob/master/cocos2d/2.1/cocos2d.podspec
#
# Changes:
# - changed s.frameworks to s.ios.frameworks so that it works with OSX.
# - added minimum deployment targets since the C++ library only works on iOS 5.0+ and OSX 10.7+
Pod::Spec.new do |s|
s.name = 'cocos2d'
s.license = 'MIT'
s.version = '2.1'
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' => 'ricardoquesada@gmail.com', 'Zynga Inc.' => 'https://zynga.com/' }
s.source = {:git => 'https://github.com/cocos2d/cocos2d-iphone.git', :tag => 'release-2.1'}
s.source_files = 'cocos2d/**/*.{h,m,mm,c}', 'external/kazmath/src/**/*.{c,h}', 'external/kazmath/include/**/*.{c,h}', 'external/libpng/*.{h,c}'
s.exclude_files = 'external/libpng/pngtest.c', 'external/libpng/example.c'
s.xcconfig = { 'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/cocos2d/external/kazmath/include"' }
s.ios.frameworks = ["OpenGLES", "QuartzCore", "GameKit", "CoreText"]
s.library = 'z'
s.subspec 'CocosDenshion' do |p|
p.source_files = 'CocosDenshion/*.{h,m}'
p.frameworks = ["OpenAL", "AVFoundation", "AudioToolbox"]
end
s.prefix_header_contents = '''
#define CC_ENABLE_GL_STATE_CACHE 1
'''
s.header_mappings_dir = 'cocos2d'
s.ios.deployment_target = '5.0'
s.osx.deployment_target = '10.7'
end