mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-25 23:49:09 +00:00
.github
bin
cmake
scripts
AddCustomXXXTimestamp.cmake
Catch.cmake
CatchAddTests.cmake
CheckAtomic.cmake
CompileFlags.cmake
CreateGrfCommand.cmake
CreateRegression.cmake
Endian.cmake
FindAllegro.cmake
FindEditbin.cmake
FindFluidsynth.cmake
FindFontconfig.cmake
FindGrfcodec.cmake
FindHarfbuzz.cmake
FindICU.cmake
FindIconv.cmake
FindLZO.cmake
FindPandoc.cmake
FindSSE.cmake
FindXaudio2.cmake
InstallAndPackage.cmake
LinkPackage.cmake
MSVCFilters.cmake
Options.cmake
PackageBundle.cmake
PackageDeb.cmake
PackageNSIS.cmake
PackageRPM.cmake
SourceList.cmake
Static.cmake
docs
media
os
regression
src
.dorpsgek.yml
.editorconfig
.gitignore
CMakeLists.txt
CODINGSTYLE.md
COMPILING.md
CONTRIBUTING.md
COPYING.md
CPackProperties.cmake.in
CREDITS.md
Doxyfile.in
README.md
changelog.txt
known-bugs.txt
vcpkg.json
This means we have RTL support again with ICU 58+. It makes use of: - ICU for bidi-itemization - ICU for script-itemization - OpenTTD for style-itemization - harfbuzz for shaping
66 lines
1.4 KiB
CMake
66 lines
1.4 KiB
CMake
#[=======================================================================[.rst:
|
|
FindHarfBuzz
|
|
-------
|
|
|
|
Finds the harfbuzz library.
|
|
|
|
Result Variables
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
This will define the following variables:
|
|
|
|
``Harfbuzz_FOUND``
|
|
True if the system has the harfbuzz library.
|
|
``Harfbuzz_INCLUDE_DIRS``
|
|
Include directories needed to use harfbuzz.
|
|
``Harfbuzz_LIBRARIES``
|
|
Libraries needed to link to harfbuzz.
|
|
``Harfbuzz_VERSION``
|
|
The version of the harfbuzz library which was found.
|
|
|
|
Cache Variables
|
|
^^^^^^^^^^^^^^^
|
|
|
|
The following cache variables may also be set:
|
|
|
|
``Harfbuzz_INCLUDE_DIR``
|
|
The directory containing ``hb.h``.
|
|
``Harfbuzz_LIBRARY``
|
|
The path to the harfbuzz library.
|
|
|
|
#]=======================================================================]
|
|
|
|
find_package(PkgConfig QUIET)
|
|
pkg_check_modules(PC_Harfbuzz QUIET harfbuzz)
|
|
|
|
find_path(Harfbuzz_INCLUDE_DIR
|
|
NAMES hb.h
|
|
PATHS ${PC_Harfbuzz_INCLUDE_DIRS}
|
|
)
|
|
|
|
find_library(Harfbuzz_LIBRARY
|
|
NAMES harfbuzz
|
|
PATHS ${PC_Harfbuzz_LIBRARY_DIRS}
|
|
)
|
|
|
|
set(Harfbuzz_VERSION ${PC_Harfbuzz_VERSION})
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(Harfbuzz
|
|
FOUND_VAR Harfbuzz_FOUND
|
|
REQUIRED_VARS
|
|
Harfbuzz_LIBRARY
|
|
Harfbuzz_INCLUDE_DIR
|
|
VERSION_VAR Harfbuzz_VERSION
|
|
)
|
|
|
|
if(Harfbuzz_FOUND)
|
|
set(Harfbuzz_LIBRARIES ${Harfbuzz_LIBRARY})
|
|
set(Harfbuzz_INCLUDE_DIRS ${Harfbuzz_INCLUDE_DIR})
|
|
endif()
|
|
|
|
mark_as_advanced(
|
|
Harfbuzz_INCLUDE_DIR
|
|
Harfbuzz_LIBRARY
|
|
)
|