-
Notifications
You must be signed in to change notification settings - Fork 5
Using source libraries
devboy edited this page Oct 2, 2011
·
2 revisions
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.