Emil Velikov | 8c2e7fd | 2014-01-10 23:36:16 +0000 | [diff] [blame] | 1 | Import('*') |
| 2 | |
Emil Velikov | 8c2e7fd | 2014-01-10 23:36:16 +0000 | [diff] [blame] | 3 | env = env.Clone() |
| 4 | |
| 5 | env.Prepend(CPPPATH = [ |
Emil Velikov | 8c2e7fd | 2014-01-10 23:36:16 +0000 | [diff] [blame] | 6 | '#include' |
| 7 | ]) |
| 8 | |
Emil Velikov | 26d380d | 2014-01-19 03:09:03 +0000 | [diff] [blame] | 9 | env.Append(CPPDEFINES = ['__NOT_HAVE_DRM_H']) |
Emil Velikov | 8c2e7fd | 2014-01-10 23:36:16 +0000 | [diff] [blame] | 10 | |
| 11 | if env['udev']: |
| 12 | env.PkgUseModules('UDEV') |
| 13 | env.Append(CPPDEFINES = ['HAVE_LIBUDEV']) |
| 14 | |
| 15 | # parse Makefile.sources |
| 16 | sources = env.ParseSourceList('Makefile.sources', 'LOADER_C_FILES') |
| 17 | |
| 18 | libloader = env.ConvenienceLibrary( |
| 19 | target = 'libloader', |
| 20 | source = sources, |
| 21 | ) |
| 22 | |
| 23 | env.Alias('libloader', libloader) |
| 24 | Export('libloader') |