summaryrefslogtreecommitdiff
path: root/Jamfile
blob: 6357a47dc502fe2500a6dd0132a2a79a10478c22 (plain)
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
#
# Jamfile for Fitz
#
# mpage -s4 -f -2 -c -H -W110 include/*/*.h */*.c > listing.ps
# ps2pdf -sPAPERSIZE'='a4 listing.ps
#

include $(HOME)/.jamrules ;

HDRS = include filter ;

Library libfitz :
	# util stuff
	#util/cleanname.c
	#util/getopt.c
	#util/strsep.c
	#util/strlcpy.c
	#util/strlcat.c

	# base runtime
	base/cpudep.c
	base/error.c
	base/memory.c
	base/md5.c
	base/arc4.c
	base/rect.c
	base/matrix.c
	base/hash.c
	base/rune.c

	# object
	object/simple.c
	object/array.c
	object/dict.c
	object/print.c
	object/parse.c

	# filter
	filter/buffer.c
	filter/filter.c
	filter/filec.c		# unistd.h
	filter/filer.c		# unistd.h
	filter/filew.c		# unistd.h

	filter/null.c
	filter/arc4filter.c
	filter/pipeline.c

	filter/ahxd.c
	filter/ahxe.c
	filter/a85d.c
	filter/a85e.c
	filter/rld.c
	filter/rle.c
	filter/predict.c
	filter/lzwd.c
	filter/lzwe.c

	filter/faxd.c
	filter/faxdtab.c
	filter/faxe.c
	filter/faxetab.c

	filter/flate.c		# libz
	filter/dctd.c		# libjpeg
	filter/dcte.c		# libjpeg
	filter/jbig2d.c		# jbig2dec
	filter/jpxd.c		# jasper

	# tree
	tree/cmap.c
	tree/font.c
	tree/colorspace.c
	tree/image.c
	tree/shade.c

	tree/tree.c
	tree/node1.c
	tree/node2.c
	tree/text.c
	tree/path.c

	tree/debug.c
	tree/optimize.c

	# render
	render/glyphcache.c
	render/pixmap.c
	render/edgelist.c
	render/scanconv.c
	render/fill.c
	render/stroke.c
	render/scale.c
	render/rastshade.c
	render/rastport.c
	render/rastppc.c
	render/rastsparc.c
	render/rastx86.c
	render/render.c
;

Library libmupdf :
	mupdf/lex.c
	mupdf/parse.c
	mupdf/crypt.c

	mupdf/open.c
	mupdf/repair.c
	mupdf/save.c
	mupdf/xref.c
	mupdf/stream.c
	mupdf/doctor.c

	mupdf/nametree.c
	mupdf/outline.c
	mupdf/pagetree.c

	mupdf/function.c
	mupdf/cmap.c
	mupdf/fontagl.c
	mupdf/fontenc.c
	mupdf/fontfile.c
	mupdf/unicode.c
	mupdf/font.c
	mupdf/type3.c
	mupdf/colorspace1.c
	mupdf/colorspace2.c
	mupdf/image1.c
	mupdf/image2.c
	mupdf/xobject.c
	mupdf/pattern.c
	mupdf/shade.c
	mupdf/resources.c
	mupdf/page.c
	mupdf/build.c
	mupdf/interpret.c
	;

rule HexDump
{
	DEPENDS $(<) : $(>) ;
	Clean clean : $(<) ;
}

actions HexDump
{
	xxd -i $(>) | sed -e 's/data_//g;s/, /,/g' > $(<) ;
}

HexDump data/Dingbats.c : data/Dingbats.cff ;
HexDump data/NimbusMonL-Bold.c : data/NimbusMonL-Bold.cff ;
HexDump data/NimbusMonL-BoldObli.c : data/NimbusMonL-BoldObli.cff ;
HexDump data/NimbusMonL-Regu.c : data/NimbusMonL-Regu.cff ;
HexDump data/NimbusMonL-ReguObli.c : data/NimbusMonL-ReguObli.cff ;
HexDump data/NimbusRomNo9L-Medi.c : data/NimbusRomNo9L-Medi.cff ;
HexDump data/NimbusRomNo9L-MediItal.c : data/NimbusRomNo9L-MediItal.cff ;
HexDump data/NimbusRomNo9L-Regu.c : data/NimbusRomNo9L-Regu.cff ;
HexDump data/NimbusRomNo9L-ReguItal.c : data/NimbusRomNo9L-ReguItal.cff ;
HexDump data/NimbusSanL-Bold.c : data/NimbusSanL-Bold.cff ;
HexDump data/NimbusSanL-BoldItal.c : data/NimbusSanL-BoldItal.cff ;
HexDump data/NimbusSanL-Regu.c : data/NimbusSanL-Regu.cff ;
HexDump data/NimbusSanL-ReguItal.c : data/NimbusSanL-ReguItal.cff ;
HexDump data/StandardSymL.c : data/StandardSymL.cff ;
HexDump data/URWChanceryL-MediItal.c : data/URWChanceryL-MediItal.cff ;

Library libfonts :
	data/Dingbats.c
	data/NimbusMonL-Bold.c
	data/NimbusMonL-BoldObli.c
	data/NimbusMonL-Regu.c
	data/NimbusMonL-ReguObli.c
	data/NimbusRomNo9L-Medi.c
	data/NimbusRomNo9L-MediItal.c
	data/NimbusRomNo9L-Regu.c
	data/NimbusRomNo9L-ReguItal.c
	data/NimbusSanL-Bold.c
	data/NimbusSanL-BoldItal.c
	data/NimbusSanL-Regu.c
	data/NimbusSanL-ReguItal.c
	data/StandardSymL.c
	data/URWChanceryL-MediItal.c
	;

LINKLIBS =
	-lfreetype
	-ljbig2dec
	-ljasper
	-ljpeg
	-lz 
	-lm
	;

LINKLIBS on x11pdf = -lX11 -lXext $(LINKLIBS) ;

Main pdfclean : test/pdfclean.c ;
Main pdfdebug : test/pdfdebug.c ;
Main pdfmerge : test/pdfmerge.c ;
Main pdfrip : test/pdfrip.c ;
Main pdffunction : test/pdffunction.c ;

Main x11pdf : test/x11pdf.c test/ximage.c ;

LinkLibraries
		pdfclean
		pdfdebug
		pdfmerge
		pdfrip
		pdffunction
		x11pdf
	: libmupdf libfonts libfitz ;