1 |
Instructions on how to build FreeType with your own build tool |
Instructions on how to build FreeType with your own build tool |
2 |
============================================================== |
============================================================== |
3 |
|
|
4 |
See the file `CUSTOMIZE' to learn how to customize FreeType to |
See the file `CUSTOMIZE' to learn how to customize FreeType to specific |
5 |
specific environments. |
environments. |
6 |
|
|
7 |
|
|
8 |
I. Standard procedure |
I. Standard procedure |
9 |
--------------------- |
--------------------- |
10 |
|
|
11 |
* DISABLE PRE-COMPILED HEADERS! This is very important for Visual |
* DISABLE PRE-COMPILED HEADERS! This is very important for Visual |
12 |
C++, because FreeType uses lines like: |
C++, because FreeType uses lines like: |
13 |
|
|
14 |
#include FT_FREETYPE_H |
#include FT_FREETYPE_H |
15 |
|
|
16 |
which are not correctly supported by this compiler while being ISO |
which are not correctly supported by this compiler while being ISO C |
17 |
C compliant! |
compliant! |
18 |
|
|
19 |
* You need to add the directories `freetype2/include' to your |
* You need to add the directories `freetype2/include' to your include |
20 |
include path when compiling the library. |
path when compiling the library. |
21 |
|
|
22 |
* FreeType 2 is made of several components; each of them is located |
* FreeType 2 is made of several components; each of them is located in |
23 |
in a subdirectory of `freetype2/src'. For example, |
a subdirectory of `freetype2/src'. For example, |
24 |
`freetype2/src/truetype/' contains the TrueType font driver. |
`freetype2/src/truetype/' contains the TrueType font driver. |
25 |
|
|
26 |
* DO NOT COMPILE ALL C FILES! Rather, compile the following ones: |
* DO NOT COMPILE ALL C FILES! Rather, compile the following ones: |
85 |
`type42.c' needs `truetype.c' |
`type42.c' needs `truetype.c' |
86 |
|
|
87 |
|
|
88 |
You are done. In case of problems, see the archives of the FreeType |
Read the file `CUSTOMIZE' in case you want to compile only a subset of |
89 |
|
the drivers, renderers, and optional modules. |
90 |
|
|
91 |
|
You are done. In case of problems, see the archives of the FreeType |
92 |
development mailing list. |
development mailing list. |
93 |
|
|
94 |
|
|
95 |
II. Support for flat-directory compilation |
II. Support for flat-directory compilation |
96 |
------------------------------------------ |
------------------------------------------ |
97 |
|
|
98 |
It is possible to put all FreeType 2 source files into a single |
It is possible to put all FreeType 2 source files into a single |
99 |
directory, with the *exception* of the `include' hierarchy. |
directory, with the *exception* of the `include' hierarchy. |
100 |
|
|
101 |
1. Copy all files in current directory |
1. Copy all files in current directory |
113 |
cc -c -Ifreetype2/include ftbase.c |
cc -c -Ifreetype2/include ftbase.c |
114 |
etc. |
etc. |
115 |
|
|
116 |
You don't need to define the FT_FLAT_COMPILATION macro (as this |
You don't need to define the FT_FLAT_COMPILATION macro (as this was |
117 |
was required in previous releases of FreeType 2). |
required in previous releases of FreeType 2). |
118 |
|
|
119 |
---------------------------------------------------------------------- |
------------------------------------------------------------------------ |
120 |
|
|
121 |
Copyright 2003, 2005 by |
Copyright 2003, 2005 by |
122 |
David Turner, Robert Wilhelm, and Werner Lemberg. |
David Turner, Robert Wilhelm, and Werner Lemberg. |
123 |
|
|
124 |
This file is part of the FreeType project, and may only be used, |
This file is part of the FreeType project, and may only be used, |
125 |
modified, and distributed under the terms of the FreeType project |
modified, and distributed under the terms of the FreeType project |
126 |
license, LICENSE.TXT. By continuing to use, modify, or distribute |
license, LICENSE.TXT. By continuing to use, modify, or distribute this |
127 |
this file you indicate that you have read the license and understand |
file you indicate that you have read the license and understand and |
128 |
and accept it fully. |
accept it fully. |
129 |
|
|
130 |
|
|
131 |
--- end of INSTALL.ANY --- |
--- end of INSTALL.ANY --- |