Skip to content

Commit a9ce0c7

Browse files
committed
Merge branch 'main' into display-interop-id-io
Signed-off-by: Brecht Van Lommel <brecht@blender.org>
2 parents 3a23e94 + febafce commit a9ce0c7

File tree

5 files changed

+37
-32
lines changed

5 files changed

+37
-32
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ jobs:
463463
LIBRAW_VERSION=0.21.4
464464
LIBTIFF_VERSION=v4.7.1
465465
OPENJPEG_VERSION=v2.5.4
466-
PTEX_VERSION=v2.4.3
466+
PTEX_VERSION=v2.5.0
467467
PUGIXML_VERSION=v1.15
468468
WEBP_VERSION=v1.6.0
469469
FREETYPE_VERSION=VER-2-14-0

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ NEW or CHANGED MINIMUM dependencies since the last major release are **bold**.
7171
* If you want support for WebP images:
7272
* WebP >= 1.1 (tested through 1.6)
7373
* If you want support for Ptex:
74-
* Ptex >= 2.3.1 (probably works for older; tested through 2.4.3)
74+
* Ptex >= 2.3.1 (probably works for older; tested through 2.5)
7575
* If you want to be able to do font rendering into images:
7676
* Freetype >= 2.10.0 (tested through 2.14)
7777
* If you want to be able to read "ultra-HDR" embedded in JPEG files:

src/build-scripts/build_Ptex.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ git checkout ${PTEX_VERSION} --force
3333

3434
time cmake -S . -B ${PTEX_BUILD_DIR} -DCMAKE_BUILD_TYPE=Release \
3535
-DCMAKE_INSTALL_PREFIX=${PTEX_INSTALL_DIR} \
36+
-DCMAKE_CXX_STANDARD=17 \
3637
${PTEX_CONFIG_OPTS}
3738
time cmake --build ${PTEX_BUILD_DIR} --config Release --target install
3839

src/build-scripts/install_homebrew_deps.bash

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ if [[ `which brew` == "" ]] ; then
1919
exit 1
2020
fi
2121

22+
set -ex
2223

2324
if [[ "${DO_BREW_UPDATE:=0}" != "0" ]] ; then
2425
brew update >/dev/null
@@ -27,42 +28,38 @@ echo ""
2728
echo "Before my brew installs:"
2829
brew list --versions
2930

30-
# All cases except for clang-format target, we need the dependencies.
31-
brew install --display-times -q gcc ccache cmake ninja || true
32-
brew link --overwrite gcc
33-
brew install --display-times -q python@${PYTHON_VERSION} || true
34-
brew unlink python@3.8 || true
35-
brew unlink python@3.9 || true
36-
brew unlink python@3.10 || true
37-
brew link --overwrite --force python@${PYTHON_VERSION} || true
38-
#brew upgrade --display-times -q cmake || true
39-
#brew install --display-times -q libtiff
40-
brew install --display-times -q imath openexr opencolorio
41-
#brew install --display-times -q libpng giflib webp
42-
brew install --display-times -q jpeg-turbo openjpeg libultrahdr
43-
brew install --display-times -q freetype libraw dcmtk pybind11 numpy || true
44-
brew install --display-times -q ffmpeg libheif ptex || true
45-
brew install --display-times -q tbb || true
46-
brew install --display-times -q openvdb || true
47-
brew install --display-times -q robin-map || true
48-
if [[ "${USE_OPENCV}" != "0" ]] && [[ "${INSTALL_OPENCV:=1}" != "0" ]] ; then
49-
brew install --display-times -q opencv || true
50-
fi
51-
if [[ "${USE_QT:=1}" != "0" ]] && [[ "${INSTALL_QT:=1}" != "0" ]] ; then
52-
brew install --display-times -q qt${QT_VERSION}
53-
fi
54-
if [[ "${USE_LLVM:=0}" != "0" ]] || [[ "${LLVMBREWVER}" != "" ]]; then
55-
brew install --display-times -q llvm${LLVMBREWVER}
56-
export PATH=/usr/local/opt/llvm/bin:$PATH
31+
if [[ "$OIIO_BREW_INSTALL_PACKAGES" == "" ]] ; then
32+
OIIO_BREW_INSTALL_PACKAGES=" \
33+
ccache \
34+
dcmtk \
35+
ffmpeg \
36+
imath \
37+
libheif \
38+
libraw \
39+
libultrahdr \
40+
numpy \
41+
opencolorio \
42+
openexr \
43+
openjpeg \
44+
openvdb \
45+
ptex \
46+
pybind11 \
47+
robin-map \
48+
tbb \
49+
"
50+
if [[ "${USE_OPENCV}" != "0" ]] && [[ "${INSTALL_OPENCV:=1}" != "0" ]] ; then
51+
OIIO_BREW_INSTALL_PACKAGES+=" opencv"
52+
fi
53+
if [[ "${USE_QT:=1}" != "0" ]] && [[ "${INSTALL_QT:=1}" != "0" ]] ; then
54+
OIIO_BREW_INSTALL_PACKAGES+=" qt${QT_VERSION}"
55+
fi
5756
fi
57+
brew install --display-times -q $OIIO_BREW_INSTALL_PACKAGES $OIIO_BREW_EXTRA_INSTALL_PACKAGES || true
5858

5959
echo ""
6060
echo "After brew installs:"
6161
brew list --versions
6262

63-
# Needed on some systems
64-
pip${PYTHON_VERSION} install numpy
65-
6663
# Set up paths. These will only affect the caller if this script is
6764
# run with 'source' rather than in a separate shell.
6865
export PATH=/usr/local/opt/qt5/bin:$PATH

src/libutil/filesystem.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,15 @@ Filesystem::path_is_absolute(string_view path, bool dot_is_absolute)
330330
bool
331331
Filesystem::exists(string_view path) noexcept
332332
{
333+
#ifdef _WIN32
334+
// filesystem::exists is slow on Windows for network paths, so use the
335+
// WinAPI directly
336+
return INVALID_FILE_ATTRIBUTES
337+
!= GetFileAttributesW(Strutil::utf8_to_utf16wstring(path).c_str());
338+
#else
333339
error_code ec;
334340
return filesystem::exists(u8path(path), ec);
341+
#endif
335342
}
336343

337344

0 commit comments

Comments
 (0)