forked from Mervill/UnityLitJson
-
Notifications
You must be signed in to change notification settings - Fork 1
/
LitJson.csproj
61 lines (61 loc) · 2.17 KB
/
LitJson.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="utf-8"?>
<!-- Build file for LitJSON project.
Run as: xbuild LitJson.csproj
Or on Windows: MSBuild LitJson.csproj \t:Build
Although, it probably wouldn't run on Windows anyway due to the whole '/' vs '\' thing, ya'know...
To build and run tests: xbuild LitJson.csproj /t:Test
-->
<Project ToolsVersion="2.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<AssemblyName>LitJson</AssemblyName>
<SourcePath>Source</SourcePath>
<TestPath>Test</TestPath>
<OutputPath>Build</OutputPath>
<LibraryPath>Libraries</LibraryPath>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(SourcePath)/*.cs"/>
</ItemGroup>
<ItemGroup>
<Test Include="$(TestPath)/*.cs"/>
</ItemGroup>
<ItemGroup>
<Reference Include="$(LibraryPath)/nunit.framework.dll"/>
</ItemGroup>
<ItemGroup>
<Resource Include="Test/json-example.txt"/>
</ItemGroup>
<Target Name="Clean">
<RemoveDir Directories="$(OutputPath)" />
</Target>
<Target Name="Build">
<CallTarget Targets="Clean"/>
<MakeDir Directories="$(OutputPath)" Condition="!Exists('$(OutputPath)')"/>
<MakeDir Directories="$(OutputPath)/Release" Condition="!Exists('$(OutputPath)/Release')"/>
<Csc Sources="@(Compile)"
TargetType="library"
OutputAssembly="$(OutputPath)/Release/$(AssemblyName).dll"
EmitDebugInformation="false"
Optimize="true"
DocumentationFile="$(OutputPath)/Release/$(AssemblyName).xml"
DefineConstants="NDEBUG"
/>
</Target>
<Target Name="BuildTest">
<CallTarget Targets="Clean"/>
<MakeDir Directories="$(OutputPath)" Condition="!Exists('$(OutputPath)')"/>
<MakeDir Directories="$(OutputPath)/Debug" Condition="!Exists('$(OutputPath)/Debug)')"/>
<Copy SourceFiles="$(LibraryPath)/nunit.framework.dll" DestinationFolder="$(OutputPath)/Debug"/>
<Csc Sources="@(Compile);@(Test)"
Resources="@(Resource)"
References="@(Reference)"
TargetType="library"
OutputAssembly="$(OutputPath)/Debug/$(AssemblyName).dll"
EmitDebugInformation="true"
/>
</Target>
<Target Name="Test">
<CallTarget Targets="BuildTest"/>
<Exec Command="nunit-console $(OutputPath)/Debug/$(AssemblyName).dll"/>
</Target>
</Project>