diff options
author | Seungha Yang <seungha@centricular.com> | 2021-09-11 00:43:26 +0900 |
---|---|---|
committer | Seungha Yang <seungha@centricular.com> | 2021-09-17 00:48:45 +0900 |
commit | 4f45828641a566c2205f166426f532fcafd5f1f2 (patch) | |
tree | 3f836584fb8673deaa21b0dd1248305a7a2207ac /sys/d3d11/meson.build | |
parent | 48474d3cf77f91702cc2219ea17ceed881c372ae (diff) | |
download | gstreamer-plugins-bad-4f45828641a566c2205f166426f532fcafd5f1f2.tar.gz |
d3d11: Get rid of "extern "C"" wrapping for GST_DEBUG_CATEGORY_EXTERN
Instead, change the file defining debug category to cpp
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2525>
Diffstat (limited to 'sys/d3d11/meson.build')
-rw-r--r-- | sys/d3d11/meson.build | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/sys/d3d11/meson.build b/sys/d3d11/meson.build index 24f2debf8..43f213d9c 100644 --- a/sys/d3d11/meson.build +++ b/sys/d3d11/meson.build @@ -13,7 +13,7 @@ d3d11_sources = [ 'gstd3d11videosink.cpp', 'gstd3d11window.cpp', 'gstd3d11window_dummy.cpp', - 'plugin.c', + 'plugin.cpp', ] d3d11_dec_sources = [ @@ -26,8 +26,8 @@ d3d11_dec_sources = [ 'gstd3d11vp8dec.cpp', ] -extra_c_args = ['-DCOBJMACROS', '-DGST_USE_UNSTABLE_API'] -extra_cpp_args = ['-DGST_USE_UNSTABLE_API'] +extra_c_args = ['-DCOBJMACROS'] +extra_args = ['-DGST_USE_UNSTABLE_API'] extra_dep = [] d3d11_option = get_option('d3d11') @@ -58,7 +58,7 @@ endif # d3d11 video api uses dxva structure for decoding, and dxva.h needs d3d9 types if cc.has_header('dxva.h') and cc.has_header('d3d9.h') d3d11_sources += d3d11_dec_sources - extra_c_args += ['-DHAVE_DXVA_H'] + extra_args += ['-DHAVE_DXVA_H'] extra_dep += [gstcodecs_dep] has_decoder = true endif @@ -83,13 +83,13 @@ if d3d11_winapi_desktop if d3d11_conf.get('GST_D3D11_DXGI_HEADER_VERSION') >= 6 # Desktop Duplication API is unavailable for UWP # and MinGW is not supported due to some missing headers - extra_c_args += ['-DHAVE_DXGI_DESKTOP_DUP'] + extra_args += ['-DHAVE_DXGI_DESKTOP_DUP'] d3d11_sources += ['gstd3d11desktopdup.cpp', 'gstd3d11desktopdupsrc.cpp'] message('Enable D3D11 Desktop Duplication API') endif # multimedia clock is desktop only API if has_decoder and winmm_lib.found() and cc.has_header('timeapi.h') - extra_cpp_args += ['-DHAVE_WINMM'] + extra_args += ['-DHAVE_WINMM'] extra_dep += [winmm_lib] endif endif @@ -97,24 +97,23 @@ endif # need dxgi1_5.h for HDR10 processing and d3d11_4.h for ID3D11VideoContext2 interface if d3d11_conf.get('GST_D3D11_DXGI_HEADER_VERSION') >= 5 and d3d11_conf.get('GST_D3D11_HEADER_VERSION') >= 4 d3d11_sources += ['gstd3d11deinterlace.cpp'] - extra_c_args += ['-DHAVE_D3D11_VIDEO_PROC'] + extra_args += ['-DHAVE_D3D11_VIDEO_PROC'] endif # MinGW 32bits compiler seems to be complaining about redundant-decls # when ComPtr is in use. Let's just disable the warning if cc.get_id() != 'msvc' - extra_args = cc.get_supported_arguments([ + extra_mingw_args = cc.get_supported_arguments([ '-Wno-redundant-decls', ]) - extra_c_args += extra_args - extra_cpp_args += extra_args + extra_args += extra_mingw_args endif gstd3d11 = library('gstd3d11', d3d11_sources, - c_args : gst_plugins_bad_args + extra_c_args, - cpp_args: gst_plugins_bad_args + extra_cpp_args, + c_args : gst_plugins_bad_args + extra_c_args + extra_args, + cpp_args: gst_plugins_bad_args + extra_args, include_directories : [configinc], dependencies : [gstbase_dep, gstvideo_dep, gmodule_dep, gstcontroller_dep, gstd3d11_dep] + extra_dep, install : true, |