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
|
cflags{
'-Wall', '-Wno-maybe-uninitialized',
'-D FT2_BUILD_LIBRARY',
'-D FT_CONFIG_OPTION_SYSTEM_ZLIB',
'-D HAVE_FCNTL_H',
'-D HAVE_STDINT_H',
'-D HAVE_UNISTD_H',
'-I $srcdir/builds/unix',
'-I $srcdir/include/freetype/config',
'-I $srcdir/include',
'-isystem $builddir/pkg/zlib/include',
}
pkg.hdrs = copy('$outdir/include', '$srcdir/include', paths[[
ft2build.h
freetype/(
freetype.h
ftadvanc.h
ftbdf.h
ftbitmap.h
ftcache.h
ftcolor.h
fterrdef.h
fterrors.h
ftfntfmt.h
ftglyph.h
ftimage.h
ftmm.h
ftmodapi.h
ftmoderr.h
ftoutln.h
ftparams.h
ftsizes.h
ftsnames.h
ftstroke.h
ftsynth.h
ftsystem.h
fttrigon.h
fttypes.h
t1tables.h
ttnameid.h
tttables.h
tttags.h
config/(
ftconfig.h
ftheader.h
ftoption.h
ftstdlib.h
)
)
]])
cc('src/gzip/ftgzip.c', {'pkg/zlib/headers'})
lib('libfreetype.a', [[
builds/unix/ftsystem.c
src/(
base/(
ftdebug.c ftinit.c ftbase.c
ftbbox.c ftbdf.c ftbitmap.c ftcid.c ftfstype.c ftgasp.c
ftglyph.c ftgxval.c ftmm.c ftotval.c ftpatent.c ftpfr.c
ftstroke.c ftsynth.c fttype1.c ftwinfnt.c
)
truetype/truetype.c
type1/type1.c
cff/cff.c
cid/type1cid.c
pfr/pfr.c
type42/type42.c
winfonts/winfnt.c
pcf/pcf.c
bdf/bdf.c
sfnt/sfnt.c
autofit/autofit.c
pshinter/pshinter.c
raster/raster.c
smooth/smooth.c
cache/ftcache.c
gzip/ftgzip.c.o
lzw/ftlzw.c
bzip2/ftbzip2.c
psaux/psaux.c
psnames/psnames.c
)
$builddir/pkg/zlib/libz.a
]])
fetch 'git'
|