Created
April 2, 2015 06:07
-
-
Save dulao5/c8f8e82a2b81b8f598eb to your computer and use it in GitHub Desktop.
build.ios/Podfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
platform :ios, '8.0' | |
inhibit_all_warnings! | |
pod 'msgpack', :path => '../../libSN/middleware/msgpack-c' | |
pod 'OpenSSL', :path => '../../libSN/middleware/openssl-ios' | |
pod 'cocos2dx', :path => '../../libSN/middleware/cocos2dx/cocos2dx' | |
pod 'curl', :path => '../../libSN/middleware/curl-69.2' | |
pod 'Tremor', :path => '../../libSN/middleware/Tremor' | |
pod 'PluginProtocol', :path => '../../libSN/middleware/cocos2dx/plugin/protocols' | |
pod 'cocos2dx-extensions', :path => '../../libSN/middleware/cocos2dx/extensions' | |
pod 'libSN', :path => '../../libSN' | |
pod 'CrashlyticsFramework', '2.2.5.2' | |
post_install do |installer| | |
installer.project.targets.each { |target| | |
case target.name | |
when 'Pods-cocos2dx', 'Pods-cocos2dx-extensions' | |
target.build_configurations.each do |config| | |
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '5.1' if target.name == 'Pods-cocos2dx' | |
config.build_settings['CLANG_CXX_LANGUAGE_STANDARD'] = 'gnu++98'; | |
config.build_settings['CLANG_CXX_LIBRARY'] = 'libstdc++'; | |
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)'] | |
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'COCOS2D_JAVASCRIPT' | |
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'CC_TARGET_OS_IPHONE' | |
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'USE_FILE32API' | |
if config.name == "Debug" | |
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'COCOS2D_DEBUG=1' | |
end | |
end | |
when 'Pods-PluginProtocol' | |
target.build_configurations.each do |config| | |
config.build_settings['CLANG_CXX_LIBRARY'] = 'libstdc++'; | |
end | |
when 'Pods-libSN' | |
target.build_configurations.each do |config| | |
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)'] | |
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'SNLIB_TARGET_IOS' | |
end | |
when 'Pods-curl' | |
target.build_configurations.each do |config| | |
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)'] | |
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'HAVE_CONFIG_H=1' | |
end | |
else | |
end | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment