forked from onizet/html2openxml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
96 lines (81 loc) · 2.46 KB
/
makefile
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Mono CSharp Compiler
CSC=mcs
CSCFLAGS=/nologo /warn:4 /debug:pdbonly /o /nowarn:3003
# Resource compiler flags
#Fix resgen paths in mono
RESGEN=export MONO_IOMAP=all; resgen
RC=rc
RCFLAGS=/usesourcepath
# Source dirs
SRCDIR=./Trunk
PROPDIR=$(SRCDIR)/Properties
COLLDIR=$(SRCDIR)/Collections
UTILDIR=$(SRCDIR)/Utilities
PRIMDIR=$(SRCDIR)/Primitives
# Build dirs
BUILDDIR=$(SRCDIR)/build
APIBLDDIR=$(BUILDDIR)/HtmlToOpenXML
OPENXMLDLLDOC=index.xml
HTML2OPENXMLDLL=HtmlToOpenXML.dll
# Output
FILE_DLL=$(APIBLDDIR)/$(HTML2OPENXMLDLL)
# Documentation File
DOC=$(APIBLDDIR)/$(OPENXMLDLLDOC)
# Target
TARGET=/target:library
# References
REFERENCES=-r:OpenXMLLib.dll,System.Drawing,WindowsBase
# Sources
FILES_SRC= \
$(SRCDIR)/HtmlDocumentStyle.cs \
$(PROPDIR)/PredefinedStyles.Designer.cs \
$(PROPDIR)/AssemblyInfo.cs \
$(SRCDIR)/HtmlConverter.ProcessTag.cs \
$(SRCDIR)/WebProxy.cs \
$(SRCDIR)/StyleEventArgs.cs \
$(SRCDIR)/HtmlEnumerator.cs \
$(SRCDIR)/HtmlConverter.cs \
$(SRCDIR)/ProvisionImageEventArgs.cs \
$(COLLDIR)/RunStyleCollection.cs \
$(COLLDIR)/HtmlAttributeCollection.cs \
$(COLLDIR)/HtmlTableSpanCollection.cs \
$(COLLDIR)/OpenXmlStyleCollectionBase.cs \
$(COLLDIR)/OpenXmlDocumentStyleCollection.cs \
$(COLLDIR)/NumberingListStyleCollection.cs \
$(COLLDIR)/ParagraphStyleCollection.cs \
$(COLLDIR)/TableContext.cs \
$(COLLDIR)/TableStyleCollection.cs \
$(UTILDIR)/ImageHeader.cs \
$(UTILDIR)/OpenXmlExtension.cs \
$(UTILDIR)/WebClientEx.cs \
$(UTILDIR)/ImageProvisioningProvider.cs \
$(UTILDIR)/Logging.cs \
$(UTILDIR)/ConverterUtility.cs \
$(UTILDIR)/HttpUtility.cs \
$(PRIMDIR)/Unit.cs \
$(PRIMDIR)/HtmlFont.cs \
$(PRIMDIR)/SideBorder.cs \
$(PRIMDIR)/UnitMetric.cs \
$(PRIMDIR)/FontWeight.cs \
$(PRIMDIR)/FontStyle.cs \
$(PRIMDIR)/Margin.cs \
$(PRIMDIR)/FontVariant.cs \
$(PRIMDIR)/HtmlImageInfo.cs \
$(PRIMDIR)/DataUri.cs \
$(PRIMDIR)/HtmlBorder.cs \
$(PRIMDIR)/HtmlTableSpan.cs \
$(SRCDIR)/Configuration\ enum.cs
PREDEFSTYLES=$(PROPDIR)/PredefinedStyles
RESOURCE=\
/resource:$(PREDEFSTYLES).resources
# Rules
$(FILE_DLL): $(PREDEFSTYLES).resources
mkdir -p $(APIBLDDIR)
$(CSC) $(CSCFLAGS) /out:$@ $(TARGET) $(FILES_SRC) $(RESOURCE) $(OXLIB) $(REFERENCES) /doc:$(DOC)
$(PREDEFSTYLES).resources: $(PREDEFSTYLES).resx
$(RESGEN) $(RCFLAGS) $(PREDEFSTYLES).resx $@
build: $(FILE_DLL)
.PHONY: clean
clean:
rm -rf $(APIBLDDIR)
rm -f $(PREDEFSTYLES).resources