Compare commits
5 commits
master
...
check-depr
Author | SHA1 | Date | |
---|---|---|---|
|
aac3d34f2f | ||
|
c12f8e827d | ||
|
25fae1f789 | ||
|
42b0ff871a | ||
|
6ccf0ea362 |
641 changed files with 12322 additions and 11194 deletions
|
@ -1,11 +1,5 @@
|
|||
# CI setup for FreeType.
|
||||
|
||||
# https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/540
|
||||
workflow:
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
||||
- if: $CI_PIPELINE_SOURCE == 'push'
|
||||
|
||||
stages:
|
||||
- build
|
||||
|
||||
|
@ -54,7 +48,17 @@ variables:
|
|||
# Make sure meson is up to date so we don't need to rebuild the image
|
||||
# with each release.
|
||||
- pip3 install -U 'meson==0.59.*'
|
||||
- pip3 install --upgrade certifi
|
||||
- pip3 install -U ninja
|
||||
|
||||
# Generate a UWP cross-file in case it's used
|
||||
- $PSDefaultParameterValues['Out-File:Encoding'] = 'ASCII'
|
||||
- echo "[binaries]" > uwp-crossfile.meson
|
||||
- echo "c = 'cl'" >> uwp-crossfile.meson
|
||||
- echo "strip = ['true']" >> uwp-crossfile.meson
|
||||
- echo "[built-in options]" >> uwp-crossfile.meson
|
||||
- echo "c_args = ['-DWINAPI_FAMILY=WINAPI_FAMILY_APP', '-DUNICODE', '-D_WIN32_WINNT=0x0A00', '-we4013']" >> uwp-crossfile.meson
|
||||
- echo "c_winlibs = ['windowsapp.lib']" >> uwp-crossfile.meson
|
||||
script:
|
||||
# For some reason, options are separated by newlines instead of spaces,
|
||||
# so we have to replace them first.
|
||||
|
@ -65,31 +69,14 @@ variables:
|
|||
# script. Environment variables substitutions is done by PowerShell
|
||||
# before calling `cmd.exe`, that's why we use `$env:FOO` instead of
|
||||
# `%FOO%`.
|
||||
- cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=$env:ARCH &&
|
||||
meson setup build $env:MESON_ARGS_WINDOWS &&
|
||||
meson compile --verbose -C build &&
|
||||
meson test -C build &&
|
||||
meson test -C build --benchmark"
|
||||
|
||||
|
||||
.build windows msbuild:
|
||||
extends: '.build windows common'
|
||||
variables:
|
||||
# Make sure any failure in PowerShell scripts is fatal.
|
||||
ErrorActionPreference: 'Stop'
|
||||
WarningPreference: 'Stop'
|
||||
script:
|
||||
- git submodule update --init --recursive
|
||||
- cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=$env:ARCH &&
|
||||
MSBuild.exe -clp:ForceConsoleColor -t:Rebuild
|
||||
-p:Configuration=Debug
|
||||
-p:Platform=$env:PLATFORM
|
||||
-p:UserDefines=FT_DEBUG_LOGGING
|
||||
MSBuild.sln"
|
||||
- cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=$env:ARCH $env:VS_UWP &&
|
||||
meson setup build $env:MESON_ARGS_WINDOWS $env:MESON_ARGS_UWP &&
|
||||
meson compile --verbose -C build
|
||||
$env:MESON_WINDOWS_TESTS"
|
||||
|
||||
|
||||
# Format of job names:
|
||||
# <OS> <Build-Tool> <Build-Params> <Architecture>:
|
||||
# <OS> <Build-Tool> <Build-Params> <Architecture>
|
||||
|
||||
|
||||
# Windows jobs.
|
||||
|
@ -98,18 +85,20 @@ windows meson vs2019 amd64:
|
|||
extends: '.build windows meson'
|
||||
variables:
|
||||
ARCH: 'amd64'
|
||||
MESON_WINDOWS_TESTS: '&& meson test -C build && meson test -C build --benchmark'
|
||||
|
||||
windows meson vs2019 x86:
|
||||
extends: '.build windows meson'
|
||||
variables:
|
||||
ARCH: 'x86'
|
||||
MESON_WINDOWS_TESTS: '&& meson test -C build && meson test -C build --benchmark'
|
||||
|
||||
windows msbuild vs2019 amd64:
|
||||
extends: '.build windows msbuild'
|
||||
windows meson vs2019 amd64 uwp:
|
||||
extends: '.build windows meson'
|
||||
variables:
|
||||
ARCH: 'amd64'
|
||||
PLATFORM: 'x64'
|
||||
|
||||
VS_UWP: '-app_platform=UWP'
|
||||
MESON_ARGS_UWP: '--cross-file uwp-crossfile.meson -Dc_winlibs="windowsapp.lib"'
|
||||
|
||||
# Linux Jobs.
|
||||
#
|
||||
|
|
5
.mailmap
5
.mailmap
|
@ -1,7 +1,7 @@
|
|||
Alexander Borsuk <me@alex.bio> <alexander.borsuk@qnective.com>
|
||||
Behdad Esfahbod (بهداد اسفهبد) <behdad@behdad.org> <behdad.esfahbod@gmail.com>
|
||||
Behdad Esfahbod (بهداد اسفهبد) <behdad@behdad.org> <behdad@google.com>
|
||||
Behdad Esfahbod (بهداد اسفهبد) <behdad@behdad.org>
|
||||
Alexander Borsuk <me@alex.bio> <alexander.borsuk@qnective.com>
|
||||
Ewald Hew (Hew Yih Shiuan 丘毅宣) <ewaldhew@gmail.com>
|
||||
Moazin Khatti (موؤذن کھٹی) <moazinkhatri@gmail.com>
|
||||
Priyesh Kumar (प्रियेश कुमार) <priyeshkkumar@gmail.com>
|
||||
|
@ -15,11 +15,10 @@ Suzuki, Toshiya (鈴木俊哉) <mpsuzuki@hiroshima-u.ac.jp> sssa <sssa@sssas-pow
|
|||
Suzuki, Toshiya (鈴木俊哉) <mpsuzuki@hiroshima-u.ac.jp> suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
|
||||
Bram Tassyns <bramt@enfocus.be> bram tassyns <BramT@enfocus.be>
|
||||
Bram Tassyns <bramt@enfocus.be> <BramT@enfocus.com>
|
||||
Anurag Thakur (अनुराग ठाकुर) <anuthadev@gmail.com>
|
||||
David Turner <david@freetype.org> <david.turner.dev@gmail.com>
|
||||
David Turner <david@freetype.org> <digit@google.com>
|
||||
Anuj Verma (अनुज वर्मा) <anujv@iitbhilai.ac.in>
|
||||
Ben Wagner <bungeman@gmail.com>
|
||||
Ben Wagner <bungeman@gmail.com> Bungeman <bungeman@gmail.com>
|
||||
Ben Wagner <bungeman@gmail.com> <bungeman@google.com>
|
||||
Ben Wagner <bungeman@gmail.com> <bungeman@chromium.org>
|
||||
Nikolaus Waxweiler <madigens@gmail.com> <nikolaus.waxweiler@daltonmaag.com>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# CMakeLists.txt
|
||||
#
|
||||
# Copyright (C) 2013-2024 by
|
||||
# Copyright (C) 2013-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# Written originally by John Cary <cary@txcorp.com>
|
||||
|
@ -110,7 +110,7 @@
|
|||
|
||||
# To minimize the number of cmake_policy() workarounds,
|
||||
# CMake >= 3 is requested.
|
||||
cmake_minimum_required(VERSION 3.0...3.5)
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
|
||||
if (NOT CMAKE_VERSION VERSION_LESS 3.3)
|
||||
# Allow symbol visibility settings also on static libraries. CMake < 3.3
|
||||
|
@ -163,8 +163,8 @@ endif ()
|
|||
project(freetype C)
|
||||
|
||||
set(VERSION_MAJOR "2")
|
||||
set(VERSION_MINOR "13")
|
||||
set(VERSION_PATCH "2")
|
||||
set(VERSION_MINOR "12")
|
||||
set(VERSION_PATCH "1")
|
||||
|
||||
# Generate LIBRARY_VERSION and LIBRARY_SOVERSION.
|
||||
set(LIBTOOL_REGEX "version_info='([0-9]+):([0-9]+):([0-9]+)'")
|
||||
|
@ -265,8 +265,6 @@ if (NOT FT_DISABLE_PNG)
|
|||
else ()
|
||||
find_package(PNG)
|
||||
endif ()
|
||||
# FreePNG calls FindZLIB so unset ZLIB_FOUND to respect FT_DISABLE_ZLIB
|
||||
unset(ZLIB_FOUND)
|
||||
endif ()
|
||||
|
||||
if (NOT FT_DISABLE_ZLIB)
|
||||
|
@ -299,7 +297,7 @@ if (NOT FT_DISABLE_BROTLI)
|
|||
endif ()
|
||||
|
||||
# Create the configuration file
|
||||
if (UNIX AND NOT WIN32)
|
||||
if (UNIX)
|
||||
check_include_file("unistd.h" HAVE_UNISTD_H)
|
||||
check_include_file("fcntl.h" HAVE_FCNTL_H)
|
||||
|
||||
|
@ -425,10 +423,10 @@ set(BASE_SRCS
|
|||
src/winfonts/winfnt.c
|
||||
)
|
||||
|
||||
if (WIN32)
|
||||
list(APPEND BASE_SRCS "builds/windows/ftsystem.c")
|
||||
elseif (UNIX)
|
||||
if (UNIX)
|
||||
list(APPEND BASE_SRCS "builds/unix/ftsystem.c")
|
||||
elseif (WIN32)
|
||||
list(APPEND BASE_SRCS "builds/windows/ftsystem.c")
|
||||
else ()
|
||||
list(APPEND BASE_SRCS "src/base/ftsystem.c")
|
||||
endif ()
|
||||
|
|
|
@ -29,16 +29,12 @@ The contributed BDF and PCF drivers come with a license similar to
|
|||
that of the X Window System. It is compatible to the above two
|
||||
licenses (see files `src/bdf/README` and `src/pcf/README`). The same
|
||||
holds for the source code files `src/base/fthash.c` and
|
||||
`include/freetype/internal/fthash.h`; they were part of the BDF driver
|
||||
`include/freetype/internal/fthash.h`; they wer part of the BDF driver
|
||||
in earlier FreeType versions.
|
||||
|
||||
The gzip module uses the zlib license (see `src/gzip/zlib.h`) which
|
||||
too is compatible to the above two licenses.
|
||||
|
||||
The files `src/autofit/ft-hb.c` and `src/autofit/ft-hb.h` contain code
|
||||
taken almost verbatim from the HarfBuzz file `hb-ft.cc`, which uses
|
||||
the 'Old MIT' license, compatible to the above two licenses.
|
||||
|
||||
The MD5 checksum support (only used for debugging in development
|
||||
builds) is in the public domain.
|
||||
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
#/p:WindowsTargetPlatformVersion=10.0.16299.0
|
||||
/p:Configuration="Release"
|
2
Makefile
2
Makefile
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
10
README
10
README
|
@ -1,4 +1,4 @@
|
|||
FreeType 2.13.2
|
||||
FreeType 2.12.1
|
||||
===============
|
||||
|
||||
Homepage: https://www.freetype.org
|
||||
|
@ -32,9 +32,9 @@ sites. Go to
|
|||
|
||||
and download one of the following files.
|
||||
|
||||
freetype-doc-2.13.2.tar.xz
|
||||
freetype-doc-2.13.2.tar.gz
|
||||
ftdoc2132.zip
|
||||
freetype-doc-2.12.1.tar.xz
|
||||
freetype-doc-2.12.1.tar.gz
|
||||
ftdoc2121.zip
|
||||
|
||||
To view the documentation online, go to
|
||||
|
||||
|
@ -94,7 +94,7 @@ Enjoy!
|
|||
|
||||
----------------------------------------------------------------------
|
||||
|
||||
Copyright (C) 2006-2024 by
|
||||
Copyright (C) 2006-2022 by
|
||||
David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
|
||||
This file is part of the FreeType project, and may only be used,
|
||||
|
|
|
@ -89,7 +89,7 @@ address:
|
|||
|
||||
----------------------------------------------------------------------
|
||||
|
||||
Copyright (C) 2005-2024 by
|
||||
Copyright (C) 2005-2022 by
|
||||
David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
|
||||
This file is part of the FreeType project, and may only be used,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Copyright (C) 2005-2024 by
|
||||
# Copyright (C) 2005-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
@ -190,7 +190,8 @@ if test -e ".git"; then
|
|||
:
|
||||
else
|
||||
echo "Checking out submodule in \`subprojects/dlg':"
|
||||
git submodule update --init
|
||||
git submodule init
|
||||
git submodule update
|
||||
fi
|
||||
|
||||
copy_submodule_files
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
README for the builds/amiga subdirectory.
|
||||
|
||||
Copyright (C) 2005-2024 by
|
||||
Copyright (C) 2005-2022 by
|
||||
Werner Lemberg and Detlef Würkner.
|
||||
|
||||
This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/* */
|
||||
/* Amiga-specific configuration file (specification only). */
|
||||
/* */
|
||||
/* Copyright (C) 2005-2024 by */
|
||||
/* Copyright (C) 2005-2022 by */
|
||||
/* Werner Lemberg and Detlef Würkner. */
|
||||
/* */
|
||||
/* This file is part of the FreeType project, and may only be used, */
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/* */
|
||||
/* Amiga-specific FreeType module selection. */
|
||||
/* */
|
||||
/* Copyright (C) 2005-2024 by */
|
||||
/* Copyright (C) 2005-2022 by */
|
||||
/* Werner Lemberg and Detlef Würkner. */
|
||||
/* */
|
||||
/* This file is part of the FreeType project, and may only be used, */
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 2005-2024 by
|
||||
# Copyright (C) 2005-2022 by
|
||||
# Werner Lemberg and Detlef Würkner.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 2005-2024 by
|
||||
# Copyright (C) 2005-2022 by
|
||||
# Werner Lemberg and Detlef Würkner.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 2005-2024 by
|
||||
# Copyright (C) 2005-2022 by
|
||||
# Werner Lemberg and Detlef Würkner.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* Debugging and logging component for amiga (body).
|
||||
*
|
||||
* Copyright (C) 1996-2024 by
|
||||
* Copyright (C) 1996-2022 by
|
||||
* David Turner, Robert Wilhelm, Werner Lemberg, and Detlef Wuerkner.
|
||||
*
|
||||
* This file is part of the FreeType project, and may only be used,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/* */
|
||||
/* Amiga-specific FreeType low-level system interface (body). */
|
||||
/* */
|
||||
/* Copyright (C) 1996-2024 by */
|
||||
/* Copyright (C) 1996-2022 by */
|
||||
/* David Turner, Robert Wilhelm, Werner Lemberg and Detlef Würkner. */
|
||||
/* */
|
||||
/* This file is part of the FreeType project, and may only be used, */
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# FreeType 2 configuration rules for a BeOS system
|
||||
#
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# FindBrotliDec.cmake
|
||||
#
|
||||
# Copyright (C) 2019-2024 by
|
||||
# Copyright (C) 2019-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# Written by Werner Lemberg <wl@gnu.org>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# iOS.cmake
|
||||
#
|
||||
# Copyright (C) 2014-2024 by
|
||||
# Copyright (C) 2014-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# Written by David Wimsey <david@wimsey.us>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
# Copyright (C) 2015-2024 by
|
||||
# Copyright (C) 2015-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 2003-2024 by
|
||||
# Copyright (C) 2003-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 2003-2024 by
|
||||
# Copyright (C) 2003-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 2003-2024 by
|
||||
# Copyright (C) 2003-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 2005-2024 by
|
||||
# Copyright (C) 2005-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
@ -299,7 +299,7 @@ refdoc:
|
|||
$(PUBLIC_DIR)/config/*.h \
|
||||
$(PUBLIC_DIR)/cache/*.h
|
||||
@echo Building static site...
|
||||
cd $(DOC_DIR) && $(PYTHON) -m mkdocs build
|
||||
cd $(DOC_DIR) && mkdocs build
|
||||
@echo Done.
|
||||
|
||||
# Variables for running `refdoc' with Python's `virtualenv'. The
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -200,6 +200,14 @@ environment by Metrowerks. GCC for MPW and Symantec
|
|||
behaviours are not tested at all. Building ftdemos
|
||||
for classic MacOS and working test is required.
|
||||
|
||||
4-3. Porting Jam onto MPW
|
||||
-------------------------
|
||||
|
||||
FreeType uses Jam (and FT-Jam) for unified cross-
|
||||
platform building tool. At present, Jam is not ported
|
||||
to MPW. To update classic MacOS support easily,
|
||||
building by Jam is expected on MPW.
|
||||
|
||||
|
||||
APPENDIX I
|
||||
----------
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
/* Mac FOND support. Written by just@letterror.com. */
|
||||
/* Heavily Fixed by mpsuzuki, George Williams and Sean McBride */
|
||||
/* */
|
||||
/* Copyright (C) 1996-2024 by */
|
||||
/* Copyright (C) 1996-2022 by */
|
||||
/* Just van Rossum, David Turner, Robert Wilhelm, and Werner Lemberg. */
|
||||
/* */
|
||||
/* This file is part of the FreeType project, and may only be used, */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# Copyright (C) 2020-2024 by
|
||||
# Copyright (C) 2020-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# Copyright (C) 2020-2024 by
|
||||
# Copyright (C) 2020-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# Copyright (C) 2020-2024 by
|
||||
# Copyright (C) 2020-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# Copyright (C) 2020-2024 by
|
||||
# Copyright (C) 2020-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
@ -84,25 +84,19 @@ def generate_ftmodule(lists):
|
|||
)
|
||||
|
||||
for module in lists["RASTER_MODULES"]:
|
||||
names = {
|
||||
"raster": ("ft_raster1",),
|
||||
"smooth": ("ft_smooth",),
|
||||
"svg": ("ft_svg",),
|
||||
"sdf": ("ft_sdf", "ft_bitmap_sdf"),
|
||||
name = {
|
||||
"raster": "ft_raster1",
|
||||
"smooth": "ft_smooth",
|
||||
"svg": "ft_svg",
|
||||
}.get(module)
|
||||
for name in names:
|
||||
result += (
|
||||
"FT_USE_MODULE( FT_Renderer_Class, %s_renderer_class )\n" % name
|
||||
)
|
||||
result += (
|
||||
"FT_USE_MODULE( FT_Renderer_Class, %s_renderer_class )\n" % name
|
||||
)
|
||||
|
||||
for module in lists["AUX_MODULES"]:
|
||||
if module in ("psaux", "psnames", "otvalid", "gxvalid"):
|
||||
name = {
|
||||
"gxvalid": "gxv",
|
||||
"otvalid": "otv",
|
||||
}.get(module, module)
|
||||
result += (
|
||||
"FT_USE_MODULE( FT_Module_Class, %s_module_class )\n" % name
|
||||
"FT_USE_MODULE( FT_Module_Class, %s_module_class )\n" % module
|
||||
)
|
||||
|
||||
result += "/* EOF */\n"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# Copyright (C) 2020-2024 by
|
||||
# Copyright (C) 2020-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// FreeType 2 project for the symbian platform
|
||||
//
|
||||
|
||||
// Copyright (C) 2008-2024 by
|
||||
// Copyright (C) 2008-2022 by
|
||||
// David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
//
|
||||
// This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// FreeType 2 makefile for the symbian platform
|
||||
//
|
||||
|
||||
// Copyright (C) 2008-2024 by
|
||||
// Copyright (C) 2008-2022 by
|
||||
// David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
//
|
||||
// This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
@ -139,12 +139,12 @@ ifdef check_platform
|
|||
ifneq ($(is_unix),)
|
||||
|
||||
distclean:
|
||||
$(RM) $(TOP_DIR)/builds/unix/config.cache
|
||||
$(RM) $(TOP_DIR)/builds/unix/config.log
|
||||
$(RM) $(TOP_DIR)/builds/unix/config.status
|
||||
$(RM) $(TOP_DIR)/builds/unix/unix-def.mk
|
||||
$(RM) $(TOP_DIR)/builds/unix/unix-cc.mk
|
||||
$(RM) $(TOP_DIR)/builds/unix/freetype2.pc
|
||||
$(RM) builds/unix/config.cache
|
||||
$(RM) builds/unix/config.log
|
||||
$(RM) builds/unix/config.status
|
||||
$(RM) builds/unix/unix-def.mk
|
||||
$(RM) builds/unix/unix-cc.mk
|
||||
$(RM) builds/unix/freetype2.pc
|
||||
$(RM) nul
|
||||
|
||||
endif # test is_unix
|
||||
|
@ -170,16 +170,17 @@ endif # test check_platform
|
|||
|
||||
check_out_submodule:
|
||||
$(info Checking out submodule in `subprojects/dlg')
|
||||
git -C $(TOP_DIR) submodule update --init
|
||||
git submodule init
|
||||
git submodule update
|
||||
|
||||
copy_submodule:
|
||||
$(info Copying files from `subprojects/dlg' to `src/dlg' and `include/dlg')
|
||||
ifeq ($(wildcard $(TOP_DIR)/include/dlg),)
|
||||
mkdir $(subst /,$(SEP),$(TOP_DIR)/include/dlg)
|
||||
ifeq ($(wildcard include/dlg),)
|
||||
mkdir $(subst /,$(SEP),include/dlg)
|
||||
endif
|
||||
$(COPY) $(subst /,$(SEP),$(TOP_DIR)/subprojects/dlg/include/dlg/output.h $(TOP_DIR)/include/dlg)
|
||||
$(COPY) $(subst /,$(SEP),$(TOP_DIR)/subprojects/dlg/include/dlg/dlg.h $(TOP_DIR)/include/dlg)
|
||||
$(COPY) $(subst /,$(SEP),$(TOP_DIR)/subprojects/dlg/src/dlg/dlg.c $(TOP_DIR)/src/dlg)
|
||||
$(COPY) $(subst /,$(SEP),subprojects/dlg/include/dlg/output.h include/dlg)
|
||||
$(COPY) $(subst /,$(SEP),subprojects/dlg/include/dlg/dlg.h include/dlg)
|
||||
$(COPY) $(subst /,$(SEP),subprojects/dlg/src/dlg/dlg.c src/dlg)
|
||||
|
||||
|
||||
# We always need the list of modules in ftmodule.h.
|
||||
|
@ -197,22 +198,27 @@ modules:
|
|||
include $(TOP_DIR)/builds/modules.mk
|
||||
|
||||
|
||||
# get FreeType version string using built-in string functions
|
||||
# get FreeType version string, using a
|
||||
# poor man's `sed' emulation with make's built-in string functions
|
||||
#
|
||||
hash := \#
|
||||
|
||||
work := $(strip $(shell $(CAT) \
|
||||
$(subst /,$(SEP),$(TOP_DIR)/include/freetype/freetype.h)))
|
||||
work := $(subst |,x,$(work))
|
||||
work := $(subst $(space),|,$(work))
|
||||
work := $(subst \#define|FREETYPE_MAJOR|,$(space),$(work))
|
||||
work := $(word 2,$(work))
|
||||
major := $(subst |,$(space),$(work))
|
||||
major := $(firstword $(major))
|
||||
|
||||
work := $(subst $(hash)define$(space)FREETYPE_MAJOR$(space),MAjOR=,$(work))
|
||||
work := $(subst $(hash)define$(space)FREETYPE_MINOR$(space),MInOR=,$(work))
|
||||
work := $(subst $(hash)define$(space)FREETYPE_PATCH$(space),PAtCH=,$(work))
|
||||
work := $(subst \#define|FREETYPE_MINOR|,$(space),$(work))
|
||||
work := $(word 2,$(work))
|
||||
minor := $(subst |,$(space),$(work))
|
||||
minor := $(firstword $(minor))
|
||||
|
||||
major := $(subst MAjOR=,,$(filter MAjOR=%,$(work)))
|
||||
minor := $(subst MInOR=,,$(filter MInOR=%,$(work)))
|
||||
patch := $(subst PAtCH=,,$(filter PAtCH=%,$(work)))
|
||||
|
||||
work :=
|
||||
work := $(subst \#define|FREETYPE_PATCH|,$(space),$(work))
|
||||
work := $(word 2,$(work))
|
||||
patch := $(subst |,$(space),$(work))
|
||||
patch := $(firstword $(patch))
|
||||
|
||||
# ifneq ($(findstring x0x,x$(patch)x),)
|
||||
# version := $(major).$(minor)
|
||||
|
@ -288,15 +294,15 @@ CHANGELOG_SCRIPT = ~/git/config/gitlog-to-changelog
|
|||
|
||||
do-dist: distclean refdoc
|
||||
@# Without removing the files, `autoconf' and friends follow links.
|
||||
rm -f $(TOP_DIR)/builds/unix/aclocal.m4
|
||||
rm -f $(TOP_DIR)/builds/unix/configure.ac
|
||||
rm -f $(TOP_DIR)/builds/unix/configure
|
||||
rm -f builds/unix/aclocal.m4
|
||||
rm -f builds/unix/configure.ac
|
||||
rm -f builds/unix/configure
|
||||
|
||||
sh autogen.sh
|
||||
rm -rf $(TOP_DIR)/builds/unix/autom4te.cache
|
||||
rm -rf builds/unix/autom4te.cache
|
||||
|
||||
cp $(CONFIG_GUESS) $(TOP_DIR)/builds/unix
|
||||
cp $(CONFIG_SUB) $(TOP_DIR)/builds/unix
|
||||
cp $(CONFIG_GUESS) builds/unix
|
||||
cp $(CONFIG_SUB) builds/unix
|
||||
|
||||
@# Generate `ChangeLog' file with commits since release 2.11.0
|
||||
@# (when we stopped creating this file manually).
|
||||
|
@ -307,10 +313,10 @@ do-dist: distclean refdoc
|
|||
> ChangeLog
|
||||
|
||||
@# Remove intermediate files created by the `refdoc' target.
|
||||
rm -rf $(TOP_DIR)/docs/markdown
|
||||
rm -f $(TOP_DIR)/docs/mkdocs.yml
|
||||
rm -rf docs/markdown
|
||||
rm -f docs/mkdocs.yml
|
||||
|
||||
@# Remove more stuff related to git.
|
||||
rm -rf $(TOP_DIR)/subprojects/dlg
|
||||
rm -rf subprojects/dlg
|
||||
|
||||
# EOF
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
#
|
||||
# Copyright (C) 2001-2024 by
|
||||
# Copyright (C) 2001-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
@ -17,7 +17,7 @@ AC_CONFIG_SRCDIR([ftconfig.h.in])
|
|||
|
||||
# Don't forget to update `docs/VERSIONS.TXT'!
|
||||
|
||||
version_info='26:1:20'
|
||||
version_info='24:3:18'
|
||||
AC_SUBST([version_info])
|
||||
ft_version=`echo $version_info | tr : .`
|
||||
AC_SUBST([ft_version])
|
||||
|
@ -50,7 +50,7 @@ if test ${cross_compiling} = yes; then
|
|||
|
||||
AC_MSG_CHECKING([for suffix of native executables])
|
||||
rm -f a.* b.* a_out.exe conftest.*
|
||||
echo > conftest.c "int main(void) { return 0;}"
|
||||
echo > conftest.c "int main() { return 0;}"
|
||||
${CC_BUILD} conftest.c || AC_MSG_ERROR([native C compiler is not working])
|
||||
rm -f conftest.c
|
||||
if test -x a.out -o -x b.out -o -x conftest; then
|
||||
|
@ -163,6 +163,9 @@ fi
|
|||
AC_SUBST([FTSYS_SRC])
|
||||
|
||||
|
||||
AC_CHECK_FUNCS([memcpy memmove])
|
||||
|
||||
|
||||
# get compiler flags right
|
||||
#
|
||||
# We try to make the compiler work for C99-strict source. Even if the
|
||||
|
@ -403,12 +406,16 @@ if test x"$with_png" = xyes -o x"$with_png" = xauto; then
|
|||
have_libpng="yes (LIBPNG_CFLAGS and LIBPNG_LIBS)"
|
||||
else
|
||||
# fall back to config script
|
||||
AC_CHECK_PROG(have_libpng, [libpng-config], [yes (libpng-config)], [no])
|
||||
if test "$have_libpng" != no; then
|
||||
AC_MSG_CHECKING([for libpng-config])
|
||||
if which libpng-config > /dev/null 2>&1; then
|
||||
LIBPNG_CFLAGS=`libpng-config --cflags`
|
||||
LIBPNG_LIBS=`libpng-config --ldflags`
|
||||
libpng_libspriv=`libpng-config --static --ldflags`
|
||||
libpng_libsstaticconf="$libpng_libspriv"
|
||||
have_libpng="yes (libpng-config)"
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
@ -597,6 +604,84 @@ set ${save_config_args}
|
|||
|
||||
# Whether to use Mac OS resource-based fonts.
|
||||
|
||||
# to prevent the dependency with the deprecated APIs on Mac OS X,
|
||||
# check the compiler flag to detect the declared deprecation.
|
||||
#
|
||||
# test the flag "-Werror=deprecated-declarations" availability.
|
||||
# test 1: test whether the compiler accepts __attribute__((deprecated)).
|
||||
# test 2: test whether the compiler passes normal source if the flag is given.
|
||||
# test 3: test whether the compiler passes normal source if -Werror is given.
|
||||
# test 4: test whether the compiler rejects the source using deprecated variable.
|
||||
|
||||
CFLAG_error_deprecated=""
|
||||
|
||||
# test 1
|
||||
AC_MSG_CHECKING([${CC} accepts __attribute__((deprecated))])
|
||||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_PROGRAM([],[int x __attribute__((deprecated)); x = 0;])
|
||||
],[
|
||||
AC_MSG_RESULT(yes)
|
||||
ac_cc_attr_deprecated="yes"
|
||||
],[
|
||||
AC_MSG_RESULT(no)
|
||||
ac_cc_attr_deprecated="no"
|
||||
])
|
||||
|
||||
# test 2
|
||||
if test "x${ac_cc_attr_deprecated}" = "xyes"; then
|
||||
AC_MSG_CHECKING([${CC} compiler flag -Werror=deprecated-declarations])
|
||||
orig_CFLAGS="${CFLAGS}"
|
||||
CFLAGS="${CFLAGS} -Werror=deprecated-declarations"
|
||||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_PROGRAM([],[int x; x = 0;])
|
||||
],[ # test 2 success: -Werror=deprecated-declarations is available.
|
||||
AC_MSG_RESULT([supported])
|
||||
CFLAG_error_deprecated="-Werror=deprecated-declarations"
|
||||
],[ # test 2 failed: -Werror=deprecated-declarations is invalid flag.
|
||||
AC_MSG_RESULT([unavailable])
|
||||
CFLAG_error_deprecated=""
|
||||
])
|
||||
CFLAGS="${orig_CFLAGS}"
|
||||
fi
|
||||
|
||||
# test 3
|
||||
if test "x${ac_cc_attr_deprecated}" = "xyes" -a "x${CFLAG_error_deprecated}" = "x"; then
|
||||
AC_MSG_CHECKING([${CC} compiler flag -Werror])
|
||||
orig_CFLAGS="${CFLAGS}"
|
||||
CFLAGS="${CFLAGS} -Werror"
|
||||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_PROGRAM([],[int x; x = 0;])
|
||||
],[ # test 3 success: -Werror is available.
|
||||
AC_MSG_RESULT([supported])
|
||||
CFLAG_error_deprecated="-Werror"
|
||||
],[ # test 2 failed: -Werror=deprecated-declarations is invalid flag.
|
||||
AC_MSG_RESULT([unavailable])
|
||||
CFLAG_error_deprecated=""
|
||||
])
|
||||
CFLAGS="${orig_CFLAGS}"
|
||||
fi
|
||||
|
||||
# test 4
|
||||
if test "x${ac_cc_attr_deprecated}" = "xyes" -a "x${CFLAG_error_deprecated}" != "x"; then
|
||||
AC_MSG_CHECKING([${CC} ${CFLAG_error_deprecated} works properly])
|
||||
orig_CFLAGS="${CFLAGS}"
|
||||
CFLAGS="${CFLAGS} ${CFLAG_error_deprecated}"
|
||||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_PROGRAM([],[int x __attribute__((deprecated)); x = 0;])
|
||||
],[
|
||||
AC_MSG_RESULT([no]) # ${CFLAG_error_deprecated} cannot refuse a problematic source.
|
||||
CFLAG_error_deprecated=""
|
||||
],[
|
||||
AC_MSG_RESULT([yes]) # compiler refuses a problematic source.
|
||||
])
|
||||
CFLAGS="${orig_CFLAGS}"
|
||||
fi
|
||||
|
||||
if expr "${CC} ${CFLAGS} " : ".* -Wno-deprecated-declarations .*" > /dev/null; then
|
||||
AC_MSG_WARN([-Wno-deprecated-declaraions is given, some warnings would be hidden.])
|
||||
CFLAG_error_deprecated=""
|
||||
fi
|
||||
|
||||
ftmac_c="" # src/base/ftmac.c should not be included in makefiles by default
|
||||
|
||||
AC_ARG_WITH([old-mac-fonts],
|
||||
|
@ -606,7 +691,38 @@ if test x$with_old_mac_fonts = xyes; then
|
|||
orig_LDFLAGS="${LDFLAGS}"
|
||||
AC_MSG_CHECKING([CoreServices & ApplicationServices of Mac OS X])
|
||||
ft2_extra_libs="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
|
||||
LDFLAGS="$LDFLAGS $ft2_extra_libs"
|
||||
LDFLAGS="$LDFLAGS ${ft2_extra_libs}"
|
||||
|
||||
AC_LINK_IFELSE([
|
||||
AC_LANG_PROGRAM([
|
||||
|
||||
#if defined(__GNUC__) && defined(__APPLE_CC__)
|
||||
# include <CoreServices/CoreServices.h>
|
||||
# include <ApplicationServices/ApplicationServices.h>
|
||||
#else
|
||||
# include <ConditionalMacros.h>
|
||||
# include <Files.h>
|
||||
#endif
|
||||
|
||||
],
|
||||
[
|
||||
|
||||
short res = 0;
|
||||
|
||||
|
||||
UseResFile( res );
|
||||
|
||||
])
|
||||
],[
|
||||
AC_MSG_RESULT([available])
|
||||
],[
|
||||
AC_MSG_RESULT([not found])
|
||||
])
|
||||
|
||||
AC_MSG_CHECKING([whether UseRes() is deprecated])
|
||||
orig_CFLAGS="${CFLAGS}"
|
||||
CFLAGS="${CFLAGS} ${CFLAG_error_deprecated}"
|
||||
|
||||
AC_LINK_IFELSE([
|
||||
AC_LANG_PROGRAM([
|
||||
|
||||
|
@ -627,11 +743,12 @@ if test x$with_old_mac_fonts = xyes; then
|
|||
UseResFile( res );
|
||||
|
||||
])],
|
||||
[AC_MSG_RESULT([ok])
|
||||
[AC_MSG_RESULT([not deprecated])
|
||||
CFLAGS="${orig_CFLAGS}"
|
||||
ftmac_c='ftmac.c'
|
||||
AC_MSG_CHECKING([whether OS_INLINE macro is ANSI compatible])
|
||||
orig_CFLAGS="$CFLAGS -DFT_MACINTOSH"
|
||||
CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
|
||||
orig_CFLAGS="${CFLAGS} -DFT_MACINTOSH"
|
||||
CFLAGS="${CFLAGS} ${XX_CFLAGS} ${XX_ANSIFLAGS}"
|
||||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_PROGRAM([
|
||||
|
||||
|
@ -655,15 +772,15 @@ if test x$with_old_mac_fonts = xyes; then
|
|||
|
||||
])],
|
||||
[AC_MSG_RESULT([ok])
|
||||
CFLAGS="$orig_CFLAGS"
|
||||
CFLAGS="$CFLAGS -DHAVE_ANSI_OS_INLINE=1"
|
||||
CFLAGS="${orig_CFLAGS}"
|
||||
CFLAGS="${CFLAGS} -DHAVE_ANSI_OS_INLINE=1"
|
||||
],
|
||||
[AC_MSG_RESULT([no, ANSI incompatible])
|
||||
CFLAGS="$orig_CFLAGS"
|
||||
CFLAGS="${orig_CFLAGS}"
|
||||
])
|
||||
AC_MSG_CHECKING([type ResourceIndex])
|
||||
orig_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
|
||||
orig_CFLAGS="${CFLAGS}"
|
||||
CFLAGS="${CFLAGS} ${XX_CFLAGS} ${XX_ANSIFLAGS}"
|
||||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_PROGRAM([
|
||||
|
||||
|
@ -684,22 +801,23 @@ if test x$with_old_mac_fonts = xyes; then
|
|||
|
||||
])],
|
||||
[AC_MSG_RESULT([ok])
|
||||
CFLAGS="$orig_CFLAGS"
|
||||
CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=1"
|
||||
CFLAGS="${orig_CFLAGS}"
|
||||
CFLAGS="${CFLAGS} -DHAVE_TYPE_RESOURCE_INDEX=1"
|
||||
],
|
||||
[AC_MSG_RESULT([no])
|
||||
CFLAGS="$orig_CFLAGS"
|
||||
CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=0"
|
||||
CFLAGS="${orig_CFLAGS}"
|
||||
CFLAGS="${CFLAGS} -DHAVE_TYPE_RESOURCE_INDEX=0"
|
||||
])],
|
||||
[AC_MSG_RESULT([not found])
|
||||
[AC_MSG_RESULT([deprecated, Carbon API would not be used])
|
||||
CFLAGS="${orig_CFLAGS}"
|
||||
ft2_extra_libs=""
|
||||
LDFLAGS="${orig_LDFLAGS}"
|
||||
CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"])
|
||||
CFLAGS="${CFLAGS} -DDARWIN_NO_CARBON"])
|
||||
else
|
||||
case x$host_os in
|
||||
case "x${host_os}" in
|
||||
xdarwin*)
|
||||
dnl AC_MSG_WARN([host system is MacOS but configured to build without Carbon])
|
||||
CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
|
||||
CFLAGS="${CFLAGS} -DDARWIN_NO_CARBON"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
|
@ -711,10 +829,13 @@ fi
|
|||
|
||||
AC_ARG_WITH([fsspec],
|
||||
AS_HELP_STRING([--with-fsspec],
|
||||
[use obsolete FSSpec API of MacOS, if available (default=yes)]))
|
||||
if test x$with_fsspec = xno; then
|
||||
CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
|
||||
elif test x$with_old_mac_fonts = xyes -a x$with_fsspec != x; then
|
||||
[use obsolete FSSpec API of MacOS, if available (default=no)]),
|
||||
[with_fsspec="${withval}"],[with_fsspec="no"])
|
||||
if test "x${with_fsspec}" = "xno"; then
|
||||
CFLAGS="${CFLAGS} -DHAVE_FSSPEC=0"
|
||||
elif test "x${with_old_mac_fonts}" = "xyes" -a "x${with_fsspec}" != "xno"; then
|
||||
orig_CFLAGS="${CFLAGS}"
|
||||
CFLAGS="${CFLAGS} ${CFLAG_error_deprecated}"
|
||||
AC_MSG_CHECKING([FSSpec-based FileManager])
|
||||
AC_LINK_IFELSE([
|
||||
AC_LANG_PROGRAM([
|
||||
|
@ -743,9 +864,11 @@ elif test x$with_old_mac_fonts = xyes -a x$with_fsspec != x; then
|
|||
|
||||
])],
|
||||
[AC_MSG_RESULT([ok])
|
||||
CFLAGS="$CFLAGS -DHAVE_FSSPEC=1"],
|
||||
CFLAGS="${orig_CFLAGS}"
|
||||
CFLAGS="${CFLAGS} -DHAVE_FSSPEC=1"],
|
||||
[AC_MSG_RESULT([not found])
|
||||
CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"])
|
||||
CFLAGS="${orig_CFLAGS}"
|
||||
CFLAGS="${CFLAGS} -DHAVE_FSSPEC=0"])
|
||||
fi
|
||||
|
||||
|
||||
|
@ -753,15 +876,18 @@ fi
|
|||
|
||||
AC_ARG_WITH([fsref],
|
||||
AS_HELP_STRING([--with-fsref],
|
||||
[use Carbon FSRef API of MacOS, if available (default=yes)]))
|
||||
if test x$with_fsref = xno; then
|
||||
[use Carbon FSRef API of MacOS, if available (default=no)]),
|
||||
[with_fsref="${withval}"],[with_fsref="no"])
|
||||
if test "x${with_fsref}" = "xno"; then
|
||||
AC_MSG_WARN([
|
||||
*** WARNING
|
||||
FreeType2 built without FSRef API cannot load
|
||||
data-fork fonts on MacOS, except of XXX.dfont.
|
||||
])
|
||||
CFLAGS="$CFLAGS -DHAVE_FSREF=0"
|
||||
elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then
|
||||
CFLAGS="${CFLAGS} -DHAVE_FSREF=0"
|
||||
elif test "x${with_old_mac_fonts}" = "xyes" -a "x${with_fsref}" != "xno"; then
|
||||
orig_CFLAGS="${CFLAGS}"
|
||||
CFLAGS="${CFLAGS} ${CFLAG_error_deprecated}"
|
||||
AC_MSG_CHECKING([FSRef-based FileManager])
|
||||
AC_LINK_IFELSE([
|
||||
AC_LANG_PROGRAM([
|
||||
|
@ -785,7 +911,14 @@ elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then
|
|||
UInt8* path;
|
||||
SInt16 desiredRefNum;
|
||||
SInt16* iterator;
|
||||
SInt16* actualRefNum;
|
||||
void* actualRefNum = NULL;
|
||||
/*
|
||||
* FSGetForkCBInfo() 4th parameter actualRefNum
|
||||
* should be typed as SInt16* until 10.4, and
|
||||
* should be typed as FSIORefNum* since 10.5,
|
||||
* but FSIORefNum was undefined before 10.5.
|
||||
* ftmac.c always passes NULL for this parameter.
|
||||
*/
|
||||
HFSUniStr255* outForkName;
|
||||
FSVolumeRefNum volume;
|
||||
FSCatalogInfoBitmap whichInfo;
|
||||
|
@ -810,9 +943,11 @@ elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then
|
|||
#endif
|
||||
])],
|
||||
[AC_MSG_RESULT([ok])
|
||||
CFLAGS="$CFLAGS -DHAVE_FSREF=1"],
|
||||
CFLAGS="${orig_CFLAGS}"
|
||||
CFLAGS="${CFLAGS} -DHAVE_FSREF=1"],
|
||||
[AC_MSG_RESULT([not found])
|
||||
CFLAGS="$CFLAGS -DHAVE_FSREF=0"])
|
||||
CFLAGS="${orig_CFLAGS}"
|
||||
CFLAGS="${CFLAGS} -DHAVE_FSREF=0"])
|
||||
fi
|
||||
|
||||
|
||||
|
@ -821,10 +956,13 @@ fi
|
|||
|
||||
AC_ARG_WITH([quickdraw-toolbox],
|
||||
AS_HELP_STRING([--with-quickdraw-toolbox],
|
||||
[use MacOS QuickDraw in ToolBox, if available (default=yes)]))
|
||||
if test x$with_quickdraw_toolbox = xno; then
|
||||
[use MacOS QuickDraw in ToolBox, if available (default=no)]),
|
||||
[with_quickdraw_toolbox="${withval}"],[with_quickdraw_toolbox="no"])
|
||||
if test "x${with_quickdraw_toolbox}" = "xno"; then
|
||||
CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
|
||||
elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_toolbox != x; then
|
||||
elif test "x${with_old_mac_fonts}" = "xyes" -a "x${with_quickdraw_toolbox}" != "xno"; then
|
||||
orig_CFLAGS="${CFLAGS}"
|
||||
CFLAGS="${CFLAGS} ${CFLAG_error_deprecated}"
|
||||
AC_MSG_CHECKING([QuickDraw FontManager functions in ToolBox])
|
||||
AC_LINK_IFELSE([
|
||||
AC_LANG_PROGRAM([
|
||||
|
@ -852,9 +990,11 @@ elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_toolbox != x; then
|
|||
|
||||
])],
|
||||
[AC_MSG_RESULT([ok])
|
||||
CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=1"],
|
||||
CFLAGS="${orig_CFLAGS}"
|
||||
CFLAGS="${CFLAGS} -DHAVE_QUICKDRAW_TOOLBOX=1"],
|
||||
[AC_MSG_RESULT([not found])
|
||||
CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"])
|
||||
CFLAGS="${orig_CFLAGS}"
|
||||
CFLAGS="${CFLAGS} -DHAVE_QUICKDRAW_TOOLBOX=0"])
|
||||
fi
|
||||
|
||||
|
||||
|
@ -863,10 +1003,13 @@ fi
|
|||
|
||||
AC_ARG_WITH([quickdraw-carbon],
|
||||
AS_HELP_STRING([--with-quickdraw-carbon],
|
||||
[use MacOS QuickDraw in Carbon, if available (default=yes)]))
|
||||
if test x$with_quickdraw_carbon = xno; then
|
||||
CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
|
||||
elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_carbon != x; then
|
||||
[use MacOS QuickDraw in Carbon, if available (default=no)]),
|
||||
[with_quickdraw_carbon="${withval}"],[with_quickdraw_carbon="no"])
|
||||
if test "x${with_quickdraw_carbon}" = "xno"; then
|
||||
CFLAGS="${CFLAGS} -DHAVE_QUICKDRAW_CARBON=0"
|
||||
elif test "x${with_old_mac_fonts}" = "xyes" -a "x${with_quickdraw_carbon}" != "xno"; then
|
||||
orig_CFLAGS="${CFLAGS}"
|
||||
CFLAGS="${CFLAGS} ${CFLAG_error_deprecated}"
|
||||
AC_MSG_CHECKING([QuickDraw FontManager functions in Carbon])
|
||||
AC_LINK_IFELSE([
|
||||
AC_LANG_PROGRAM([
|
||||
|
@ -904,9 +1047,11 @@ elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_carbon != x; then
|
|||
|
||||
])],
|
||||
[AC_MSG_RESULT([ok])
|
||||
CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=1"],
|
||||
CFLAGS="${orig_CFLAGS}"
|
||||
CFLAGS="${CFLAGS} -DHAVE_QUICKDRAW_CARBON=1"],
|
||||
[AC_MSG_RESULT([not found])
|
||||
CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"])
|
||||
CFLAGS="${orig_CFLAGS}"
|
||||
CFLAGS="${CFLAGS} -DHAVE_QUICKDRAW_CARBON=0"])
|
||||
fi
|
||||
|
||||
|
||||
|
@ -914,10 +1059,13 @@ fi
|
|||
|
||||
AC_ARG_WITH([ats],
|
||||
AS_HELP_STRING([--with-ats],
|
||||
[use AppleTypeService, if available (default=yes)]))
|
||||
if test x$with_ats = xno; then
|
||||
CFLAGS="$CFLAGS -DHAVE_ATS=0"
|
||||
elif test x$with_old_mac_fonts = xyes -a x$with_ats != x; then
|
||||
[use AppleTypeService, if available (default=no)]),
|
||||
[with_ats="${withval}"],[with_ats="no"])
|
||||
if test "x${with_ats}" = "xno"; then
|
||||
CFLAGS="${CFLAGS} -DHAVE_ATS=0"
|
||||
elif test "x${with_old_mac_fonts}" = "xyes" -a "x${with_ats}" != "xno"; then
|
||||
orig_CFLAGS="${CFLAGS}"
|
||||
CFLAGS="${CFLAGS} ${CFLAG_error_deprecated}"
|
||||
AC_MSG_CHECKING([AppleTypeService functions])
|
||||
AC_LINK_IFELSE([
|
||||
AC_LANG_PROGRAM([
|
||||
|
@ -943,19 +1091,21 @@ elif test x$with_old_mac_fonts = xyes -a x$with_ats != x; then
|
|||
|
||||
])],
|
||||
[AC_MSG_RESULT([ok])
|
||||
CFLAGS="$CFLAGS -DHAVE_ATS=1"],
|
||||
CFLAGS="${orig_CFLAGS}"
|
||||
CFLAGS="${CFLAGS} -DHAVE_ATS=1"],
|
||||
[AC_MSG_RESULT([not found])
|
||||
CFLAGS="$CFLAGS -DHAVE_ATS=0"])
|
||||
CFLAGS="${orig_CFLAGS}"
|
||||
CFLAGS="${CFLAGS} -DHAVE_ATS=0"])
|
||||
fi
|
||||
|
||||
case "$CFLAGS" in
|
||||
case "${CFLAGS}" in
|
||||
*HAVE_FSSPEC* | *HAVE_FSREF* | *HAVE_QUICKDRAW* | *HAVE_ATS* )
|
||||
AC_MSG_WARN([
|
||||
*** WARNING
|
||||
FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
|
||||
thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
|
||||
])
|
||||
CFLAGS="$CFLAGS "'-I$(TOP_DIR)/builds/mac/'
|
||||
CFLAGS="${CFLAGS} "'-I$(TOP_DIR)/builds/mac/'
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
|
@ -966,14 +1116,14 @@ esac
|
|||
AX_PTHREAD([have_pthread=yes], [have_pthread=no])
|
||||
|
||||
# Check for Python and docwriter
|
||||
PYTHON_MIN_VERSION=3.5
|
||||
|
||||
have_py3=no
|
||||
have_docwriter=no
|
||||
PIP=pip
|
||||
|
||||
AC_CHECK_PROGS([PYTHON], [python3 python], [missing])
|
||||
if test "x$PYTHON" != "xmissing"; then
|
||||
AX_PROG_PYTHON_VERSION([$PYTHON_MIN_VERSION], [have_py3=yes], [])
|
||||
AX_PROG_PYTHON_VERSION([3.5], [have_py3=yes], [])
|
||||
|
||||
if test "x$have_py3" = "xyes"; then
|
||||
PIP="$PYTHON -m $PIP"
|
||||
|
@ -1162,7 +1312,7 @@ if test $have_docwriter = no; then
|
|||
`make refdoc' will fail since pip package `docwriter' is not installed.
|
||||
To install, run `$PIP install docwriter', or to use a Python
|
||||
virtual environment, run `make refdoc-venv' (requires pip package
|
||||
`virtualenv'). These operations require Python >= $PYTHON_MIN_VERSION.
|
||||
`virtualenv'). These operations require Python >= 3.5.
|
||||
])
|
||||
fi
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# Copyright (C) 2000-2024 by
|
||||
# Copyright (C) 2000-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Configure paths for FreeType2
|
||||
# Marcelo Magallon 2001-10-26, based on `gtk.m4` by Owen Taylor
|
||||
#
|
||||
# Copyright (C) 2001-2024 by
|
||||
# Copyright (C) 2001-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
@ -15,7 +15,7 @@
|
|||
# generated by Autoconf, under the same distribution terms as the rest of
|
||||
# that program.
|
||||
#
|
||||
# serial 7
|
||||
# serial 6
|
||||
|
||||
# AC_CHECK_FT2([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
||||
# Test for FreeType 2, and define FT2_CFLAGS and FT2_LIBS.
|
||||
|
@ -121,7 +121,7 @@ AC_DEFUN([AC_CHECK_FT2],
|
|||
#include <stdlib.h>
|
||||
|
||||
int
|
||||
main(void)
|
||||
main()
|
||||
{
|
||||
FT_Library library;
|
||||
FT_Error error;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
## FreeType specific autoconf tests
|
||||
#
|
||||
# Copyright (C) 2002-2024 by
|
||||
# Copyright (C) 2002-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* UNIX-specific configuration file (specification only).
|
||||
*
|
||||
* Copyright (C) 1996-2024 by
|
||||
* Copyright (C) 1996-2022 by
|
||||
* David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
*
|
||||
* This file is part of the FreeType project, and may only be used,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* Unix-specific FreeType low-level system interface (body).
|
||||
*
|
||||
* Copyright (C) 1996-2024 by
|
||||
* Copyright (C) 1996-2022 by
|
||||
* David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
*
|
||||
* This file is part of the FreeType project, and may only be used,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# FreeType 2 template for Unix-specific compiler definitions
|
||||
#
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
BIN
builds/vms/LIBS.OPT_IA64
Normal file
BIN
builds/vms/LIBS.OPT_IA64
Normal file
Binary file not shown.
BIN
builds/vms/_LINK.OPT_IA64
Normal file
BIN
builds/vms/_LINK.OPT_IA64
Normal file
Binary file not shown.
|
@ -1,2 +0,0 @@
|
|||
src/tools/apinames -wV include/freetype/*.h > freetype_vms0.opt
|
||||
mv freetype_vms0.opt freetype_vms.opt
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* VMS-specific configuration file (specification only).
|
||||
*
|
||||
* Copyright (C) 1996-2024 by
|
||||
* Copyright (C) 1996-2022 by
|
||||
* David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
*
|
||||
* This file is part of the FreeType project, and may only be used,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/* */
|
||||
/* VMS-specific FreeType low-level system interface (body). */
|
||||
/* */
|
||||
/* Copyright (C) 1996-2024 by */
|
||||
/* Copyright (C) 1996-2022 by */
|
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
||||
/* */
|
||||
/* This file is part of the FreeType project, and may only be used, */
|
||||
|
|
28
builds/vms/vmslib.dat
Normal file
28
builds/vms/vmslib.dat
Normal file
|
@ -0,0 +1,28 @@
|
|||
!
|
||||
! This is a simple driver file with information used by make.com to
|
||||
! check if external libraries (like t1lib and freetype) are available on
|
||||
! the system.
|
||||
!
|
||||
! Layout of the file:
|
||||
!
|
||||
! - Lines starting with ! are treated as comments
|
||||
! - Elements in a data line are separated by # signs
|
||||
! - The elements need to be listed in the following order
|
||||
! 1.) Name of the Library
|
||||
! 2.) Location where the object library can be found
|
||||
! 3.) Location where the include files for the library can be found
|
||||
! 4.) Include file used to verify library location
|
||||
! 5.) CPP define to pass to the build to indicate availability of
|
||||
! the library
|
||||
!
|
||||
! Example: The following lines show how definitions
|
||||
! might look like. They are site specific and the locations of the
|
||||
! library and include files need almost certainly to be changed.
|
||||
!
|
||||
! Location: All of the libaries can be found at the following addresses
|
||||
!
|
||||
! ZLIB: http://www.decus.de:8080/www/vms/sw/zlib.htmlx
|
||||
!
|
||||
BZ2LIB # sys$library:libbz2.olb # decc$user_include: # bzlib.h # FT_CONFIG_OPTION_SYSTEM_ZLIB
|
||||
PNGLIB # sys$library:libpng.olb # sys$library: # png.h # FT_CONFIG_OPTION_SYSTEM_ZLIB
|
||||
ZLIB # sys$library:libz.olb # sys$library: # zlib.h # FT_CONFIG_OPTION_SYSTEM_ZLIB
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* Debugging and logging component for WinCE (body).
|
||||
*
|
||||
* Copyright (C) 1996-2024 by
|
||||
* Copyright (C) 1996-2022 by
|
||||
* David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
*
|
||||
* This file is part of the FreeType project, and may only be used,
|
||||
|
|
|
@ -21,7 +21,7 @@ the following targets:
|
|||
<li>PPC/SP WM6 (Windows Mobile 6)</li>
|
||||
</ul>
|
||||
|
||||
It compiles the following libraries from the FreeType 2.13.2 sources:</p>
|
||||
It compiles the following libraries from the FreeType 2.12.1 sources:</p>
|
||||
|
||||
<ul>
|
||||
<pre>
|
||||
|
|
|
@ -21,7 +21,7 @@ the following targets:
|
|||
<li>PPC/SP WM6 (Windows Mobile 6)</li>
|
||||
</ul>
|
||||
|
||||
It compiles the following libraries from the FreeType 2.13.2 sources:</p>
|
||||
It compiles the following libraries from the FreeType 2.12.1 sources:</p>
|
||||
|
||||
<ul>
|
||||
<pre>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* Debugging and logging component for Win32 (body).
|
||||
*
|
||||
* Copyright (C) 1996-2024 by
|
||||
* Copyright (C) 1996-2022 by
|
||||
* David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
*
|
||||
* This file is part of the FreeType project, and may only be used,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* Windows-specific FreeType low-level system interface (body).
|
||||
*
|
||||
* Copyright (C) 2021-2024 by
|
||||
* Copyright (C) 2021-2022 by
|
||||
* David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
*
|
||||
* This file is part of the FreeType project, and may only be used,
|
||||
|
@ -196,8 +196,8 @@
|
|||
}
|
||||
|
||||
|
||||
/* support for Universal Windows Platform UWP, formerly WinRT */
|
||||
#ifdef _WINRT_DLL
|
||||
/* non-desktop Universal Windows Platform */
|
||||
#if defined( WINAPI_FAMILY ) && WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP
|
||||
|
||||
#define PACK_DWORD64( hi, lo ) ( ( (DWORD64)(hi) << 32 ) | (DWORD)(lo) )
|
||||
|
||||
|
@ -248,11 +248,10 @@
|
|||
dwCreationDisposition, &createExParams );
|
||||
}
|
||||
|
||||
#endif /* _WINRT_DLL */
|
||||
#endif
|
||||
|
||||
|
||||
/* support for Windows CE */
|
||||
#ifdef _WIN32_WCE
|
||||
#if defined( _WIN32_WCE )
|
||||
|
||||
/* malloc.h provides implementation of alloca()/_alloca() */
|
||||
#include <malloc.h>
|
||||
|
@ -292,9 +291,9 @@
|
|||
dwFlagsAndAttributes, hTemplateFile );
|
||||
}
|
||||
|
||||
#endif /* _WIN32_WCE */
|
||||
#endif
|
||||
|
||||
|
||||
/* support for really old Windows */
|
||||
#if defined( _WIN32_WCE ) || defined ( _WIN32_WINDOWS ) || \
|
||||
!defined( _WIN32_WINNT ) || _WIN32_WINNT <= 0x0400
|
||||
|
||||
|
@ -312,7 +311,7 @@
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
#endif /* _WIN32_WCE || _WIN32_WINDOWS || _WIN32_WINNT <= 0x0400 */
|
||||
#endif
|
||||
|
||||
|
||||
/* documentation is in ftobjs.h */
|
||||
|
|
|
@ -1,20 +1,6 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual Studio Express 2012 for Windows Desktop
|
||||
#
|
||||
# You can build FreeType with MSBuild as follows
|
||||
#
|
||||
# MSBuild.exe -t:Rebuild
|
||||
# -p:Configuration=Debug
|
||||
# -p:Platform=x64
|
||||
# -p:UserDefines=FT_DEBUG_LOGGING
|
||||
# MSBuild.sln
|
||||
#
|
||||
# or with different appropriate switches. The library file
|
||||
# freetype.dll and/or freetype.lib should appear in the objs/
|
||||
# folder. A copy should be sent to ../freetype-demos/bin/
|
||||
# to be used with the demo programs.
|
||||
#
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "freetype", "builds\windows\vc2010\freetype.vcxproj", "{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}"
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "freetype", "freetype.vcxproj", "{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
@ -168,7 +168,7 @@
|
|||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<CompileAs>Default</CompileAs>
|
||||
<DisableSpecificWarnings>4001;4267</DisableSpecificWarnings>
|
||||
<DisableSpecificWarnings>4001</DisableSpecificWarnings>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||
|
@ -195,7 +195,7 @@
|
|||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<CompileAs>Default</CompileAs>
|
||||
<DisableSpecificWarnings>4001;4267</DisableSpecificWarnings>
|
||||
<DisableSpecificWarnings>4001</DisableSpecificWarnings>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||
|
@ -248,7 +248,7 @@
|
|||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<CompileAs>Default</CompileAs>
|
||||
<DisableSpecificWarnings>4001;4267</DisableSpecificWarnings>
|
||||
<DisableSpecificWarnings>4001</DisableSpecificWarnings>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||
|
@ -274,7 +274,7 @@
|
|||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<CompileAs>Default</CompileAs>
|
||||
<DisableSpecificWarnings>4001;4267</DisableSpecificWarnings>
|
||||
<DisableSpecificWarnings>4001</DisableSpecificWarnings>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
<InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
|
||||
|
@ -328,7 +328,7 @@
|
|||
<DisableLanguageExtensions>true</DisableLanguageExtensions>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<CompileAs>Default</CompileAs>
|
||||
<DisableSpecificWarnings>4001;4267</DisableSpecificWarnings>
|
||||
<DisableSpecificWarnings>4001</DisableSpecificWarnings>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
|
@ -356,7 +356,7 @@
|
|||
<DisableLanguageExtensions>true</DisableLanguageExtensions>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<CompileAs>Default</CompileAs>
|
||||
<DisableSpecificWarnings>4001;4267</DisableSpecificWarnings>
|
||||
<DisableSpecificWarnings>4001</DisableSpecificWarnings>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
</ClCompile>
|
||||
|
@ -409,7 +409,7 @@
|
|||
<DisableLanguageExtensions>true</DisableLanguageExtensions>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<CompileAs>Default</CompileAs>
|
||||
<DisableSpecificWarnings>4001;4267</DisableSpecificWarnings>
|
||||
<DisableSpecificWarnings>4001</DisableSpecificWarnings>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
|
@ -435,7 +435,7 @@
|
|||
<DisableLanguageExtensions>true</DisableLanguageExtensions>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<CompileAs>Default</CompileAs>
|
||||
<DisableSpecificWarnings>4001;4267</DisableSpecificWarnings>
|
||||
<DisableSpecificWarnings>4001</DisableSpecificWarnings>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
</ClCompile>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<p>This directory contains solution and project files for
|
||||
Visual C++ 2010 or newer, named <tt>freetype.sln</tt>,
|
||||
and <tt>freetype.vcxproj</tt>. It compiles the following libraries
|
||||
from the FreeType 2.13.2 sources:</p>
|
||||
from the FreeType 2.12.1 sources:</p>
|
||||
|
||||
<ul>
|
||||
<li>freetype.dll using 'Release' or 'Debug' configurations</li>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<p>This directory contains project files <tt>freetype.dsp</tt> for
|
||||
Visual C++ 6.0, and <tt>freetype.vcproj</tt> for Visual C++ 2002
|
||||
through 2008, which you might need to upgrade automatically.
|
||||
It compiles the following libraries from the FreeType 2.13.2 sources:</p>
|
||||
It compiles the following libraries from the FreeType 2.12.1 sources:</p>
|
||||
|
||||
<ul>
|
||||
<li>freetype.dll using 'Release' or 'Debug' configurations</li>
|
||||
|
|
|
@ -21,7 +21,7 @@ the following targets:
|
|||
<li>PPC/SP WM6 (Windows Mobile 6)</li>
|
||||
</ul>
|
||||
|
||||
It compiles the following libraries from the FreeType 2.13.2 sources:</p>
|
||||
It compiles the following libraries from the FreeType 2.12.1 sources:</p>
|
||||
|
||||
<ul>
|
||||
<pre>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
|
||||
# Copyright (C) 1996-2024 by
|
||||
# Copyright (C) 1996-2022 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue