Skip to content

Commit 93262fb

Browse files
committed
android: add static build support
1 parent af16bac commit 93262fb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

PluginSource/meson.build

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ elif host_system == 'windows'
9191
elif host_system == 'linux'
9292
plugin_sources += [ opengl_sources_base, egl_sources ]
9393
elif host_system == 'android'
94+
if get_option('static_android')
95+
vlc_unity_ldflags += [ '-static-libstdc++' ]
96+
endif
9497
vlc_unity_deps += [ cc.find_library('GLESv2'), cc.find_library('EGL'), cc.find_library('log') ]
9598
vlc_unity_cppflags += [ '-DSUPPORT_OPENGL_ES=1', '-DUNITY_ANDROID=1' ]
9699
plugin_sources += [ opengl_sources_base, android_sources, egl_sources ]

meson_options.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@ option('watermark',
22
type: 'boolean',
33
value: false,
44
description: 'Display the Videolabs watermark')
5+
6+
option('static_android',
7+
type: 'boolean',
8+
value: false,
9+
description: 'Enable or disable static Android build')

0 commit comments

Comments
 (0)