forked from zanders3/json
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·45 lines (36 loc) · 1.06 KB
/
build.sh
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
#!/bin/bash
set -x
rm -rf bin/
mkdir bin/
cp packages/NUnit.*/lib/nunit.framework.dll bin/
################################################################################
echo 'using System;' > assembly.cs
echo 'using System.Reflection;' >> assembly.cs
echo 'using System.Runtime.CompilerServices;' >> assembly.cs
echo '[assembly:AssemblyTitle ("Json")]' >> assembly.cs
echo '[assembly:AssemblyDescription ("A really simple C# JSON parser.")]' >> assembly.cs
echo '[assembly:AssemblyCopyright ("Alex Parker")]' >> assembly.cs
echo '[assembly:CLSCompliant (true)]' >> assembly.cs
echo '[assembly: AssemblyVersion ("1.0.0")]' >> assembly.cs
mcs \
-unsafe \
-debug \
-define:DEBUG \
-out:bin/TinyJson.dll \
-target:library \
-recurse:assembly.cs \
-recurse:src/*.cs \
/doc:bin/TinyJson.xml \
-lib:bin/
rm assembly.cs
################################################################################
mcs \
-unsafe \
-debug \
-define:DEBUG \
-out:bin/TinyJson.Test.dll \
-target:library \
-reference:TinyJson.dll \
-reference:nunit.framework.dll \
-recurse:test/*.cs \
-lib:bin/