parent
cb2eff8440
commit
5f6c9d628d
3 changed files with 25 additions and 0 deletions
@ -0,0 +1,8 @@ |
||||
#!/usr/bin/env python3 |
||||
|
||||
import sys |
||||
|
||||
ifile = sys.argv[1] |
||||
ofile = sys.argv[2] |
||||
|
||||
open(ofile, 'w').write(open(ifile).read()) |
@ -0,0 +1,6 @@ |
||||
#include<stdio.h> |
||||
|
||||
int main(int argc, char **argv) { |
||||
printf("I am a program.\n"); |
||||
return 0; |
||||
} |
@ -0,0 +1,11 @@ |
||||
project('all sources generated', 'cpp') |
||||
|
||||
comp = find_program('converter.py') |
||||
|
||||
c = custom_target('outputfile', |
||||
input : 'foobar.c.in', |
||||
output : 'foobar.cpp', |
||||
command : [comp, '@INPUT@', '@OUTPUT@'], |
||||
) |
||||
|
||||
prog = executable('genexe', c) |
Loading…
Reference in new issue