311
|
1 #!/usr/bin/env python
|
|
2
|
|
3 import sys
|
|
4 import os
|
|
5
|
315
|
6 def fix(srcs, extra_args):
|
|
7 import zcc
|
|
8 arglist = srcs
|
311
|
9 arglist += ['--target', 'arm']
|
315
|
10 arglist += extra_args
|
311
|
11 args = zcc.parser.parse_args(arglist)
|
|
12 zcc.main(args)
|
|
13
|
315
|
14 def make_user(extra_args=[]):
|
|
15 fix(['lib.c3', 'ipc.c3', 'hello.c3'], extra_args)
|
|
16 fix(['lib.c3', 'ipc.c3', 'screen.c3'], extra_args)
|
|
17 fix(['lib.c3', 'ipc.c3', 'console.c3'], extra_args)
|
|
18
|
311
|
19 if __name__ == '__main__':
|
|
20 sys.path.insert(0, os.path.join('..', 'python'))
|
315
|
21 make_user(sys.argv[1:])
|