Rev 9374 | Rev 9379 | 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 | |||
9374 | Boppan | 4 | path_to_tools_workspace = os.path.dirname(os.path.abspath(__file__)) |
5 | path_to_tools = os.path.dirname(path_to_tools_workspace) |
||
9370 | Boppan | 6 | sys.path.append(path_to_tools) |
9367 | Boppan | 7 | |
9377 | Boppan | 8 | from lib.tupfile_parser import parse_tupfile_outputs |
9367 | Boppan | 9 | |
10 | def build(): |
||
9377 | Boppan | 11 | os.system("tup") |
12 | outputs = parse_tupfile_outputs("Tupfile.lua") |
||
13 | for name in outputs: |
||
14 | if name.endswith(".inc"): |
||
15 | continue |
||
16 | return name |
||
9367 | Boppan | 17 | |
18 | if __name__ == "__main__": |
||
9370 | Boppan | 19 | build() |