没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > rake-compiler-classes |
rake-compiler-classes
|
0 | 0 | 35 |
贡献者 | 讨论 | 代码提交 |
RCompCompile your applications with Rake and Ruby!This project currently targets .NET applications but it could be extended to include various other languages and platforms. Tools like MSBuild and NAnt are great but they work with sometimes cryptic configuration files. If you have a small project and you would like to automate your builds with Rake and Ruby, this project may be for you!
How ToHere's a simple task that compiles all of the source files in the "src" directory into an executable along with a debug file:
RComp::DotNet::CscTask.new do |t|
Dir.glob("src/*.cs").each { |input| t.inputs << input}
t.references << "System.Data.dll"
t.target = "winexe"
t.out = "bin/MyProgram.exe"
t.debug = true
endCompiler OptionsRComp can easily be customized. You can control compiler options through instance accessors like target but you can also add options using these methods:
add_option(name, value)RComp :DotNet::CscTask.new do |t|
t.add_option :platform, "x64"
endcompiler_optionsRComp :DotNet::CscTask.new do |t|
t.compiler_options[:platform] = "/platform:x64"
end