diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2017-10-22 18:40:24 +0300 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-02-06 13:12:33 +0000 |
commit | 781fd07e5518b21b5d910e0c58108a517903fda3 (patch) | |
tree | 74d3f45ddbbbba880cd6a5397de505a4a13d8c76 /xvmc/meson.build | |
parent | a3a9e99b527936502a10aed7559799b2aa1e186e (diff) |
meson: Add meson build system
Allow building the driver with meson. Could probably use
plenty of cleanups, but at least it gives me a working driver.
And I think I managed to make it build everything that
autotools builds.
Quite a few compiler warnings were suppressed as well. Might
want to look at those at some point.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'xvmc/meson.build')
-rw-r--r-- | xvmc/meson.build | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/xvmc/meson.build b/xvmc/meson.build new file mode 100644 index 00000000..0ecc51e5 --- /dev/null +++ b/xvmc/meson.build @@ -0,0 +1,31 @@ +xvmc_sources = [ + 'intel_xvmc.c', + 'intel_xvmc_dump.c', + 'i915_xvmc.c', + 'i965_xvmc.c', + 'xvmc_vld.c', + 'intel_batchbuffer.c', +] + +shared_library('IntelXvMC', + soversion : '1', + version : '1.0.0', + sources : xvmc_sources, + dependencies : [ + dependency('threads', required : true), + dependency('x11', required : true), + dependency('xvmc', required : true), + dependency('xorg-server', required : true), + dependency('x11-xcb', required : true), + dependency('xcb-aux', required : true), + dependency('xcb-dri2', required : true), + dependency('libdrm_intel', required : true), + ], + c_args : [ + '-DFALSE=0', '-DTRUE=1', + '-Wno-unused-but-set-variable', + '-Wno-unused-parameter', + '-Wno-sign-compare', + '-Wno-pointer-sign', + ], + install : true) |