summaryrefslogtreecommitdiff
path: root/src/sna/brw
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/brw')
-rw-r--r--src/sna/brw/meson.build41
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)