Use custom target outputs to determine linker. Closes #786.
parent
5f90aac4ed
commit
e23e5c48d7
3 changed files with 16 additions and 4 deletions
@ -1,11 +1,20 @@ |
||||
project('all sources generated', 'c') |
||||
# Must have two languages here to exercise linker language |
||||
# selection bug |
||||
project('all sources generated', 'c', 'cpp') |
||||
|
||||
comp = find_program('converter.py') |
||||
|
||||
g = generator(comp, |
||||
output : '@BASENAME@.c', |
||||
output : '@BASENAME@.cpp', |
||||
arguments : ['@INPUT@', '@OUTPUT@']) |
||||
|
||||
c = g.process('foobar.c.in') |
||||
c = g.process('foobar.cpp.in') |
||||
|
||||
prog = executable('genexe', c) |
||||
|
||||
c2 = custom_target('c2gen', |
||||
output : 'c2gen.cpp', |
||||
input : 'foobar.cpp.in', |
||||
command : [comp, '@INPUT@', '@OUTPUT@']) |
||||
|
||||
prog2 = executable('genexe2', c2) |
Loading…
Reference in new issue