parent
d6fd462387
commit
3ae918a463
6 changed files with 54 additions and 3 deletions
@ -0,0 +1,13 @@ |
||||
#!/usr/bin/env python3 |
||||
|
||||
import sys, os |
||||
from glob import glob |
||||
|
||||
_, srcdir, depfile, output = sys.argv |
||||
|
||||
depfiles = glob(os.path.join(srcdir, '*')) |
||||
|
||||
quoted_depfiles = [x.replace(' ', '\ ') for x in depfiles] |
||||
|
||||
open(output, 'w').write('I am the result of globbing.') |
||||
open(depfile, 'w').write('%s: %s\n' % (output, ' '.join(quoted_depfiles))) |
@ -0,0 +1,7 @@ |
||||
|
||||
|
||||
mytarget = custom_target('depfile', |
||||
output : 'dep.dat', |
||||
depfile : 'dep.dat.d', |
||||
command : [find_program('dep.py'), meson.current_source_dir(), '@DEPFILE@', '@OUTPUT@'], |
||||
) |
Loading…
Reference in new issue