require 'rbuild-bundle' require 'rbuild-cfamily' objects = build_objects(:sources => Dir['Source/*.m']) build_bundle(:bundle_name => 'Construction.app', :resources_directory => 'Resources') build(:targets => ['Construction.app/Contents/MacOS/Construction'], :dependencies => ['../RubyGameCommon/RubyGameCommon'], :command => 'cp ../RubyGameCommon/RubyGameCommon Construction.app/Contents/MacOS/Construction', :message => 'Copying RubyGameCommon Executable') build(:targets => ['Construction.app/Contents/Frameworks/OpenAL.framework'], :dependencies => ['../Thirdparty/Root/universal/Frameworks/OpenAL.framework'], :command => 'cp -R ../Thirdparty/Root/universal/Frameworks/OpenAL.framework Construction.app/Contents/Frameworks/', :message => 'Copying OpenAL Framework') build(:targets => ['Construction.app/Contents/Resources/Ruby/SpellChecker.bundle'], :dependencies => objects, :command => "gcc -undefined dynamic_lookup -bundle #{objects.join(' ')} -framework Cocoa -o Construction.app/Contents/Resources/Ruby/SpellChecker.bundle", :message => 'Building SpellChecker Bundle')