Force re-link viewer builds. Our viewer has a few static lib dependencies like rive, rive_tess_renderer, etc. If you work in isolation on one of those dependencies, the viewer binary won't re-link. This was causing us to have to clean the build every time. The right solution is to make the build depend on any changes to those files. I couldn't find a good way to do that without merging all the premake files (we used to do this with dofile). For now an easy solution is to just delete the viewer binary which forces a re-link any time you call build, which I think is ok. Diffs= c07c43a80 viewer premake depends on premake file for rive_tess 08c607bfe Force re-link viewer builds.
diff --git a/.rive_head b/.rive_head index 0bce22a..75439fb 100644 --- a/.rive_head +++ b/.rive_head
@@ -1 +1 @@ -c9f97f7c18a92cd0d417b76b235f841b1e577cac +c07c43a80d58db1c30e914dad7e2887a90aa5119
diff --git a/viewer/build/macosx/build_viewer.sh b/viewer/build/macosx/build_viewer.sh index 7b780a1..31d7e07 100755 --- a/viewer/build/macosx/build_viewer.sh +++ b/viewer/build/macosx/build_viewer.sh
@@ -63,6 +63,7 @@ fi export PREMAKE=$DEPENDENCIES/bin/premake5 + pushd .. $PREMAKE --file=./premake5_viewer.lua gmake2 --graphics=$GRAPHICS --renderer=$RENDERER
diff --git a/viewer/build/premake5_viewer.lua b/viewer/build/premake5_viewer.lua index cac71d0..aedf2e2 100644 --- a/viewer/build/premake5_viewer.lua +++ b/viewer/build/premake5_viewer.lua
@@ -15,6 +15,7 @@ if _OPTIONS.renderer == 'tess' then dofile('premake5_libpng.lua') + dofile(path.join(path.getabsolute(rive_tess) .. '/build', 'premake5_tess.lua')) end project 'rive_viewer'