blob: 71df728e9544596584e8b61b6a182abad4249bd7 [file] [log] [blame]
Werner Lemberg098ab262000-11-02 07:53:08 +00001In order to build the library, read the `BUILD' document in the `docs'
Werner Lemberg4c80f0c2000-12-01 17:25:58 +00002directory. This is only a quick starter:
David Turnerc3c7e7f2000-03-13 14:19:31 +00003
David Turnerb1aabf42000-11-30 23:48:22 +00004I. From the command line:
Werner Lemberge4b32a52000-10-31 20:42:18 +00005
David Turnerb1aabf42000-11-30 23:48:22 +00006 You need to have GNU Make installed on your system to compile the
Werner Lemberg4c80f0c2000-12-01 17:25:58 +00007 library from the command line. This will _not_ work with other
8 make tools (including BSD make)!
David Turnerb1aabf42000-11-30 23:48:22 +00009
Werner Lemberg4c80f0c2000-12-01 17:25:58 +000010 - Go to the `freetype2' directory.
David Turnerb1aabf42000-11-30 23:48:22 +000011
David Turner859a18a2000-12-14 18:50:40 +000012 - On Unix or (any C compiler should work):
David Turnerb1aabf42000-11-30 23:48:22 +000013
Werner Lemberg4c80f0c2000-12-01 17:25:58 +000014 - make setup (don't worry, this will invoke a configure script)
15 - make
16 - make install
David Turner5ef3c952000-08-22 23:15:23 +000017
Werner Lemberg4c80f0c2000-12-01 17:25:58 +000018 Alternatively, you can pass parameters to the configure script
19 within the CFG variable, as in:
David Turner896b6042000-10-03 17:51:29 +000020
Werner Lemberg4c80f0c2000-12-01 17:25:58 +000021 - make setup CFG="--prefix=/usr"
22 - make
23 - make install
David Turner5f5b4462000-07-26 19:13:51 +000024
David Turnerb1aabf42000-11-30 23:48:22 +000025 - On Windows:
David Turner5f5b4462000-07-26 19:13:51 +000026
Werner Lemberg4c80f0c2000-12-01 17:25:58 +000027 We provide a version of GNU Make for Win32 on the FreeType site.
28 See http://www.freetype.org/download.html for details.
Werner Lemberge4b32a52000-10-31 20:42:18 +000029
David Turner859a18a2000-12-14 18:50:40 +000030 - if you're using gcc (Mingw, _not_ CygWin):
31
32 - make setup
33 - make
David Turner5f5b4462000-07-26 19:13:51 +000034
David Turner5f5b4462000-07-26 19:13:51 +000035
David Turner859a18a2000-12-14 18:50:40 +000036 - if you're using Visual C++
David Turnerb1aabf42000-11-30 23:48:22 +000037
David Turner859a18a2000-12-14 18:50:40 +000038 - make setup visualc
39 - make
40
41
42 - if you're using another compiler:
David Turnerb1aabf42000-11-30 23:48:22 +000043
David Turner859a18a2000-12-14 18:50:40 +000044 - make setup xxxx
45 - make
46
47
48 where "xxxx" is a special target corresponding to your compiler.
49 To see a list of supported compilers in this release, type:
50
51 make setup list
52
Werner Lemberge4b32a52000-10-31 20:42:18 +000053
Werner Lemberge4b32a52000-10-31 20:42:18 +000054
David Turnerb1aabf42000-11-30 23:48:22 +000055II. In your own environment (IDE):
56
Werner Lemberg4c80f0c2000-12-01 17:25:58 +000057 You need to add the directories "freetype2/include" and "freetype2/src"
David Turnerb1aabf42000-11-30 23:48:22 +000058 to your include path when compiling the library.
59
Werner Lemberg4c80f0c2000-12-01 17:25:58 +000060 Compile each library component through the following files:
David Turnerb1aabf42000-11-30 23:48:22 +000061
Werner Lemberg4c80f0c2000-12-01 17:25:58 +000062 -- base components (required)
David Turnerb1aabf42000-11-30 23:48:22 +000063
Werner Lemberg4c80f0c2000-12-01 17:25:58 +000064 src/base/ftsystem.c
65 src/base/ftinit.c
66 src/base/ftdebug.c
67 src/base/ftbase.c
68 src/base/ftglyph.c
69 src/base/ftbbox.c
70 src/base/ftmm.c
David Turnerb1aabf42000-11-30 23:48:22 +000071
Werner Lemberg4c80f0c2000-12-01 17:25:58 +000072 src/base/ftmac.c -- only on the Macintosh
David Turnerb1aabf42000-11-30 23:48:22 +000073
Werner Lemberg4c80f0c2000-12-01 17:25:58 +000074 -- other components are optional
David Turnerb1aabf42000-11-30 23:48:22 +000075
Werner Lemberg4c80f0c2000-12-01 17:25:58 +000076 src/autohint/autohint.c -- auto hinting module
77 src/cache/ftcache.c -- cache sub-system (in beta)
78 src/sfnt/sfnt.c -- SFNT files support (TrueType & OpenType)
79 src/cff/cff.c -- CFF/OpenType font driver
80 src/psnames/psnames.c -- Postscript glyph names support
81 src/psaux/psaux.c -- Postscript Type 1 parsing
82 src/truetype/truetype.c -- TrueType font driver
83 src/type1/type1.c -- Type 1 font driver
84 src/cid/type1cid.c -- Type 1 CID-keyed font driver
85 src/winfonts/winfonts.c -- Windows FONT / FNT font driver
David Turnerb1aabf42000-11-30 23:48:22 +000086
Werner Lemberg4c80f0c2000-12-01 17:25:58 +000087 Note:
David Turnerb1aabf42000-11-30 23:48:22 +000088
Werner Lemberg4c80f0c2000-12-01 17:25:58 +000089 `truetype.c' needs `sfnt.c' and `psnames.c'
90 `type1.c' needs `psaux.c' and `psnames.c'
91 `type1cid.c' needs `psaux.c' and `psnames.c'
92 `cff.c' needs `sfnt.c', `psaux.c', and `psnames.c'
Werner Lemberge4b32a52000-10-31 20:42:18 +000093
Werner Lemberg4c80f0c2000-12-01 17:25:58 +000094 etc.
95
96
97--- end of INSTALL --