Skip to content

Commit 663a441

Browse files
committed
Cleanup
1 parent 0b038ba commit 663a441

File tree

9 files changed

+11
-38
lines changed

9 files changed

+11
-38
lines changed

.github/workflows/ci_workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ jobs:
766766
- build: 3
767767
build-type: Release
768768
build-shared: 'OFF'
769-
build-docs: 'OFF'
769+
build-docs: 'ON'
770770
build-openfx: 'OFF'
771771
use-simd: 'ON'
772772
use-oiio: 'OFF'

.github/workflows/dependencies_latest.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,9 @@ jobs:
189189
run: share/ci/scripts/macos/install_tests_env.sh
190190
- name: Setup ext environment
191191
run: |
192-
EXT_PATH=/usr/local
192+
EXT_PATH=$GITHUB_WORKSPACE/_ext
193193
echo "EXT_PATH=$EXT_PATH" >> $GITHUB_ENV
194+
echo "CMAKE_PREFIX_PATH=$EXT_PATH" >> $GITHUB_ENV
194195
- name: Install fixed ext package versions
195196
# Minizip-ng depends on ZLIB. ZLIB must be installed first.
196197
run: |
@@ -240,6 +241,7 @@ jobs:
240241
-DCMAKE_BUILD_TYPE=Release
241242
cmake --build . \
242243
--config Release
244+
export DYLD_LIBRARY_PATH=$EXT_PATH/lib:$DYLD_LIBRARY_PATH
243245
./consumer
244246
working-directory: _build/tests/cmake-consumer-dist
245247

share/ci/scripts/multi/install_expat.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,10 @@ cmake -DCMAKE_BUILD_TYPE=Release \
3838
-DEXPAT_BUILD_DOCS=OFF \
3939
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
4040
../expat/.
41-
42-
# Expat 2.7.2 yield a permission error on mac OS.
43-
# "file cannot create directory: /usr/local/include. Maybe need administrative privileges."
44-
if [[ $OSTYPE == 'darwin'* ]]; then
45-
sudo cmake --build . \
46-
--target install \
47-
--config Release \
48-
--parallel 2
49-
else # not macOS
5041
cmake --build . \
5142
--target install \
5243
--config Release \
5344
--parallel 2
54-
fi
5545

5646
cd ../..
5747
rm -rf libexpat

share/ci/scripts/multi/install_lcms2.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,10 @@ cmake -DCMAKE_BUILD_TYPE=Release \
2626
-DBUILD_SHARED_LIBS=ON \
2727
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
2828
../.
29-
30-
if [[ $OSTYPE == 'darwin'* ]]; then
31-
sudo cmake --build . \
32-
--target install \
33-
--config Release \
34-
--parallel 2
35-
else # not macOS
3629
cmake --build . \
3730
--target install \
3831
--config Release \
3932
--parallel 2
40-
fi
4133

4234
cd ../..
4335
rm -rf Little-CMS

share/cmake/macros/GetPythonPreCommand.cmake

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ macro(get_python_pre_command)
6666
# on Windows with:
6767
# '> set PYTHONPATH=XXX \n call CMD'
6868
# '\n' is here because '\\&' does not work.
69-
set(Python_PRE_CMD set ${_PATH_SET} "\n" call)
70-
71-
message(STATUS "Python pre-command: ${Python_PRE_CMD}")
69+
set(Python_PRE_CMD set ${_PATH_SET} "\n" set ${_PYTHONPATH_SET} "\n" call)
7270

7371
else()
7472
# Build path list
@@ -84,8 +82,6 @@ macro(get_python_pre_command)
8482
string(JOIN ":" _PYTHONPATH_VALUE ${_PATHS})
8583
set(Python_PRE_CMD "PYTHONPATH=${_PYTHONPATH_VALUE}")
8684

87-
message(STATUS "Python pre-command: ${Python_PRE_CMD}")
88-
8985
endif()
9086

9187
endmacro()

share/cmake/modules/FindExtPackages.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ message(STATUS "Checking for mandatory dependencies...")
5555
# expat
5656
# https://github.com/libexpat/libexpat
5757
ocio_handle_dependency( expat REQUIRED ALLOW_INSTALL
58-
MIN_VERSION 2.4.1 # 2.6.0 maybe? As it's cmake 4.0 friendly
58+
MIN_VERSION 2.6.0
5959
RECOMMENDED_VERSION 2.7.2
6060
RECOMMENDED_VERSION_REASON "CVE fixes and Latest version tested with OCIO")
6161

@@ -73,7 +73,7 @@ ocio_handle_dependency( pystring REQUIRED ALLOW_INSTALL
7373
RECOMMENDED_VERSION 1.1.4
7474
RECOMMENDED_VERSION_REASON "Latest version tested with OCIO")
7575

76-
# Imath (>=3.1.1)
76+
# Imath
7777
# https://github.com/AcademySoftwareFoundation/Imath
7878
ocio_handle_dependency( Imath REQUIRED ALLOW_INSTALL
7979
MIN_VERSION 3.1.1
@@ -108,7 +108,7 @@ ocio_handle_dependency( ZLIB REQUIRED ALLOW_INSTALL
108108
# minizip-ng
109109
# https://github.com/zlib-ng/minizip-ng
110110
ocio_handle_dependency( minizip-ng REQUIRED ALLOW_INSTALL
111-
MIN_VERSION 3.0.8
111+
MIN_VERSION 4.0.0
112112
RECOMMENDED_VERSION 4.0.10
113113
RECOMMENDED_VERSION_REASON "Latest version tested with OCIO")
114114

@@ -255,7 +255,7 @@ if(OCIO_BUILD_APPS)
255255
###############################################################################
256256
# Calling find_package in CONFIG mode using PREFER_CONFIG option.
257257
ocio_handle_dependency( OpenEXR PREFER_CONFIG ALLOW_INSTALL
258-
MIN_VERSION 3.1.6
258+
MIN_VERSION 3.2.0
259259
RECOMMENDED_VERSION 3.3.5
260260
RECOMMENDED_VERSION_REASON "Latest version tested with OCIO"
261261
PROMOTE_TARGET OpenEXR::OpenEXR)

share/cmake/modules/Findminizip-ng.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ if(NOT OCIO_INSTALL_EXT_PACKAGES STREQUAL ALL)
115115
PATH_SUFFIXES
116116
include
117117
include/minizip-ng
118-
include/minizip-ng/minizip-ng
119118
include/minizip
120119
minizip-ng/include
121120
minizip/include

share/cmake/modules/install/Installminizip-ng.cmake

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ if(NOT minizip-ng_FOUND AND OCIO_INSTALL_EXT_PACKAGES AND NOT OCIO_INSTALL_EXT_P
4242
set(minizip-ng_VERSION ${minizip-ng_FIND_VERSION})
4343
endif()
4444

45-
# TODO: Only from a specific version?
46-
set(minizip-ng_INCLUDE_DIR "${_EXT_DIST_ROOT}/${CMAKE_INSTALL_INCLUDEDIR}/minizip-ng/minizip-ng")
45+
set(minizip-ng_INCLUDE_DIR "${_EXT_DIST_ROOT}/${CMAKE_INSTALL_INCLUDEDIR}/minizip-ng")
4746

4847
# Minizip-ng use a hardcoded lib prefix instead of CMAKE_STATIC_LIBRARY_PREFIX
4948
# Fixed from 4.0.7, see https://github.com/zlib-ng/minizip-ng/issues/778
@@ -69,11 +68,6 @@ if(NOT minizip-ng_FOUND AND OCIO_INSTALL_EXT_PACKAGES AND NOT OCIO_INSTALL_EXT_P
6968
-DCMAKE_INSTALL_BINDIR=${CMAKE_INSTALL_BINDIR}
7069
-DCMAKE_INSTALL_DATADIR=${CMAKE_INSTALL_DATADIR}
7170
-DCMAKE_INSTALL_LIBDIR=${CMAKE_INSTALL_LIBDIR}
72-
# Since the other modules create a subfolder for the includes by default and since
73-
# minizip-ng does not, a suffix is added to CMAKE_INSTALL_INCLUDEDIR in order to
74-
# install the headers under a subdirectory named "minizip-ng".
75-
# Note that this does not affect external builds for minizip-ng.
76-
-DCMAKE_INSTALL_INCLUDEDIR=${CMAKE_INSTALL_INCLUDEDIR}/minizip-ng
7771
-DCMAKE_OBJECT_PATH_MAX=${CMAKE_OBJECT_PATH_MAX}
7872
-DBUILD_SHARED_LIBS=OFF
7973
-DMZ_OPENSSL=OFF

src/bindings/python/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if(OCIO_BUILD_DOCS)
2222
# Run docstring extraction if docstrings.h is behind doxygen XML
2323
add_custom_command(OUTPUT ${PYOCIO_DOCSTRINGS_H}
2424
COMMAND
25-
${Python_PRE_CMD} "${Python_EXECUTABLE}" -v "${EXTRACT_DOCSTRINGS_PY}" xml docstrings.h
25+
${Python_PRE_CMD} "${Python_EXECUTABLE}" "${EXTRACT_DOCSTRINGS_PY}" xml docstrings.h
2626
WORKING_DIRECTORY
2727
${PYOCIO_DOCSTRINGS_DIR}
2828
DEPENDS

0 commit comments

Comments
 (0)