aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/loader/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/loader/SConscript')
-rw-r--r--mesalib/src/loader/SConscript27
1 files changed, 27 insertions, 0 deletions
diff --git a/mesalib/src/loader/SConscript b/mesalib/src/loader/SConscript
new file mode 100644
index 000000000..76b087100
--- /dev/null
+++ b/mesalib/src/loader/SConscript
@@ -0,0 +1,27 @@
+Import('*')
+
+if not env['drm']:
+ Return()
+
+env = env.Clone()
+
+env.Prepend(CPPPATH = [
+ '#include'
+])
+
+env.PkgUseModules('DRM')
+
+if env['udev']:
+ env.PkgUseModules('UDEV')
+ env.Append(CPPDEFINES = ['HAVE_LIBUDEV'])
+
+# parse Makefile.sources
+sources = env.ParseSourceList('Makefile.sources', 'LOADER_C_FILES')
+
+libloader = env.ConvenienceLibrary(
+ target = 'libloader',
+ source = sources,
+)
+
+env.Alias('libloader', libloader)
+Export('libloader')