Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alchemy
Third Party
3p-freetype
Commits
94574e8b
Commit
94574e8b
authored
May 03, 2022
by
Rye Mutt
🍞
Browse files
Merge branch 'vendor'
parents
edb598ee
23db0c69
Pipeline
#1506
passed with stages
in 1 minute and 20 seconds
Changes
689
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
freetype/CMakeLists.txt
View file @
94574e8b
# CMakeLists.txt
#
# Copyright (C) 2013-202
1
by
# Copyright (C) 2013-202
2
by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# Written originally by John Cary <cary@txcorp.com>
...
...
@@ -106,10 +106,9 @@
# (this is compatible with the same CMake variables in zlib's CMake
# support).
# FreeType explicitly marks the API to be exported and relies on the compiler
# to hide all other symbols. CMake supports a C_VISBILITY_PRESET property
# starting with 2.8.12.
cmake_minimum_required
(
VERSION 2.8.12
)
# To minimize the number of cmake_policy() workarounds,
# CMake >= 3 is requested.
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
...
...
@@ -122,6 +121,7 @@ endif ()
include
(
CheckIncludeFile
)
include
(
CMakeDependentOption
)
include
(
FindPkgConfig
)
# CMAKE_TOOLCHAIN_FILE must be set before `project' is called, which
# configures the base build environment and references the toolchain file
...
...
@@ -162,7 +162,7 @@ endif ()
project
(
freetype C
)
set
(
VERSION_MAJOR
"2"
)
set
(
VERSION_MINOR
"1
1
"
)
set
(
VERSION_MINOR
"1
2
"
)
set
(
VERSION_PATCH
"1"
)
# Generate LIBRARY_VERSION and LIBRARY_SOVERSION.
...
...
@@ -239,7 +239,7 @@ if (BUILD_FRAMEWORK)
message
(
FATAL_ERROR
"You should use Xcode generator with BUILD_FRAMEWORK enabled"
)
endif
()
set
(
CMAKE_OSX_ARCHITECTURES
"$(ARCHS_STANDARD
_32_64_BIT
)"
)
set
(
CMAKE_OSX_ARCHITECTURES
"$(ARCHS_STANDARD)"
)
set
(
BUILD_SHARED_LIBS ON
)
endif
()
...
...
@@ -265,9 +265,14 @@ if (NOT FT_DISABLE_ZLIB)
endif
()
if
(
NOT FT_DISABLE_BZIP2
)
# Genuine BZip2 does not provide bzip2.pc, but some platforms have it.
# For better dependency in freetype2.pc, bzip2.pc is searched
# regardless of the availability of libbz2. If bzip2.pc is found,
# Requires.private is used instead of Libs.private.
if
(
FT_REQUIRE_BZIP2
)
find_package
(
BZip2 REQUIRED
)
endif
()
pkg_check_modules
(
PC_BZIP2 bzip2
)
endif
()
if
(
NOT FT_DISABLE_BROTLI
)
...
...
@@ -390,6 +395,7 @@ set(BASE_SRCS
src/sdf/sdf.c
src/sfnt/sfnt.c
src/smooth/smooth.c
src/svg/svg.c
src/truetype/truetype.c
src/type1/type1.c
src/type42/type42.c
...
...
@@ -475,42 +481,48 @@ if (BUILD_FRAMEWORK)
)
set_target_properties
(
freetype PROPERTIES
FRAMEWORK TRUE
MACOSX_FRAMEWORK_INFO_PLIST builds/mac/freetype-Info.plist
MACOSX_FRAMEWORK_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/
builds/mac/freetype-Info.plist
PUBLIC_HEADER
"
${
PUBLIC_HEADERS
}
"
XCODE_ATTRIBUTE_INSTALL_PATH
"@rpath"
)
endif
()
set
(
PKG_CONFIG_REQUIRED_PRIVATE
""
)
set
(
PKG_CONFIG_LIBS_PRIVATE
""
)
set
(
PKGCONFIG_REQUIRES
""
)
set
(
PKGCONFIG_REQUIRES_PRIVATE
""
)
set
(
PKGCONFIG_LIBS
"-L
\$
{libdir} -lfreetype"
)
set
(
PKGCONFIG_LIBS_PRIVATE
""
)
if
(
ZLIB_FOUND
)
target_link_libraries
(
freetype PRIVATE
${
ZLIB_LIBRARIES
}
)
target_include_directories
(
freetype PRIVATE
${
ZLIB_INCLUDE_DIRS
}
)
list
(
APPEND PKG
_
CONFIG_REQUIRE
D
_PRIVATE
"zlib"
)
list
(
APPEND PKGCONFIG_REQUIRE
S
_PRIVATE
"zlib"
)
endif
()
if
(
BZIP2_FOUND
)
target_link_libraries
(
freetype PRIVATE
${
BZIP2_LIBRARIES
}
)
target_include_directories
(
freetype PRIVATE
${
BZIP2_INCLUDE_DIR
}
)
# not BZIP2_INCLUDE_DIRS
list
(
APPEND PKG_CONFIG_LIBS_PRIVATE
"-lbz2"
)
if
(
PC_BZIP2_FOUND
)
list
(
APPEND PKGCONFIG_REQUIRES_PRIVATE
"bzip2"
)
else
()
list
(
APPEND PKGCONFIG_LIBS_PRIVATE
"-lbz2"
)
endif
()
endif
()
if
(
PNG_FOUND
)
target_link_libraries
(
freetype PRIVATE
${
PNG_LIBRARIES
}
)
target_compile_definitions
(
freetype PRIVATE
${
PNG_DEFINITIONS
}
)
target_include_directories
(
freetype PRIVATE
${
PNG_INCLUDE_DIRS
}
)
list
(
APPEND PKG
_
CONFIG_REQUIRE
D
_PRIVATE
"libpng"
)
list
(
APPEND PKGCONFIG_REQUIRE
S
_PRIVATE
"libpng"
)
endif
()
if
(
HarfBuzz_FOUND
)
target_link_libraries
(
freetype PRIVATE
${
HarfBuzz_LIBRARY
}
)
target_include_directories
(
freetype PRIVATE
${
HarfBuzz_INCLUDE_DIRS
}
)
list
(
APPEND PKG
_
CONFIG_REQUIRE
D
_PRIVATE
"harfbuzz >=
${
HARFBUZZ_MIN_VERSION
}
"
)
list
(
APPEND PKGCONFIG_REQUIRE
S
_PRIVATE
"harfbuzz >=
${
HARFBUZZ_MIN_VERSION
}
"
)
endif
()
if
(
BROTLIDEC_FOUND
)
target_link_libraries
(
freetype PRIVATE
${
BROTLIDEC_LIBRARIES
}
)
target_compile_definitions
(
freetype PRIVATE
${
BROTLIDEC_DEFINITIONS
}
)
target_include_directories
(
freetype PRIVATE
${
BROTLIDEC_INCLUDE_DIRS
}
)
list
(
APPEND PKG
_
CONFIG_REQUIRE
D
_PRIVATE
"libbrotlidec"
)
list
(
APPEND PKGCONFIG_REQUIRE
S
_PRIVATE
"libbrotlidec"
)
endif
()
# <ALCHEMY>
...
...
@@ -543,7 +555,7 @@ if (NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL)
# Generate the pkg-config file
file
(
READ
"
${
PROJECT_SOURCE_DIR
}
/builds/unix/freetype2.in"
FREETYPE2_PC_IN
)
string
(
REPLACE
";"
", "
PKG
_
CONFIG_REQUIRE
D
_PRIVATE
"
${
PKG
_
CONFIG_REQUIRE
D
_PRIVATE
}
"
)
string
(
REPLACE
";"
", "
PKGCONFIG_REQUIRE
S
_PRIVATE
"
${
PKGCONFIG_REQUIRE
S
_PRIVATE
}
"
)
string
(
REPLACE
"%prefix%"
${
CMAKE_INSTALL_PREFIX
}
FREETYPE2_PC_IN
${
FREETYPE2_PC_IN
}
)
...
...
@@ -555,10 +567,26 @@ if (NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL)
FREETYPE2_PC_IN
${
FREETYPE2_PC_IN
}
)
string
(
REPLACE
"%ft_version%"
"
${
LIBTOOL_CURRENT
}
.
${
LIBTOOL_REVISION
}
.
${
LIBTOOL_AGE
}
"
FREETYPE2_PC_IN
${
FREETYPE2_PC_IN
}
)
string
(
REPLACE
"%REQUIRES_PRIVATE%"
"
${
PKG_CONFIG_REQUIRED_PRIVATE
}
"
FREETYPE2_PC_IN
${
FREETYPE2_PC_IN
}
)
string
(
REPLACE
"%LIBS_PRIVATE%"
"
${
PKG_CONFIG_LIBS_PRIVATE
}
"
FREETYPE2_PC_IN
${
FREETYPE2_PC_IN
}
)
if
(
BUILD_SHARED_LIBS
)
string
(
REPLACE
"%PKGCONFIG_REQUIRES%"
"
${
PKGCONFIG_REQUIRES
}
"
FREETYPE2_PC_IN
${
FREETYPE2_PC_IN
}
)
string
(
REPLACE
"%PKGCONFIG_REQUIRES_PRIVATE%"
"
${
PKGCONFIG_REQUIRES_PRIVATE
}
"
FREETYPE2_PC_IN
${
FREETYPE2_PC_IN
}
)
string
(
REPLACE
"%PKGCONFIG_LIBS%"
"
${
PKGCONFIG_LIBS
}
"
FREETYPE2_PC_IN
${
FREETYPE2_PC_IN
}
)
string
(
REPLACE
"%PKGCONFIG_LIBS_PRIVATE%"
"
${
PKGCONFIG_LIBS_PRIVATE
}
"
FREETYPE2_PC_IN
${
FREETYPE2_PC_IN
}
)
else
()
string
(
REPLACE
"%PKGCONFIG_REQUIRES%"
"
${
PKGCONFIG_REQUIRES
}
${
PKGCONFIG_REQUIRES_PRIVATE
}
"
FREETYPE2_PC_IN
${
FREETYPE2_PC_IN
}
)
string
(
REPLACE
"%PKGCONFIG_REQUIRES_PRIVATE%"
""
FREETYPE2_PC_IN
${
FREETYPE2_PC_IN
}
)
string
(
REPLACE
"%PKGCONFIG_LIBS%"
"
${
PKGCONFIG_LIBS
}
${
PKGCONFIG_LIBS_PRIVATE
}
"
FREETYPE2_PC_IN
${
FREETYPE2_PC_IN
}
)
string
(
REPLACE
"%PKGCONFIG_LIBS_PRIVATE%"
""
FREETYPE2_PC_IN
${
FREETYPE2_PC_IN
}
)
endif
()
set
(
FREETYPE2_PC_IN_NAME
"
${
PROJECT_BINARY_DIR
}
/freetype2.pc"
)
if
(
EXISTS
"
${
FREETYPE2_PC_IN_NAME
}
"
)
...
...
freetype/ChangeLog
View file @
94574e8b
This diff is collapsed.
Click to expand it.
freetype/Makefile
View file @
94574e8b
...
...
@@ -3,7 +3,7 @@
#
# Copyright (C) 1996-202
1
by
# Copyright (C) 1996-202
2
by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
...
...
freetype/README
View file @
94574e8b
FreeType 2.1
1
.1
FreeType 2.1
2
.1
===============
Homepage: https://www.freetype.org
...
...
@@ -30,9 +30,9 @@ sites. Go to
and download one of the following files.
freetype-doc-2.1
1
.1.tar.xz
freetype-doc-2.1
1
.1.tar.gz
ftdoc21
1
1.zip
freetype-doc-2.1
2
.1.tar.xz
freetype-doc-2.1
2
.1.tar.gz
ftdoc21
2
1.zip
To view the documentation online, go to
...
...
@@ -92,7 +92,7 @@ Enjoy!
----------------------------------------------------------------------
Copyright (C) 2006-202
1
by
Copyright (C) 2006-202
2
by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used,
...
...
freetype/README.git
View file @
94574e8b
...
...
@@ -89,7 +89,7 @@ address:
----------------------------------------------------------------------
Copyright (C) 2005-202
1
by
Copyright (C) 2005-202
2
by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used,
...
...
freetype/autogen.sh
View file @
94574e8b
#!/bin/sh
# Copyright (C) 2005-202
1
by
# Copyright (C) 2005-202
2
by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
...
...
@@ -182,7 +182,7 @@ copy_submodule_files ()
cp
$DLG_SRC_DIR
/
*
src/dlg
}
if
test
-
d
".git"
;
then
if
test
-
e
".git"
;
then
DLG_INC_DIR
=
subprojects/dlg/include/dlg
DLG_SRC_DIR
=
subprojects/dlg/src/dlg
...
...
freetype/builds/amiga/README
View file @
94574e8b
README for the builds/amiga subdirectory.
Copyright (C) 2005-202
1
by
Copyright (C) 2005-202
2
by
Werner Lemberg and Detlef Würkner.
This file is part of the FreeType project, and may only be used, modified,
...
...
freetype/builds/amiga/include/config/ftconfig.h
View file @
94574e8b
...
...
@@ -4,7 +4,7 @@
/* */
/* Amiga-specific configuration file (specification only). */
/* */
/* Copyright (C) 2005-202
1
by */
/* Copyright (C) 2005-202
2
by */
/* Werner Lemberg and Detlef Wrkner. */
/* */
/* This file is part of the FreeType project, and may only be used, */
...
...
freetype/builds/amiga/include/config/ftmodule.h
View file @
94574e8b
...
...
@@ -4,7 +4,7 @@
/* */
/* Amiga-specific FreeType module selection. */
/* */
/* Copyright (C) 2005-202
1
by */
/* Copyright (C) 2005-202
2
by */
/* Werner Lemberg and Detlef Wrkner. */
/* */
/* This file is part of the FreeType project, and may only be used, */
...
...
freetype/builds/amiga/makefile
View file @
94574e8b
...
...
@@ -5,7 +5,7 @@
#
# Copyright (C) 2005-202
1
by
# Copyright (C) 2005-202
2
by
# Werner Lemberg and Detlef Wrkner.
#
# This file is part of the FreeType project, and may only be used, modified,
...
...
freetype/builds/amiga/makefile.os4
View file @
94574e8b
...
...
@@ -4,7 +4,7 @@
#
# Copyright (C) 2005-202
1
by
# Copyright (C) 2005-202
2
by
# Werner Lemberg and Detlef Wrkner.
#
# This file is part of the FreeType project, and may only be used, modified,
...
...
freetype/builds/amiga/smakefile
View file @
94574e8b
...
...
@@ -3,7 +3,7 @@
#
# Copyright (C) 2005-202
1
by
# Copyright (C) 2005-202
2
by
# Werner Lemberg and Detlef Wrkner.
#
# This file is part of the FreeType project, and may only be used, modified,
...
...
freetype/builds/amiga/src/base/ftdebug.c
View file @
94574e8b
...
...
@@ -4,7 +4,7 @@
*
* Debugging and logging component for amiga (body).
*
* Copyright (C) 1996-202
1
by
* Copyright (C) 1996-202
2
by
* David Turner, Robert Wilhelm, Werner Lemberg, and Detlef Wuerkner.
*
* This file is part of the FreeType project, and may only be used,
...
...
freetype/builds/amiga/src/base/ftsystem.c
View file @
94574e8b
...
...
@@ -4,7 +4,7 @@
/* */
/* Amiga-specific FreeType low-level system interface (body). */
/* */
/* Copyright (C) 1996-202
1
by */
/* Copyright (C) 1996-202
2
by */
/* David Turner, Robert Wilhelm, Werner Lemberg and Detlef Wrkner. */
/* */
/* This file is part of the FreeType project, and may only be used, */
...
...
freetype/builds/ansi/ansi-def.mk
View file @
94574e8b
...
...
@@ -3,7 +3,7 @@
#
# Copyright (C) 1996-202
1
by
# Copyright (C) 1996-202
2
by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
...
...
freetype/builds/ansi/ansi.mk
View file @
94574e8b
...
...
@@ -3,7 +3,7 @@
#
# Copyright (C) 1996-202
1
by
# Copyright (C) 1996-202
2
by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
...
...
freetype/builds/beos/beos-def.mk
View file @
94574e8b
...
...
@@ -5,7 +5,7 @@
#
# Copyright (C) 1996-202
1
by
# Copyright (C) 1996-202
2
by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
...
...
freetype/builds/beos/beos.mk
View file @
94574e8b
...
...
@@ -2,7 +2,7 @@
# FreeType 2 configuration rules for a BeOS system
#
# Copyright (C) 1996-202
1
by
# Copyright (C) 1996-202
2
by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
...
...
freetype/builds/beos/detect.mk
View file @
94574e8b
...
...
@@ -3,7 +3,7 @@
#
# Copyright (C) 1996-202
1
by
# Copyright (C) 1996-202
2
by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
...
...
freetype/builds/cmake/FindBrotliDec.cmake
View file @
94574e8b
# FindBrotliDec.cmake
#
# Copyright (C) 2019-202
1
by
# Copyright (C) 2019-202
2
by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# Written by Werner Lemberg <wl@gnu.org>
...
...
Prev
1
2
3
4
5
…
35
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment