-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(freetype): properly disable system deps, use zlib component
- Loading branch information
Showing
2 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
idf_component_register() | ||
|
||
set(CMAKE_SYSTEM_IGNORE_PATH "/usr/include;/usr/lib/x86_64-linux-gnu") | ||
set(BUILD_SHARED_LIBS OFF) | ||
|
||
function(install) | ||
endfunction() | ||
# Override options defined in freetype/CMakeLists.txt. | ||
# We could have used normal set(...) here if freetype enabled CMake policy CMP0077. | ||
option(FT_DISABLE_HARFBUZZ "" ON) | ||
option(FT_DISABLE_BZIP2 "" ON) | ||
option(FT_DISABLE_BROTLI "" ON) | ||
option(FT_DISABLE_PNG "" ON) | ||
option(FT_REQUIRE_ZLIB "" ON) | ||
|
||
function(export) | ||
endfunction() | ||
# These are regular CMake variables, so we can set them directly. | ||
set(SKIP_INSTALL_ALL TRUE) | ||
set(BUILD_SHARED_LIBS OFF) | ||
|
||
add_subdirectory(freetype output) | ||
target_compile_options(freetype PRIVATE "-Wno-dangling-pointer") | ||
|
||
target_link_libraries(${COMPONENT_LIB} INTERFACE freetype) | ||
target_link_libraries(${COMPONENT_LIB} INTERFACE freetype) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters