Add Chromium-only Blender WebEngine parity work
This commit is contained in:
59
blender-5.2.0/build_files/cmake/Modules/FindFribidi.cmake
Normal file
59
blender-5.2.0/build_files/cmake/Modules/FindFribidi.cmake
Normal file
@@ -0,0 +1,59 @@
|
||||
# SPDX-FileCopyrightText: 2023 Blender Authors
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
# - Find Fribidi library
|
||||
# Find the native fribidi includes and library
|
||||
# This module defines
|
||||
# LIBFRIBIDI_INCLUDE_DIRS, where to find fribidi/fribidi.h, Set when
|
||||
# LIBFRIBIDI_INCLUDE_DIR is found.
|
||||
# LIBFRIBIDI_LIBRARIES, libraries to link against to use fribidi.
|
||||
# LIBFRIBIDI_ROOT_DIR, The base directory to search for Fribidi.
|
||||
# This can also be an environment variable.
|
||||
# FRIBIDI_FOUND, If false, do not try to use Fribidi.
|
||||
#
|
||||
# also defined, but not for general use are
|
||||
# LIBFRIBIDI_LIBRARY, where to find the Fribidi library.
|
||||
|
||||
# If LIBFRIBIDI_ROOT_DIR was defined in the environment, use it.
|
||||
if(NOT LIBFRIBIDI_ROOT_DIR AND NOT $ENV{LIBFRIBIDI_ROOT_DIR} STREQUAL "")
|
||||
set(LIBFRIBIDI_ROOT_DIR $ENV{LIBFRIBIDI_ROOT_DIR})
|
||||
endif()
|
||||
|
||||
set(_fribidi_SEARCH_DIRS
|
||||
${LIBFRIBIDI_ROOT_DIR}
|
||||
)
|
||||
|
||||
find_path(LIBFRIBIDI_INCLUDE_DIR fribidi/fribidi.h
|
||||
HINTS
|
||||
${_fribidi_SEARCH_DIRS}
|
||||
PATH_SUFFIXES
|
||||
include
|
||||
)
|
||||
|
||||
find_library(LIBFRIBIDI_LIBRARY
|
||||
NAMES
|
||||
fribidi
|
||||
HINTS
|
||||
${_fribidi_SEARCH_DIRS}
|
||||
PATH_SUFFIXES
|
||||
lib64 lib
|
||||
)
|
||||
|
||||
# handle the QUIETLY and REQUIRED arguments and set FRIBIDI_FOUND to TRUE if
|
||||
# all listed variables are TRUE
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(Fribidi DEFAULT_MSG
|
||||
LIBFRIBIDI_LIBRARY LIBFRIBIDI_INCLUDE_DIR)
|
||||
|
||||
if(FRIBIDI_FOUND)
|
||||
set(LIBFRIBIDI_LIBRARIES ${LIBFRIBIDI_LIBRARY})
|
||||
set(LIBFRIBIDI_INCLUDE_DIRS ${LIBFRIBIDI_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
mark_as_advanced(
|
||||
LIBFRIBIDI_INCLUDE_DIR
|
||||
LIBFRIBIDI_LIBRARY
|
||||
)
|
||||
|
||||
unset(_fribidi_SEARCH_DIRS)
|
||||
Reference in New Issue
Block a user