Rev 9357 | Rev 9370 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
9367 | Boppan | 1 | import sys |
2 | import os |
||
3 | |||
4 | path_to_lib = '../lib' |
||
5 | sys.path.append(path_to_lib) |
||
6 | |||
7 | import tupfile_parser |
||
8 | |||
9 | def build(): |
||
10 | if not os.path.exists("Tupfile.lua"): |
||
11 | print("No Tupfile.lua, can't build anything") |
||
12 | exit() |
||
13 | |||
14 | tup_rules = tupfile_parser.parse("Tupfile.lua") |
||
15 | program_files = [] |
||
16 | for rule in tup_rules: |
||
17 | # TODO: Manage source dependencies |
||
18 | # TODO: Inform about tools required for the build |
||
19 | os.system(rule.command) |
||
20 | program_files += rule.output |
||
21 | return program_files |
||
22 | |||
23 | if __name__ == "__main__": |
||
9357 | Boppan | 24 | build() |