forked from openhome/ohNet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
T4Linux.mak
74 lines (57 loc) · 4.19 KB
/
T4Linux.mak
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
62
63
64
65
66
67
68
69
70
71
72
73
# Makefile for T4 on linux
# Could be extended to support Mac in future
# Macros used by T4.mak
toolsDir = Build/Tools/
t4 = mono $(toolsDir)TextTransform.exe
ohNetGen = mono $(toolsDir)OhNetGen.exe
upnpServiceXml = $(toolsDir)UpnpServiceXml.dll
upnpServiceMake = $(toolsDir)UpnpServiceMake.dll
argumentProcessor = $(toolsDir)ArgumentProcessor.dll
tt = $(toolsDir)UpnpServiceXml.dll $(toolsDir)UpnpServiceMake.dll $(toolsDir)Mono.TextTemplating.dll $(toolsDir)TextTransform.exe $(toolsDir)OhNetGen.exe
tt : $(tt)
dllsources = OpenHome/Net/T4/TextTemplating/Mono.TextTemplating/AssemblyInfo.cs \
OpenHome/Net/T4/TextTemplating/Mono.TextTemplating/Microsoft.VisualStudio.TextTemplating/DirectiveProcessor.cs \
OpenHome/Net/T4/TextTemplating/Mono.TextTemplating/Microsoft.VisualStudio.TextTemplating/DirectiveProcessorException.cs \
OpenHome/Net/T4/TextTemplating/Mono.TextTemplating/Microsoft.VisualStudio.TextTemplating/RequiresProvidesDirectiveProcessor.cs \
OpenHome/Net/T4/TextTemplating/Mono.TextTemplating/Microsoft.VisualStudio.TextTemplating/ToStringHelper.cs \
OpenHome/Net/T4/TextTemplating/Mono.TextTemplating/Microsoft.VisualStudio.TextTemplating/ITextTemplatingEngineHost.cs \
OpenHome/Net/T4/TextTemplating/Mono.TextTemplating/Microsoft.VisualStudio.TextTemplating/Engine.cs \
OpenHome/Net/T4/TextTemplating/Mono.TextTemplating/Microsoft.VisualStudio.TextTemplating/TextTransformation.cs \
OpenHome/Net/T4/TextTemplating/Mono.TextTemplating/Mono.TextTemplating/TemplatingEngine.cs \
OpenHome/Net/T4/TextTemplating/Mono.TextTemplating/Mono.TextTemplating/CrossAppDomainAssemblyResolver.cs \
OpenHome/Net/T4/TextTemplating/Mono.TextTemplating/Mono.TextTemplating/TemplateGenerator.cs \
OpenHome/Net/T4/TextTemplating/Mono.TextTemplating/Mono.TextTemplating/Tokeniser.cs \
OpenHome/Net/T4/TextTemplating/Mono.TextTemplating/Mono.TextTemplating/IExtendedTextTemplatingEngineHost.cs \
OpenHome/Net/T4/TextTemplating/Mono.TextTemplating/Mono.TextTemplating/TemplateSettings.cs \
OpenHome/Net/T4/TextTemplating/Mono.TextTemplating/Mono.TextTemplating/ParsedTemplate.cs \
OpenHome/Net/T4/TextTemplating/Mono.TextTemplating/Mono.TextTemplating/CompiledTemplate.cs
$(toolsDir)Mono.TextTemplating.dll : $(dllsources)
$(mkdir) $(toolsDir)
dmcs /t:library -out:$(toolsDir)Mono.TextTemplating.dll $(dllsources)
exesources = OpenHome/Net/T4/TextTemplating/TextTransform/AssemblyInfo.cs \
OpenHome/Net/T4/TextTemplating/TextTransform/Options.cs \
OpenHome/Net/T4/TextTemplating/TextTransform/TextTransform.cs
$(toolsDir)OhNetGen.exe : $(toolsDir)TextTransform.exe OpenHome/Net/T4/OhNetGen.cs
$(mkdir) $(toolsDir)
dmcs /t:exe /out:$(toolsDir)OhNetGen.exe OpenHome/Net/T4/OhNetGen.cs OpenHome/Net/T4/AssemblyInfo.cs
$(toolsDir)TextTransform.exe : $(toolsDir)Mono.TextTemplating.dll $(exesources)
$(mkdir) $(toolsDir)
dmcs /t:exe -out:$(toolsDir)TextTransform.exe /r:$(toolsDir)Mono.TextTemplating.dll $(exesources)
$(toolsDir)UpnpServiceDescription.xsd : OpenHome/Net/T4/UpnpServiceXml/UpnpServiceDescription.xsd
$(mkdir) $(toolsDir)
rsync OpenHome/Net/T4/UpnpServiceXml/UpnpServiceDescription.xsd $(toolsDir)
$(toolsDir)UpnpServiceTemplate.xsd : OpenHome/Net/T4/UpnpServiceXml/UpnpServiceTemplate.xsd
$(mkdir) $(toolsDir)
rsync OpenHome/Net/T4/UpnpServiceXml/UpnpServiceTemplate.xsd $(toolsDir)
xmlsources = OpenHome/Net/T4/UpnpServiceXml/AssemblyInfo.cs \
OpenHome/Net/T4/UpnpServiceXml/UpnpServiceXml.cs
$(toolsDir)UpnpServiceXml.dll: $(toolsDir)UpnpServiceDescription.xsd $(toolsDir)UpnpServiceTemplate.xsd $(xmlsources)
$(mkdir) $(toolsDir)
dmcs -target:library -out:$(upnpServiceXml) $(xmlsources)
upnpservicemake.sources = OpenHome/Net/T4/UpnpServiceMake/AssemblyInfo.cs \
OpenHome/Net/T4/UpnpServiceMake/UpnpServiceMake.cs
$(toolsDir)UpnpServiceMake.dll : $(upnpservicemake.sources)
$(mkdir) $(toolsDir)
dmcs -target:library -out:$(upnpServiceMake) $(upnpservicemake.sources)
clean-t4:
if test -d $(toolsDir); then $(rmdir) $(toolsDir); fi