-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jose Luis Cercos-Pita <[email protected]>
- Loading branch information
1 parent
569c68a
commit f929767
Showing
3 changed files
with
53 additions
and
19 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 |
---|---|---|
|
@@ -21,14 +21,18 @@ jobs: | |
cmake --build ./ --config Release --clean-first && | ||
cmake --install ./ --config Release && | ||
cd .. && | ||
echo "Installing libDeflate..." && | ||
cd libdeflate.build && | ||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../openexr.install -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_PREFIX_PATH=../openexr.install -DCMAKE_INSTALL_LIBDIR=lib -DLIBDEFLATE_BUILD_SHARED_LIB=OFF -DLIBDEFLATE_USE_SHARED_LIB=OFF -DBUILD_SHARED_LIBS=OFF ../libdeflate && | ||
cmake --build ./ --config Release --clean-first && | ||
cmake --install ./ --config Release && | ||
cd .. && | ||
echo "Installing Imath-3.1.9..." && | ||
cd imath.build && | ||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../openexr.install -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_PREFIX_PATH=../openexr.install -DCMAKE_INSTALL_LIBDIR=lib -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=OFF ../imath && | ||
cmake --build ./ --config Release --clean-first && | ||
cmake --install ./ --config Release && | ||
cd .. && | ||
ls ./openexr.install/lib/ && | ||
nm ./openexr.install/lib/libImath-3_1.a && | ||
echo "Installing OpenEXR..." && | ||
cd openexr.build && | ||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../openexr.install -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_PREFIX_PATH=../openexr.install -DCMAKE_INSTALL_LIBDIR=lib -DBUILD_TESTING=OFF -DOPENEXR_INSTALL_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF ../ && | ||
|
@@ -58,6 +62,7 @@ jobs: | |
- name: Create folders | ||
run: | | ||
mkdir -p ${{github.workspace}}/zlib.build | ||
mkdir -p ${{github.workspace}}/libdeflate.build | ||
mkdir -p ${{github.workspace}}/imath.build | ||
mkdir -p ${{github.workspace}}/openexr.build | ||
mkdir -p ${{github.workspace}}/openexr.install | ||
|
@@ -74,6 +79,22 @@ jobs: | |
mv zlib-1.2.13 zlib | ||
rm zlib-1.2.13.tar.gz | ||
- name: download libDeflate source code | ||
uses: suisei-cn/[email protected] | ||
with: | ||
url: https://github.com/ebiggers/libdeflate/archive/refs/tags/v1.18.zip | ||
target: ${{github.workspace}}/ | ||
|
||
- name: Extract libDeflate | ||
run: | | ||
tar -xvzf v1.18.tar.gz -C ${{github.workspace}}/ | ||
mv libdeflate-1.18 libdeflate | ||
rm v1.18.tar.gz | ||
- name: Patch libDeflate | ||
run: | | ||
patch -u libdeflate/CMakeLists.txt -i ${{github.workspace}}/src/wrappers/python/libdeflate.patch | ||
- name: download Imath source code | ||
uses: suisei-cn/[email protected] | ||
with: | ||
|
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- CMakeLists.txt 2023-07-14 08:51:51.375958419 +0200 | ||
+++ CMakeLists.txt 2023-07-14 08:47:47.854104430 +0200 | ||
@@ -183,7 +183,8 @@ | ||
endif() | ||
set_target_properties(libdeflate_static PROPERTIES | ||
OUTPUT_NAME ${STATIC_LIB_NAME} | ||
- PUBLIC_HEADER libdeflate.h) | ||
+ PUBLIC_HEADER libdeflate.h | ||
+ POSITION_INDEPENDENT_CODE ON) | ||
target_include_directories(libdeflate_static PUBLIC ${LIB_INCLUDE_DIRS}) | ||
target_compile_definitions(libdeflate_static PRIVATE ${LIB_COMPILE_DEFINITIONS}) | ||
target_compile_options(libdeflate_static PRIVATE ${LIB_COMPILE_OPTIONS}) |
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