blob: 359fc1850fe476bb3df9b148262d35793b8c280c [file] [log] [blame]
Emil Velikov8c2e7fd2014-01-10 23:36:16 +00001Import('*')
2
Emil Velikov8c2e7fd2014-01-10 23:36:16 +00003env = env.Clone()
4
5env.Prepend(CPPPATH = [
Emil Velikov8c2e7fd2014-01-10 23:36:16 +00006 '#include'
7])
8
Emil Velikov26d380d2014-01-19 03:09:03 +00009env.Append(CPPDEFINES = ['__NOT_HAVE_DRM_H'])
Emil Velikov8c2e7fd2014-01-10 23:36:16 +000010
11if env['udev']:
12 env.PkgUseModules('UDEV')
13 env.Append(CPPDEFINES = ['HAVE_LIBUDEV'])
14
15# parse Makefile.sources
16sources = env.ParseSourceList('Makefile.sources', 'LOADER_C_FILES')
17
18libloader = env.ConvenienceLibrary(
19 target = 'libloader',
20 source = sources,
21)
22
23env.Alias('libloader', libloader)
24Export('libloader')