Skip to content

Commit

Permalink
Add yoga to thumbnail generator build
Browse files Browse the repository at this point in the history
Diffs=
09ccc9ebb Add yoga to thumbnail generator build (#7494)

Co-authored-by: Philip Chung <[email protected]>
  • Loading branch information
philter and philter committed Jun 27, 2024
1 parent bb814c3 commit 60ca97d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
aa390d5dc521f5e99605bf84cab8853e5bd44910
09ccc9ebbc43c168b96362a02ce8c5a587bdb72b
4 changes: 2 additions & 2 deletions skia/thumbnail_generator/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ elif [ "$OPTION" = "clean" ]; then
echo Cleaning project ...
premake5 clean --scripts="$RIVE_RUNTIME_DIR/build"
elif [ "$OPTION" = "release" ]; then
premake5 gmake --scripts="$RIVE_RUNTIME_DIR/build" --with_rive_text && make config=release -j7
premake5 gmake --scripts="$RIVE_RUNTIME_DIR/build" --with_rive_text --with_rive_layout && make config=release -j7
else
premake5 gmake --scripts="$RIVE_RUNTIME_DIR/build" --with_rive_text && make -j7
premake5 gmake --scripts="$RIVE_RUNTIME_DIR/build" --with_rive_text --with_rive_layout && make -j7
fi
9 changes: 9 additions & 0 deletions skia/thumbnail_generator/build/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ defines({ 'RELEASE' })
defines({ 'NDEBUG' })
optimize('On')

filter({ 'options:with_rive_layout' })
do
defines({ 'YOGA_EXPORT=' })
includedirs({ yoga })
links({
'rive_yoga',
})
end

-- Clean Function --
newaction({
trigger = 'clean',
Expand Down

0 comments on commit 60ca97d

Please sign in to comment.