diff options
Diffstat (limited to 'src/loader/SConscript')
-rw-r--r-- | src/loader/SConscript | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/loader/SConscript b/src/loader/SConscript new file mode 100644 index 00000000000..454e3284491 --- /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') |