Skip to content

Commit

Permalink
Switch darwin/linux builds to build static libraries.
Browse files Browse the repository at this point in the history
  • Loading branch information
brad-linden committed Mar 12, 2024
1 parent 6501c65 commit 13ebe31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion autobuild.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
</map>
</map>
<key>source_directory</key>
<string>lua</string>
<string>openexr</string>
<key>source_type</key>
<string>git</string>
<key>version_file</key>
Expand Down
5 changes: 2 additions & 3 deletions build-cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,10 @@ windows*)
;;
darwin*|linux64*)

cmake $srcdir --install-prefix "$top/release" -DOPENEXR_FORCE_INTERNAL_IMATH:BOOL=ON
cmake $srcdir --install-prefix "$top/release" -DOPENEXR_FORCE_INTERNAL_IMATH:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=OFF
cmake --build . --target install --config Release -j

# TODO - add .so support for linux
cp -v "$top"/release/lib/*.dylib "$stage/lib/release/"
cp -v "$top"/release/lib/*.a "$stage/lib/release/"
;;
esac

Expand Down

0 comments on commit 13ebe31

Please sign in to comment.