meson: hide symbols by default unless explicitly exported

This commit is contained in:
Tim-Philipp Müller 2017-08-11 22:27:48 +01:00
parent 7bec37a755
commit 600f9800e0

View file

@ -38,6 +38,11 @@ if cc.get_id() == 'msvc'
language : 'c') language : 'c')
endif endif
# Symbol visibility
if cc.has_argument('-fvisibility=hidden')
add_project_arguments('-fvisibility=hidden', language: 'c')
endif
cdata = configuration_data() cdata = configuration_data()
cdata.set('VERSION', '"@0@"'.format(gst_version)) cdata.set('VERSION', '"@0@"'.format(gst_version))
cdata.set('PACKAGE', '"gst-editing-services"') cdata.set('PACKAGE', '"gst-editing-services"')