Open CASCADE Technology in SnugView for macOS
===========================================

SnugView uses OCCT 8.0.1 through replaceable libraries in Contents/Frameworks.
OCCT is licensed under LGPL 2.1 with the Open CASCADE exception. See the
accompanying LICENSE_LGPL_21.txt and OCCT_LGPL_EXCEPTION.txt. The SnugView EULA
preserves the rights granted by these licenses.

Contents/Resources/occt-source.tar.gz contains the complete corresponding
OCCT source after SnugView's patches, including its CMake build scripts.
These modifications are provided under OCCT's LGPL terms and exception.

To rebuild, install Xcode Command Line Tools and CMake. Extract the source,
then configure CMake with BUILD_LIBRARY_TYPE=Shared, CMAKE_INSTALL_NAME_DIR=@rpath,
CMAKE_INSTALL_RPATH=@loader_path, and CMAKE_OSX_DEPLOYMENT_TARGET=13.0 (or the
minimum system version in Contents/Info.plist). Enable FoundationClasses,
ModelingData, ModelingAlgorithms, DataExchange, and ApplicationFramework;
disable Visualization, Draw, resources, and optional third-party libraries.
Use the architecture reported by `file Contents/MacOS/SnugView`.
Build and install with `cmake --build <build> --parallel` and
`cmake --install <build>`. The complete configuration is also in the cadrum
build script supplied with SnugView's source repository.

Close SnugView and back up the app before replacing the corresponding
Contents/Frameworks/libTK*.dylib files together. Use the same C++ ABI and
architecture. ABI-incompatible changes can prevent launch. Re-sign the
modified libraries and bundle locally with `codesign --force --sign -`,
libraries first, because modifications invalidate the distributor signature.
SnugView does not require replacement libraries to have a publisher signature.
