The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
305 B
17 lines
305 B
8 years ago
|
#!/usr/bin/env python3
|
||
10 years ago
|
|
||
|
import sys, os
|
||
|
|
||
|
if len(sys.argv) != 2:
|
||
|
print(sys.argv[0], '<output dir>')
|
||
|
|
||
|
odir = sys.argv[1]
|
||
|
|
||
8 years ago
|
with open(os.path.join(odir, 'mylib.h'), 'w') as f:
|
||
|
f.write('int func();\n')
|
||
|
with open(os.path.join(odir, 'mylib.c'), 'w') as f:
|
||
|
f.write('''int func() {
|
||
10 years ago
|
return 0;
|
||
|
}
|
||
|
''')
|