#!/bin/sh # # run this script from the cocos2d directory # eg: $ cd ~/src/cocos2d-iphone/cocos2d/ # mv ccDeprecated.h ccDeprecated.xxx # cocos2d gen_bridge_metadata -F complete --no-64-bit -c '-DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -ISupport -IPlatforms -I. -I../external/Chipmunk/include/chipmunk/. -I../external/Chipmunk/include/chipmunk/constraints/.' *.h Support/*.h Platforms/*.h -o ../external/JavaScript/jsbindings/configs/cocos2d/cocos2d.bridgesupport # cocos2d-mac gen_bridge_metadata -F complete --64-bit -c '-D__CC_PLATFORM_MAC -ISupport -IPlatforms -IPlatforms/Mac -I.' *.h Platforms/*.h Platforms/Mac/*.h -o ../external/JavaScript/jsbindings/configs/cocos2d/cocos2d-mac.bridgesupport # cocos2d-ios gen_bridge_metadata -F complete --no-64-bit -c '-D__CC_PLATFORM_IOS -ISupport -IPlatforms -IPlatforms/iOS -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/.' *.h Platforms/*.h Platforms/iOS/*.h -o cocos2d-ios.bridgesupport -e cocos2d-ios-exceptions.bridgesupport mv ccDeprecated.xxx ccDeprecated.h