def __init__(self):
GitHubPackage.__init__(self, 'mono', 'msbuild', '15.0',
- git_branch='xplat-c8p')
+ git_branch='xplat-master')
def build(self):
self.sh('./cibuild.sh --scope Compile --target Mono --host Mono')
self.sh('cp msbuild-mono-deploy.in %s/msbuild' % bindir)
+ xbuild_dir = os.path.join(self.staged_prefix, 'lib/mono/xbuild')
+ new_xbuild_tv_dir = os.path.join(xbuild_dir, self.version)
+ os.makedirs(new_xbuild_tv_dir)
+
+ self.sh('mv %s/Microsoft.Common.props %s' %
+ (new_location, new_xbuild_tv_dir))
+ self.sh('cp -R nuget-support/tv/ %s' % new_xbuild_tv_dir)
+ self.sh('cp -R nuget-support/tasks-targets/ %s/' % xbuild_dir)
+ for dep in glob.glob("%s/Microsoft/NuGet/*" % xbuild_dir):
+ self.sh('ln -s %s %s' % (dep, xbuild_dir))
+
for line in fileinput.input('%s/msbuild' % bindir, inplace=True):
line = line.replace('@bindir@', '%s/bin' % self.staged_prefix)
line = line.replace(
self.staged_prefix)
print line
- for excluded in glob.glob("%s/*UnitTests*" % new_location):
- self.rm(excluded)
+ patterns = ["*UnitTests*", "*xunit*", "NuGet*", "System.Runtime.InteropServices.RuntimeInformation.dll",
+ "Roslyn/csc.exe*"]
+
+ for pattern in patterns:
+ for excluded in glob.glob("%s/%s" % (new_location, pattern)):
+ self.rm(excluded)
- for excluded in glob.glob("%s/*xunit*" % new_location):
- self.rm(excluded)
MSBuild()