Skip to content

Commit

Permalink
combine libraries, except for tbb
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed Nov 11, 2023
1 parent 840f281 commit 930df60
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions xcframework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,20 @@ sh c-blosc.sh
sh tbb.sh
sh openvdb.sh

# tbb can't be built as a static library, so we'll use
# a separate package
rm -rf install-macos/include/tbb
rm -rf install-ios/include/tbb

libtool -static -o libopenvdb-macos.a install-macos/lib/libopenvdb.a install-macos/lib/libboost_iostreams.a install-macos/lib/libboost_regex.a install-macos/lib/libblosc.a
libtool -static -o libopenvdb-ios.a install-ios/lib/libopenvdb.a install-ios/lib/libboost_iostreams.a install-ios/lib/libboost_regex.a install-ios/lib/libblosc.a

xcodebuild -create-xcframework \
-library install-macos/lib/libopenvdb.a \
-library libopenvdb-macos.a \
-headers install-macos/include \
-library install-ios/lib/libopenvdb.a \
-library libopenvdb-ios.a \
-headers install-ios/include \
-output openvdb.xcframework

zip -r openvdb.xcframework.zip openvdb.xcframework
swift package compute-checksum openvdb.xcframework.zip
swift package compute-checksum openvdb.xcframework.zip

0 comments on commit 930df60

Please sign in to comment.