Skip to content

Commit

Permalink
Fix ios analyzer
Browse files Browse the repository at this point in the history
Trying to disable some unused features that might be biting us..

Diffs=
0d03a416b Fix ios analyzer (#7198)

Co-authored-by: Luigi Rosso <[email protected]>
  • Loading branch information
luigi-rosso and luigi-rosso committed May 3, 2024
1 parent 0a88f0e commit 785bee1
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
335a30588e5052375d6245e65c3c0a64864d486e
0d03a416b584cdd95aa4b496df105c14cdd2c05c
11 changes: 8 additions & 3 deletions build/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,19 @@ filter({ 'options:with_rive_text' })
do
defines({ 'WITH_RIVE_TEXT' })
end
filter({})
filter({ 'options:with_rive_audio=system' })
do
defines({ 'WITH_RIVE_AUDIO' })
defines({ 'WITH_RIVE_AUDIO', 'MA_NO_RESOURCE_MANAGER' })
end

filter({ 'options:with_rive_audio=external' })
do
defines({ 'WITH_RIVE_AUDIO', 'EXTERNAL_RIVE_AUDIO_ENGINE', 'MA_NO_DEVICE_IO' })
defines({
'WITH_RIVE_AUDIO',
'EXTERNAL_RIVE_AUDIO_ENGINE',
'MA_NO_DEVICE_IO',
'MA_NO_RESOURCE_MANAGER',
})
end
filter({})

Expand Down
6 changes: 6 additions & 0 deletions dependencies/premake5_harfbuzz_v2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -227,20 +227,26 @@ do
defines({
'HB_ONLY_ONE_SHAPER', -- added this for Geotech Mac multi-module issue: https://github.com/rive-app/rive-cpp/issues/369
'HAVE_OT',
'HB_NO_CFF',
'HB_NO_FALLBACK_SHAPE',
'HB_NO_WIN1256',
'HB_NO_EXTERN_HELPERS',
'HB_DISABLE_DEPRECATED',
'HB_NO_COLOR',
'HB_NO_BITMAP',
'HB_NO_BUFFER_SERIALIZE',
'HB_NO_BUFFER_VERIFY',
'HB_NO_BUFFER_MESSAGE',
'HB_NO_SETLOCALE',
'HB_NO_STYLE',
'HB_NO_VERTICAL',
'HB_NO_LAYOUT_COLLECT_GLYPHS',
'HB_NO_LAYOUT_RARELY_USED',
'HB_NO_LAYOUT_UNUSED',
'HB_NO_OT_FONT_GLYPH_NAMES',
'HB_NO_PAINT',
'HB_NO_MMAP',
'HB_NO_META',
})

filter('toolset:not msc')
Expand Down
2 changes: 1 addition & 1 deletion dependencies/premake5_miniaudio.lua
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
local dependency = require('dependency')
miniaudio = dependency.github('rive-app/miniaudio', 'rive_changes')
miniaudio = dependency.github('rive-app/miniaudio', 'rive_changes_4')
2 changes: 1 addition & 1 deletion dependencies/premake5_miniaudio_v2.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dofile('rive_build_config.lua')
local dependency = require('dependency')
miniaudio = dependency.github('rive-app/miniaudio', 'rive_changes')
miniaudio = dependency.github('rive-app/miniaudio', 'rive_changes_4')
12 changes: 9 additions & 3 deletions premake5_v2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ filter({ 'options:with_rive_text' })
do
defines({ 'WITH_RIVE_TEXT' })
end
filter({})
filter({ 'options:with_rive_audio=system' })
do
defines({ 'WITH_RIVE_AUDIO' })
defines({ 'WITH_RIVE_AUDIO', 'MA_NO_RESOURCE_MANAGER' })
end

filter({ 'options:with_rive_audio=external' })
do
defines({ 'WITH_RIVE_AUDIO', 'EXTERNAL_RIVE_AUDIO_ENGINE', 'MA_NO_DEVICE_IO' })
defines({
'WITH_RIVE_AUDIO',
'EXTERNAL_RIVE_AUDIO_ENGINE',
'MA_NO_DEVICE_IO',
'MA_NO_RESOURCE_MANAGER',
})
end
filter({})

Expand Down Expand Up @@ -89,6 +94,7 @@ do
'-Wno-implicit-fallthrough',
'-Wno-implicit-int-conversion',
'-Wno-undef',
'-Wno-unused-function',
})
end

Expand Down

0 comments on commit 785bee1

Please sign in to comment.