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 /src/sna/brw | |
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 'src/sna/brw')
-rw-r--r-- | src/sna/brw/meson.build | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/sna/brw/meson.build b/src/sna/brw/meson.build new file mode 100644 index 00000000..fcf2b120 --- /dev/null +++ b/src/sna/brw/meson.build @@ -0,0 +1,41 @@ +brw_deps = [ + xorg, + libudev, + libdrm, +] + +if with_valgrind + brw_deps += valgrind +endif + +brw = static_library('brw', + sources : [ + 'brw_disasm.c', + 'brw_eu.c', + 'brw_eu_emit.c', + 'brw_sf.c', + 'brw_wm.c', + ], + dependencies : brw_deps, + include_directories : inc, + c_args : [ + '-Wno-unused-parameter', + '-Wno-sign-compare', + ], + install : false) + +executable('brw_test', + sources : [ + 'brw_test.c', + 'brw_test_gen4.c', + 'brw_test_gen5.c', + 'brw_test_gen6.c', + 'brw_test_gen7.c', + ], + link_with : brw, + include_directories : inc, + c_args : [ + '-Wno-unused-const-variable', + '-Wno-unused-parameter', + ], + install : false) |