Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
obs-studio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yunxiang Li
obs-studio
Commits
62d7bcf8
You need to sign in or sign up before continuing.
Commit
62d7bcf8
authored
10 years ago
by
BtbN
Committed by
Jim
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix Freetype cmake module
parent
bffbe943
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/Modules/FindFreetype.cmake
+67
-67
67 additions, 67 deletions
cmake/Modules/FindFreetype.cmake
with
67 additions
and
67 deletions
cmake/Modules/FindFreetype.cmake
+
67
−
67
View file @
62d7bcf8
...
...
@@ -3,79 +3,79 @@
# FREETYPE_FOUND
# FREETYPE_INCLUDE_DIRS
# FREETYPE_LIBRARIES
#
if
(
FREETYPE_INCLUDE_DIRS AND FREETYPE_LIBRARIES
)
set
(
FREETYPE_FOUND TRUE
)
else
()
find_package
(
PkgConfig QUIET
)
if
(
PKG_CONFIG_FOUND
)
pkg_check_modules
(
_FREETYPE QUIET freetype2
)
endif
()
find_package
(
PkgConfig QUIET
)
if
(
PKG_CONFIG_FOUND
)
pkg_check_modules
(
_FREETYPE QUIET freetype2
)
endif
()
if
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
set
(
_lib_suffix 64
)
else
()
set
(
_lib_suffix 32
)
endif
()
if
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
set
(
_lib_suffix 64
)
else
()
set
(
_lib_suffix 32
)
endif
()
find_path
(
FREETYPE_INCLUDE_DIR_ft2build
NAMES
ft2build.h
HINTS
${
_FREETYPE_INCLUDE_DIRS
}
"
${
CMAKE_SOURCE_DIR
}
/additional_install_files/include"
"$ENV{obsAdditionalInstallFiles}/include"
ENV FreetypePath
${
_lib_suffix
}
ENV FreetypePath
ENV FREETYPE_DIR
PATHS
/usr/include /usr/local/include /opt/local/include /sw/include
PATH_SUFFIXES
include/freetype2 include
)
find_path
(
FREETYPE_INCLUDE_DIR_ft2build
NAMES
ft2build.h
HINTS
${
_FREETYPE_INCLUDE_DIRS
}
"
${
CMAKE_SOURCE_DIR
}
/additional_install_files/include"
"$ENV{obsAdditionalInstallFiles}/include"
ENV FreetypePath
${
_lib_suffix
}
ENV FreetypePath
ENV FREETYPE_DIR
PATHS
/usr/include /usr/local/include /opt/local/include /sw/include
PATH_SUFFIXES
freetype2
include/freetype2 include
)
find_path
(
FREETYPE_INCLUDE_DIR_freetype2
NAMES
freetype/config/ftheader.h
config/ftheader.h
HINTS
${
_FREETYPE_INCLUDE_DIRS
}
"
${
CMAKE_SOURCE_DIR
}
/additional_install_files/include"
"$ENV{obsAdditionalInstallFiles}/include"
ENV FreetypePath
${
_lib_suffix
}
ENV FreetypePath
ENV FREETYPE_DIR
PATHS
/usr/include /usr/local/include /opt/local/include /sw/include
PATH_SUFFIXES
include/freetype2 include
)
find_path
(
FREETYPE_INCLUDE_DIR_freetype2
NAMES
freetype/config/ftheader.h
config/ftheader.h
HINTS
${
_FREETYPE_INCLUDE_DIRS
}
"
${
CMAKE_SOURCE_DIR
}
/additional_install_files/include"
"$ENV{obsAdditionalInstallFiles}/include"
ENV FreetypePath
${
_lib_suffix
}
ENV FreetypePath
ENV FREETYPE_DIR
PATHS
/usr/include /usr/local/include /opt/local/include /sw/include
PATH_SUFFIXES
freetype2
include/freetype2 include
)
find_library
(
FREETYPE_LIB
NAMES
${
_FREETYPE_LIBRARIES
}
freetype libfreetype
HINTS
${
_FREETYPE_LIBRARY_DIRS
}
"
${
FREETYPE_INCLUDE_DIR_ft2build
}
/../lib"
"
${
FREETYPE_INCLUDE_DIR_ft2build
}
/../lib
${
_lib_suffix
}
"
"
${
FREETYPE_INCLUDE_DIR_ft2build
}
/../libs
${
_lib_suffix
}
"
"
${
FREETYPE_INCLUDE_DIR_ft2build
}
/lib"
"
${
FREETYPE_INCLUDE_DIR_ft2build
}
/lib
${
_lib_suffix
}
"
ENV FREETYPE_DIR
PATHS
/usr/lib /usr/local/lib /opt/local/lib /sw/lib
PATH_SUFFIXES
lib
${
_lib_suffix
}
lib
)
find_library
(
FREETYPE_LIB
NAMES
${
_FREETYPE_LIBRARIES
}
freetype libfreetype
HINTS
${
_FREETYPE_LIBRARY_DIRS
}
"
${
CMAKE_SOURCE_DIR
}
/additional_install_files/lib
${
_lib_suffix
}
"
"$ENV{obsAdditionalInstallFiles}/lib
${
_lib_suffix
}
"
"
${
FREETYPE_INCLUDE_DIR_ft2build
}
/../../lib
${
_lib_suffix
}
"
"
${
FREETYPE_INCLUDE_DIR_ft2build
}
/../../lib"
"
${
FREETYPE_INCLUDE_DIR_ft2build
}
/../lib
${
_lib_suffix
}
"
"
${
FREETYPE_INCLUDE_DIR_ft2build
}
/../lib"
"
${
FREETYPE_INCLUDE_DIR_ft2build
}
/lib
${
_lib_suffix
}
"
"
${
FREETYPE_INCLUDE_DIR_ft2build
}
/lib"
ENV FREETYPE_DIR
PATHS
/usr/lib /usr/local/lib /opt/local/lib /sw/lib
PATH_SUFFIXES
lib
${
_lib_suffix
}
lib
)
if
(
FREETYPE_INCLUDE_DIR_ft2build AND FREETYPE_INCLUDE_DIR_freetype2
)
set
(
FREETYPE_INCLUDE_DIR
"
${
FREETYPE_INCLUDE_DIR_ft2build
}
;
${
FREETYPE_INCLUDE_DIR_freetype2
}
"
)
list
(
REMOVE_DUPLICATES FREETYPE_INCLUDE_DIR
)
else
()
unset
(
FREETYPE_INCLUDE_DIR
)
endif
()
if
(
FREETYPE_INCLUDE_DIR_ft2build AND FREETYPE_INCLUDE_DIR_freetype2
)
set
(
FREETYPE_INCLUDE_DIR
"
${
FREETYPE_INCLUDE_DIR_ft2build
}
;
${
FREETYPE_INCLUDE_DIR_freetype2
}
"
)
list
(
REMOVE_DUPLICATES FREETYPE_INCLUDE_DIR
)
else
()
unset
(
FREETYPE_INCLUDE_DIR
)
endif
()
set
(
FREETYPE_INCLUDE_DIRS
${
FREETYPE_INCLUDE_DIR
}
CACHE PATH
"freetype include dirs"
)
set
(
FREETYPE_LIBRARIES
${
FREETYPE_LIB
}
CACHE STRING
"freetype libraries"
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
Freetype DEFAULT_MSG FREETYPE_LIB FREETYPE_INCLUDE_DIR_ft2build FREETYPE_INCLUDE_DIR_freetype2
)
mark_as_advanced
(
FREETYPE_INCLUDE_DIR FREETYPE_INCLUDE_DIR_ft2build FREETYPE_INCLUDE_DIR_freetype2 FREETYPE_LIB
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
Freetype DEFAULT_MSG FREETYPE_LIB
FREETYPE_INCLUDE_DIR
_ft2build
FREETYPE_INCLUDE_DIR
_freetype2
)
mark_as_advanced
(
FREETYPE_INCLUDE_DIR FREETYPE_INCLUDE_DIR_ft2build FREETYPE_INCLUDE_DIR_freetype2
FREETYPE_LIB
)
if
(
FREETYPE_FOUND
)
set
(
FREETYPE_INCLUDE_DIR
S
${
FREETYPE_INCLUDE_DIR
}
)
set
(
FREETYPE_LIBRARIES
${
FREETYPE_LIB
}
)
endif
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment