1k views
Basic rakefile for ActionScript
This is just an extremely simple rakefile (see Rake) that compiles an ActionScript project:
Ruby
- require 'rake/clean'
- CLOBBER.include('bin-debug/*')
- CLOBBER.include('bin-release/*')
- task :default => ["debug"]
- # Compiles the debug version of the project
- file 'bin-debug/RakeTest.swf' => ['RakeTest.as'] do
- sh "mxmlc --debug=true --static-link-runtime-shared-libraries=true -output=bin-debug/RakeTest.swf PruebaRake.as"
- end
- # Compiles the release version of the project
- file 'bin-release/RakeTest.swf' => ['RakeTest.as'] do
- sh "mxmlc --static-link-runtime-shared-libraries=true -output=bin-release/RakeTest.swf RakeTest.as"
- end
- file 'debug' => 'bin-debug/RakeTest.swf'
- file 'release' => 'bin-release/RakeTest.swf'
Submitted by miguelSantirso about 1 year ago — last modified less than a minute ago