Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
1.6 kB · 49 lines
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950project( 'obs-streamplace', 'c', default_options: ['c_std=gnu11', 'warning_level=2', 'werror=true', 'buildtype=release'], meson_version: '>=1.1',)# Headers only: the plugin resolves libobs and frontend API symbols from the# OBS process that loads it.frontend_api_dep = subproject('obs-studio').get_variable('frontend_api_dep')c_args = ['-DPLUGIN_VERSION="@0@"'.format(get_option('plugin_version'))]link_args = []link_with = []deps = [frontend_api_dep, dependency('threads')]if host_machine.system() == 'windows' # Windows needs import libraries for obs.dll and obs-frontend-api.dll; the # .def files list what the plugin uses. dlltool = find_program('x86_64-w64-mingw32-dlltool') foreach dll : ['obs', 'obs-frontend-api'] link_with += custom_target( dll + '-import-lib', input: dll + '.def', output: 'lib' + dll + '.dll.a', command: [dlltool, '--input-def', '@INPUT@', '--output-lib', '@OUTPUT@', '--dllname', dll + '.dll'], ) endforeach deps += meson.get_compiler('c').find_library('ws2_32') # One self-contained DLL, without libwinpthread or libgcc beside it. link_args += ['-static']elif host_machine.system() == 'darwin' c_args += ['-mmacosx-version-min=11.0'] link_args += ['-mmacosx-version-min=11.0']endifshared_module( 'obs-streamplace', 'src/plugin-main.c', 'src/streamplace-output.c', 'src/fmp4.c', 'src/http.c', name_prefix: '', c_args: c_args, link_args: link_args, link_with: link_with, dependencies: deps, gnu_symbol_visibility: 'hidden',)