Using source libraries - devboy/buildr_as3 GitHub Wiki

You can add additional sources to your project via compile.from, just point it to a directory containing your source-files. In this example I've added an additional source directory to lib/main/as3/RedCircle.

compile.from _(:lib,:main,:as3,:RedCircle)

The whole buildfile will look like this:

require "buildr/as3"

define "UsingSourceLibraries" do

  compile.using :mxmlc,
                :flexsdk => FlexSDK.new("4.5.0.20967"),
                :main => _(:source, :main, :as3, "Main.as")

  compile.from _(:lib,:main,:as3,:RedCircle)

end

You can add as many sources directories as you want.

You can find the example project here.