fix(unreal):missing decoders (#9637) b46446c172

* Update premake to include decoders for Unreal builds.

Co-authored-by: Tod-Rive <tod@rive.app>
Co-authored-by: blakdragan7 <jcopela4@gmail.com>
This commit is contained in:
Tod-Rive
2025-05-16 22:02:16 +00:00
parent 83e7973515
commit d1cfe39e7e
2 changed files with 22 additions and 7 deletions

View File

@@ -1 +1 @@
6be784f0dcc1b5d6300b271d9c0d7c954c5df004
b46446c172c2794599eaa9be535f31a0e679a1fa

View File

@@ -31,13 +31,12 @@ end
if not _OPTIONS["no_rive_webp"] then
dofile(rive .. '/dependencies/premake5_libwebp_v2.lua')
else
libwebp = ''
end
dofile(rive .. '/dependencies/premake5_libwebp_v2.lua')
project('rive_decoders')
do
dependson('libwebp')
kind('StaticLib')
flags({ 'FatalCompileWarnings' })
@@ -49,7 +48,6 @@ do
files({
'src/bitmap_decoder.cpp',
'src/bitmap_decoder_thirdparty.cpp',
})
filter({ 'options:not no-libjpeg-renames' })
@@ -60,6 +58,22 @@ do
forceincludes({ 'rive_libjpeg_renames.h' })
end
filter({
'system:macosx or system:ios',
'not options:variant=appletvos',
'not options:variant=appletvsimulator',
})
do
files({ 'src/**.mm' })
end
filter({ 'options:not no_rive_webp or no_rive_png or no_rive_jpeg'})
do
files({
'src/bitmap_decoder_thirdparty.cpp',
})
end
filter({'options:not no_rive_png'})
do
includedirs({
@@ -70,7 +84,7 @@ do
files({ 'src/decode_png.cpp' })
end
filter({'options:not no_rive_jpeg'})
filter({ 'options:not no_rive_jpeg' })
do
includedirs({
libjpeg
@@ -80,7 +94,7 @@ do
files({ 'src/decode_jpeg.cpp' })
end
filter({'options:not no_rive_webp'})
filter({ 'options:not no_rive_webp' })
do
includedirs({
libwebp .. '/src'
@@ -89,4 +103,5 @@ do
defines({ 'RIVE_WEBP' })
files({ 'src/decode_webp.cpp' })
end
end