Skip to content

Commit

Permalink
Fix viewer tess builds
Browse files Browse the repository at this point in the history
The following now builds and runs as per README in viewer:

./build_viewer.sh gl tess run

Diffs=
7d00d35d3 Fix viewer tess builds (#7935)

Co-authored-by: rivessamr <[email protected]>
  • Loading branch information
rivessamr and rivessamr committed Aug 24, 2024
1 parent e738f53 commit 306a744
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
455ebad60a07f5cbb8787f42cbf54094b7dc6772
7d00d35d336f53c12c04fb7c2288e526ba5ec789
10 changes: 10 additions & 0 deletions tess/build/premake5_tess.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,16 @@ do
buildoptions({ '-Wall', '-fno-exceptions', '-fno-rtti', '-Werror=format' })
defines({ 'TESTING', 'YOGA_EXPORT=' })

filter({ 'system:macosx' })
do
links({
'Cocoa.framework',
'IOKit.framework',
'CoreVideo.framework',
'OpenGL.framework',
})
end

filter('configurations:debug')
do
buildoptions({ '-g' })
Expand Down
2 changes: 1 addition & 1 deletion viewer/build/premake5_viewer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ rive_skia = '../../skia'
skia = dependencies .. '/skia'

if _OPTIONS.renderer == 'tess' then
dofile(rive .. '/decoders/build/premake5.lua')
dofile(rive .. '/decoders/premake5_v2.lua')
dofile(path.join(path.getabsolute(rive_tess) .. '/build', 'premake5_tess.lua'))
else
-- tess renderer includes this
Expand Down

0 comments on commit 306a744

Please sign in to comment.