Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 56 lines (51 sloc) 3.113 kb
7b3d3f1 @kurtschelfthout Added first version of build script. Can run tests. Making distribution ...
kurtschelfthout authored
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <PropertyGroup>
4 <Configuration Condition=" '$(Configuration)' == '' ">Debug 3.5</Configuration>
5 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6 <cljc>Clojure.Compile.exe</cljc>
7 <clji>Clojure.Main.exe</clji>
8 </PropertyGroup>
9
10 <!--Is there a way to avoid this duplication? This is also encoded in the project files, although relative to a different path -->
11 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug 3.5|AnyCPU' ">
12 <OutputPath>..\bin\3.5\Debug\</OutputPath>
13 </PropertyGroup>
14 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release 3.5|AnyCPU' ">
15 <OutputPath>..\bin\3.5\Release\</OutputPath>
16 </PropertyGroup>
17 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug 4.0|AnyCPU' ">
18 <OutputPath>..\bin\4.0\Debug\</OutputPath>
19 </PropertyGroup>
20 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release 4.0|AnyCPU' ">
21 <OutputPath>..\bin\4.0\Release\</OutputPath>
22 </PropertyGroup>
23
24 <Target Name="Build">
25 <!--the continue on error should be removed once SimpleConsole works/is removed-->
26 <MSBuild Projects="ClojureCLR.sln" Properties="Configuration=$(Configuration)" ContinueOnError="true"/>
27 </Target>
28
29 <Target Name="CompileTest" DependsOnTargets="Build">
30 <Exec Command="$(cljc) clojure.test-clojure.genclass.examples clojure.test-clojure.protocols.examples clojure.test-clojure.protocols.more-examples clojure.test-clojure.repl.example"
31 WorkingDirectory="$(OutputPath)"/>
32 </Target>
33
34 <Target Name="Test" DependsOnTargets="Build;CompileTest">
35 <Copy SkipUnchangedFiles="true" SourceFiles="runtests.clj" DestinationFolder="$(OutputPath)" />
36 <Exec Command="$(OutputPath)\$(clji) runtests.clj"/>
37 </Target>
38
39 <Target Name="Dist" DependsOnTargets="Build">
40 <ItemGroup>
41 <!--DLR-->
089e00c @kurtschelfthout Added Dist target to build script - tested that it works.
kurtschelfthout authored
42 <Dlls Include="$(OutputPath)\Microsoft.*" />
7b3d3f1 @kurtschelfthout Added first version of build script. Can run tests. Making distribution ...
kurtschelfthout authored
43 <!--Clojure dlls and exes-->
089e00c @kurtschelfthout Added Dist target to build script - tested that it works.
kurtschelfthout authored
44 <Dlls Include="$(OutputPath)\Clojure.*"
45 Exclude="$(OutputPath)\Clojure.Tests.dll;$(OutputPath)\Clojure.Tests.pdb;
46 $(OutputPath)\Clojure.Source.dll;$(OutputPath)\Clojure.Source.pdb;
47 $(OutputPath)\clojure.test-clojure.genclass.examples.ExampleClass.dll;
48 $(OutputPath)\clojure.test-clojure.genclass.examples.ExampleClass.pdb;
49 $(OutputPath)\Clojure.Main.vshost.exe;$(OutputPath)\Clojure.Main.vshost.exe.manifest" />
7b3d3f1 @kurtschelfthout Added first version of build script. Can run tests. Making distribution ...
kurtschelfthout authored
50 <!--clj and AOT clj files-->
089e00c @kurtschelfthout Added Dist target to build script - tested that it works.
kurtschelfthout authored
51 <CljFiles Include="$(OutputPath)\clojure\**\*" Exclude="$(OutputPath)\clojure\test_clojure\**\*" />
7b3d3f1 @kurtschelfthout Added first version of build script. Can run tests. Making distribution ...
kurtschelfthout authored
52 </ItemGroup>
089e00c @kurtschelfthout Added Dist target to build script - tested that it works.
kurtschelfthout authored
53 <Copy SourceFiles="@(Dlls)" DestinationFolder="..\dist\$(Configuration)" SkipUnchangedFiles="true" />
54 <Copy SourceFiles="@(CljFiles)" DestinationFolder="..\dist\$(Configuration)\clojure\%(RecursiveDir)" SkipUnchangedFiles="true" />
7b3d3f1 @kurtschelfthout Added first version of build script. Can run tests. Making distribution ...
kurtschelfthout authored
55 </Target>
56 </Project>
Something went wrong with that request. Please try again.