parent
b1087f011c
commit
db8ad2a4bd
7 changed files with 50 additions and 6 deletions
@ -0,0 +1,6 @@ |
||||
#include<stdio.h> |
||||
|
||||
int main(int argc, char **argv) { |
||||
printf("Existentialism.\n"); |
||||
return 0; |
||||
} |
@ -0,0 +1,13 @@ |
||||
project('build on all', 'c') |
||||
|
||||
py3_mod = import('python3') |
||||
py3 = py3_mod.find_python() |
||||
|
||||
executable('fooprog', 'foo.c', build_on_all : false) |
||||
comp = files('mygen.py') |
||||
mytarget = custom_target('gendat', |
||||
output : 'generated.dat', |
||||
input : 'source.txt', |
||||
command : [py3] + comp + ['@INPUT@', '@OUTPUT@'], |
||||
build_on_all : true, |
||||
) |
@ -0,0 +1,8 @@ |
||||
#!/usr/bin/env python3 |
||||
|
||||
import sys |
||||
|
||||
ifile = open(sys.argv[1]) |
||||
ofile = open(sys.argv[2], 'w') |
||||
|
||||
ofile.write(ifile.read()) |
@ -0,0 +1 @@ |
||||
I am a bunch of text. |
Loading…
Reference in new issue