summaryrefslogtreecommitdiff
path: root/src/loader/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/loader/SConscript')
-rw-r--r--src/loader/SConscript28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/loader/SConscript b/src/loader/SConscript
new file mode 100644
index 0000000000..454e328449
--- /dev/null
+++ b/src/loader/SConscript
@@ -0,0 +1,28 @@
+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')