Skip to content

Instantly share code, notes, and snippets.

@devboy
Created July 13, 2011 09:23
Show Gist options
  • Save devboy/1079986 to your computer and use it in GitHub Desktop.
Save devboy/1079986 to your computer and use it in GitHub Desktop.
Example buildfile with modules depending on each other
require "buildr/as3"
FLEX_SDK = FlexSDK.new("4.5.0.20967")
define "BuildingModules" do
project.version = "0.0.0"
define "Application" do
compile.using :mxmlc
compile.options[:main] = path_to(:src,:main,:as3,"Application.as")
compile.options[:flexsdk] = FLEX_SDK
compile.with projects("CircleLibrary","LibraryRectangle")
package :swf
end
define "CircleLibrary" do
compile.using :compc
compile.options[:flexsdk] = FLEX_SDK
package :swc
end
define "LibraryRectangle" do
compile.using :aircompc
compile.options[:flexsdk] = FLEX_SDK
package :swc
end
package(:zip).include(project("Application"))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment