29 строки
918 B
Plaintext
29 строки
918 B
Plaintext
require "rubygems"
|
|
require "bundler/setup"
|
|
|
|
require 'rake/clean'
|
|
require File.expand_path('rakelib/lib/examples_to_code.rb', File.dirname(__FILE__))
|
|
require 'date'
|
|
|
|
DOT_NET_PATH = "#{ENV["SystemRoot"]}\\Microsoft.NET\\Framework\\v4.0.30319"
|
|
NUNIT_EXE = File.expand_path "../ThirdParty/NUnit/bin/net-2.0/nunit-console.exe"
|
|
NUGET_EXE = File.expand_path "../ThirdParty/NuGet/NuGet.exe"
|
|
ZIP_EXE = File.expand_path "../ThirdParty/7z/7z.exe"
|
|
SOURCE_PATH = File.expand_path "../Source"
|
|
OUTPUT_PATH = File.expand_path "../Output"
|
|
|
|
ALL_TARGETS = ["NET35", "NET40"]
|
|
EXPERIMENTAL_TARGETS = []
|
|
|
|
ENV["config"] = "Debug" if ENV["config"].nil?
|
|
ENV["target"] = ALL_TARGETS.first if ENV["target"].nil?
|
|
|
|
def get_targets()
|
|
return ALL_TARGETS if ENV["target"]=="ALL"
|
|
(ALL_TARGETS + EXPERIMENTAL_TARGETS).select { |x| ENV["target"].split(',').include? x }
|
|
end
|
|
CONFIG = ENV["config"]
|
|
TARGETS = get_targets()
|
|
|
|
CLEAN.include(OUTPUT_PATH)
|