🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

113 lines
3.8 KiB

  1. There are several ways to build the FreeType library, depending on
  2. your system and the level of customization you need. Here is a short
  3. overview of the documentation available:
  4. I. Prerequisites and dependencies
  5. =================================
  6. FreeType is a low level C library that only depends on the standard
  7. C library with very few platform-dependent optimizations utilized at
  8. build time. System libraries, such as zlib, Gzip, bzip2, Brotli,
  9. and libpng, might be used to handle compressed fonts or decode
  10. embedded PNG glyphs.
  11. FreeType auto-configuration scripts should be able to detect the
  12. prerequisites if the necessary headers are available at the default
  13. locations. Otherwise, modify `include/freetype/config/ftoption.h'
  14. to control how the FreeType library gets built. Normally, you don't
  15. need to change anything.
  16. Applications have very limited control over FreeType's behaviour at
  17. run-time; look at the documentation of function `FT_Property_Set'.
  18. II. Normal installation and upgrades
  19. ====================================
  20. 1. Unix and Unix-like systems
  21. This also includes MacOS, Cygwin, MinGW + MSYS, Mingw-w64 + MSYS2,
  22. and possibly other, similar environments.
  23. Please read `INSTALL.UNIX' to install or upgrade FreeType 2 on a
  24. Unix system. Note that you *need* GNU Make for automatic
  25. compilation, since other make tools won't work (this includes BSD
  26. Make).
  27. GNU Make VERSION 3.81 OR NEWER IS NEEDED!
  28. [For `cmake' see below.]
  29. 2. On VMS with the `mms' build tool
  30. See `INSTALL.VMS' for installation instructions on this platform.
  31. 3. Other systems using GNU Make
  32. On some non-Unix platforms, it is possible to build the library
  33. using only the GNU Make utility. Note that *NO OTHER MAKE TOOL
  34. WILL WORK*[1]! This methods supports several compilers on
  35. Windows, OS/2, and BeOS, including MinGW* (without MSYS*), Visual
  36. C++, Borland C++, and more.
  37. Instructions are provided in the file `INSTALL.GNU'.
  38. 4. With an IDE Project File (e.g., for Visual Studio or CodeWarrior)
  39. We provide a small number of `project files' for various IDEs to
  40. automatically build the library as well. Note that these files
  41. are not supported and only sporadically maintained by FreeType
  42. developers, so don't expect them to work in each release.
  43. To find them, have a look at the content of the `builds/<system>'
  44. directory, where <system> stands for your OS or environment.
  45. 5. Using cmake
  46. See the top-level `CMakeLists.txt' file for more information.
  47. 6. From you own IDE, or own Makefiles
  48. If you want to create your own project file, follow the
  49. instructions given in the `INSTALL.ANY' document of this
  50. directory.
  51. III. Custom builds of the library
  52. =================================
  53. Customizing the compilation of FreeType is easy, and allows you to
  54. select only the components of the font engine that you really need.
  55. For more details read the file `CUSTOMIZE'.
  56. ----------------------------------------------------------------------
  57. [1] make++, a make tool written in Perl, has sufficient support of GNU
  58. make extensions to build FreeType. See
  59. https://makepp.sourceforge.net
  60. for more information; you need version 2.0 or newer, and you must
  61. pass option `--norc-substitution'.
  62. ----------------------------------------------------------------------
  63. Copyright (C) 2000-2021 by
  64. David Turner, Robert Wilhelm, and Werner Lemberg.
  65. This file is part of the FreeType project, and may only be used,
  66. modified, and distributed under the terms of the FreeType project
  67. license, LICENSE.TXT. By continuing to use, modify, or distribute
  68. this file you indicate that you have read the license and understand
  69. and accept it fully.
  70. --- end of INSTALL ---