summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am2
-rw-r--r--lib/meson.build6
2 files changed, 3 insertions, 5 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 7b3d8778..9c511dc0 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -10,7 +10,7 @@ libintel_tools_la_SOURCES = $(lib_source_list)
noinst_LTLIBRARIES = libintel_tools.la
noinst_HEADERS = check-ndebug.h
-if HAVE_LIBDRM_VC4
+if BUILD_VC4
libintel_tools_la_SOURCES += \
igt_vc4.c \
igt_vc4.h
diff --git a/lib/meson.build b/lib/meson.build
index ddf93ec6..253548dc 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -47,6 +47,7 @@ lib_headers = [
'igt_dummyload.h',
'uwildmat/uwildmat.h',
'igt_kmod.h',
+ 'igt_vc4.h',
]
lib_sources = [
@@ -95,6 +96,7 @@ lib_sources = [
'igt_dummyload.c',
'uwildmat/uwildmat.c',
'igt_kmod.c',
+ 'igt_vc4.c',
]
lib_deps = [
@@ -118,10 +120,6 @@ else
lib_sources += 'stubs/drm/intel_bufmgr.c'
endif
-if libdrm_vc4.found()
- lib_headers += 'igt_vc4.h'
- lib_sources += 'igt_vc4.c'
-endif
if valgrind.found()
lib_deps += valgrind
endif