mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-09 14:55:08 -06:00
ENH: add freetype for occt
Signed-off-by: yifan.wu <yifan.wu@bambulab.com> Change-Id: I3adcf4b27deb0953e059c3e7fa9b9d49e447c57b (cherry picked from commit 400cff06210c62e4019ff6f7174216d2faeaa8e2)
This commit is contained in:
parent
d6a6fad04e
commit
13b711602c
5 changed files with 45 additions and 10 deletions
23
deps/FREETYPE/FREETYPE.cmake
vendored
Normal file
23
deps/FREETYPE/FREETYPE.cmake
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
if(WIN32)
|
||||
set(library_build_shared "1")
|
||||
else()
|
||||
set(library_build_shared "0")
|
||||
endif()
|
||||
|
||||
bambustudio_add_cmake_project(FREETYPE
|
||||
URL https://mirror.ossplanet.net/nongnu/freetype/freetype-2.12.1.tar.gz
|
||||
URL_HASH SHA256=efe71fd4b8246f1b0b1b9bfca13cfff1c9ad85930340c27df469733bbb620938
|
||||
#DEPENDS ${ZLIB_PKG}
|
||||
#"${_patch_step}"
|
||||
CMAKE_ARGS
|
||||
-D BUILD_SHARED_LIBS=${library_build_shared}
|
||||
-D FT_DISABLE_ZLIB=TRUE
|
||||
-D FT_DISABLE_BZIP2=TRUE
|
||||
-D FT_DISABLE_PNG=TRUE
|
||||
-D FT_DISABLE_HARFBUZZ=TRUE
|
||||
-D FT_DISABLE_BROTLI=TRUE
|
||||
)
|
||||
|
||||
if(MSVC)
|
||||
add_debug_dep(dep_FREETYPE)
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue