Skip to content

Commit b30ddce

Browse files
authored
ci/deps: Freetype adjustments (#4999)
* CI test vs the latest freetype 2.14.1 * Bump the version of freetype that we auto-build to the latest (from 2.13.2) * Simplify BZip2 finding logic, switch to using targets Signed-off-by: Larry Gritz <lg@larrygritz.com>
1 parent 774368d commit b30ddce

6 files changed

Lines changed: 12 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ jobs:
466466
PTEX_VERSION=v2.5.0
467467
PUGIXML_VERSION=v1.15
468468
WEBP_VERSION=v1.6.0
469-
FREETYPE_VERSION=VER-2-14-0
469+
FREETYPE_VERSION=VER-2-14-1
470470
USE_OPENVDB=0
471471
# Ensure we are testing all the deps we think we are. We would
472472
# like this test to have minimal missing dependencies.
@@ -549,7 +549,7 @@ jobs:
549549
PTEX_VERSION=v2.4.3
550550
PUGIXML_VERSION=v1.15
551551
WEBP_VERSION=v1.6.0
552-
FREETYPE_VERSION=VER-2-14-0
552+
FREETYPE_VERSION=VER-2-14-1
553553
USE_OPENVDB=0
554554
- desc: Linux ARM latest releases clang18 C++20 py3.12 exr3.4 ocio2.4
555555
nametag: linux-arm-latest-releases-clang
@@ -570,7 +570,7 @@ jobs:
570570
PTEX_VERSION=v2.4.3
571571
PUGIXML_VERSION=v1.15
572572
WEBP_VERSION=v1.6.0
573-
FREETYPE_VERSION=VER-2-14-0
573+
FREETYPE_VERSION=VER-2-14-1
574574
USE_OPENVDB=0
575575

576576

@@ -683,7 +683,7 @@ jobs:
683683
# built. But we would like to add more dependencies and reduce this list
684684
# of exceptions in the future.
685685
required_deps: ${{ matrix.required_deps || 'all' }}
686-
optional_deps: ${{ matrix.optional_deps || 'CUDAToolkit;DCMTK;FFmpeg;GIF;JXL;Libheif;LibRaw;Nuke;OpenCV;OpenGL;OpenJPEG;openjph;OpenCV;OpenVDB;Ptex;pystring;Qt5;Qt6;TBB;R3DSDK;${{matrix.optional_deps_append}}' }}
686+
optional_deps: ${{ matrix.optional_deps || 'BZip2;CUDAToolkit;DCMTK;FFmpeg;GIF;JXL;Libheif;LibRaw;Nuke;OpenCV;OpenGL;OpenJPEG;openjph;OpenCV;OpenVDB;Ptex;pystring;Qt5;Qt6;TBB;R3DSDK;${{matrix.optional_deps_append}}' }}
687687
strategy:
688688
fail-fast: false
689689
matrix:

src/build-scripts/build_Freetype.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set -ex
1111

1212
# Repo and branch/tag/commit of Freetype to download if we don't have it yet
1313
FREETYPE_REPO=${FREETYPE_REPO:=https://github.com/freetype/freetype.git}
14-
FREETYPE_VERSION=${FREETYPE_VERSION:=VER-2-13-3}
14+
FREETYPE_VERSION=${FREETYPE_VERSION:=VER-2-14-1}
1515

1616
# Where to put Freetype repo source (default to the ext area)
1717
LOCAL_DEPS_DIR=${LOCAL_DEPS_DIR:=${PWD}/ext}

src/cmake/build_Freetype.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
# Freetype by hand!
77
######################################################################
88

9-
set_cache (Freetype_BUILD_VERSION 2.13.2 "Freetype version for local builds")
9+
set_cache (Freetype_BUILD_VERSION 2.14.1 "Freetype version for local builds")
1010
set (Freetype_GIT_REPOSITORY "https://github.com/freetype/freetype")
11-
set (Freetype_GIT_TAG "VER-2-13-2")
12-
set_cache (Freetype_BUILD_SHARED_LIBS OFF
11+
set (Freetype_GIT_TAG "VER-2-14-1")
12+
set_cache (Freetype_BUILD_SHARED_LIBS ${LOCAL_BUILD_SHARED_LIBS_DEFAULT}
1313
DOC "Should a local Freetype build, if necessary, build shared libraries" ADVANCED)
1414
# We would prefer to build a static Freetype, but haven't figured out how to make
1515
# it all work with the static dependencies, it just makes things complicated

src/cmake/externalpackages.cmake

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,9 @@ checked_find_package (R3DSDK NO_RECORD_NOTFOUND) # RED camera
200200
set (NUKE_VERSION "7.0" CACHE STRING "Nuke version to target")
201201
checked_find_package (Nuke NO_RECORD_NOTFOUND)
202202

203-
if (FFmpeg_FOUND OR FREETYPE_FOUND)
203+
if ((FFmpeg_FOUND OR FREETYPE_FOUND OR TARGET Freetype::Freetype)
204+
AND NOT TARGET BZip2::BZip2)
204205
checked_find_package (BZip2) # Used by ffmpeg and freetype
205-
if (NOT BZIP2_FOUND)
206-
set (BZIP2_LIBRARIES "") # TODO: why does it break without this?
207-
endif ()
208206
endif()
209207

210208

src/ffmpeg.imageio/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if (FFmpeg_FOUND)
2828
add_oiio_plugin (ffmpeginput.cpp
2929
INCLUDE_DIRS ${FFMPEG_INCLUDES}
3030
LINK_LIBRARIES ${FFMPEG_LIBRARIES}
31-
${BZIP2_LIBRARIES}
31+
$<TARGET_NAME_IF_EXISTS:BZip2::BZip2>
3232
DEFINITIONS "USE_FFMPEG"
3333
"-DOIIO_FFMPEG_VERSION=\"${FFMPEG_VERSION}\"")
3434
else()

src/libOpenImageIO/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ target_link_libraries (OpenImageIO
163163
$<TARGET_NAME_IF_EXISTS:pugixml::pugixml>
164164
$<TARGET_NAME_IF_EXISTS:TBB::tbb>
165165
$<TARGET_NAME_IF_EXISTS:Freetype::Freetype>
166-
${BZIP2_LIBRARIES}
166+
$<TARGET_NAME_IF_EXISTS:BZip2::BZip2>
167167
ZLIB::ZLIB
168168
${CMAKE_DL_LIBS}
169169
)

0 commit comments

Comments
 (0)