2016-08-05 19:48:41 +00:00
|
|
|
inc_dirs = include_directories('.')
|
|
|
|
|
|
|
|
cdata = configuration_data()
|
2016-09-08 15:53:30 +00:00
|
|
|
|
2016-09-08 15:52:24 +00:00
|
|
|
cdata.set('GST_LICENSE', '"LGPL"')
|
|
|
|
cdata.set('VERSION', '"@0@"'.format(gst_version))
|
|
|
|
cdata.set('PACKAGE', '"gst-validate"')
|
|
|
|
cdata.set('GST_PACKAGE_NAME', '"GStreamer Validate"')
|
|
|
|
cdata.set('GST_PACKAGE_ORIGIN', '"Unknown package origin"')
|
2016-08-05 19:48:41 +00:00
|
|
|
cdata.set('GST_API_VERSION', '"@0@"'.format(apiversion))
|
|
|
|
cdata.set('VALIDATEPLUGINDIR', '"@0@/@1@/gstreamer-1.0/validate"'.format(get_option('prefix'),get_option('libdir')))
|
|
|
|
cdata.set('GST_DATADIR', '"@0@/@1@"'.format(prefix, get_option('datadir')))
|
|
|
|
cdata.set('PACKAGE_NAME', '"GStreamer Validate"')
|
2016-09-08 15:53:30 +00:00
|
|
|
cdata.set('PACKAGE_VERSION', '"@0@"'.format(gst_version))
|
2017-04-28 20:59:21 +00:00
|
|
|
if cc.has_header('unistd.h')
|
|
|
|
cdata.set('HAVE_UNISTD_H', 1)
|
|
|
|
endif
|
2020-08-14 00:51:52 +00:00
|
|
|
|
2022-11-17 16:09:51 +00:00
|
|
|
# Symbol visibility
|
|
|
|
if cc.get_id() == 'msvc'
|
|
|
|
export_define = '__declspec(dllexport) extern'
|
|
|
|
elif cc.has_argument('-fvisibility=hidden')
|
|
|
|
add_project_arguments('-fvisibility=hidden', language: 'c')
|
|
|
|
export_define = 'extern __attribute__ ((visibility ("default")))'
|
|
|
|
else
|
|
|
|
export_define = 'extern'
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Passing this through the command line would be too messy
|
|
|
|
cdata.set('GST_API_EXPORT', export_define)
|
|
|
|
|
2016-11-08 21:06:19 +00:00
|
|
|
configure_file(output : 'config.h', configuration : cdata)
|
2016-08-05 19:48:41 +00:00
|
|
|
|
2017-01-30 21:19:00 +00:00
|
|
|
validate_plugins_install_dir = '@0@/gstreamer-1.0/validate'.format(get_option('libdir'))
|
2016-08-05 19:48:41 +00:00
|
|
|
subdir('data')
|
|
|
|
subdir('gst')
|
2017-01-30 21:19:00 +00:00
|
|
|
subdir('gst-libs')
|
2016-08-05 19:48:41 +00:00
|
|
|
subdir('launcher')
|
|
|
|
subdir('tools')
|
2018-09-01 06:39:32 +00:00
|
|
|
if not get_option('tests').disabled()
|
|
|
|
subdir('tests')
|
|
|
|
endif
|
2017-01-30 21:19:00 +00:00
|
|
|
subdir('plugins')
|
2016-08-05 19:48:41 +00:00
|
|
|
#subdir('po')
|