if RUBY_PLATFORM =~ /darwin/ then require 'rbuild-bundle' build_bundle(:bundle_name => 'AirHockey.app', :resources_directory => 'Resources') build(:targets => ['AirHockey.app/Contents/MacOS/AirHockey'], :dependencies => ['../RubyGameCommon/RubyGameCommon'], :command => 'cp ../RubyGameCommon/RubyGameCommon AirHockey.app/Contents/MacOS/AirHockey', :message => 'Copying RubyGameCommon Executable') build(:targets => ['AirHockey.app/Contents/Frameworks/OpenAL.framework'], :dependencies => ['../RubyGameCommon/External/openal/macosx/build/OpenAL.framework'], :command => 'cp -r ../RubyGameCommon/External/openal/macosx/build/OpenAL.framework AirHockey.app/Contents/Frameworks/', :message => 'Copying OpenAL Framework') else build(:targets => ['AirHockey'], :dependencies => ['../RubyGameCommon/RubyGameCommon'], :command => 'cp ../RubyGameCommon/RubyGameCommon AirHockey', :message => 'Copying RubyGameCommon Executable') end