files
KOS_qrcodes/_tools/workspace/build.py
Magomed Kostoev (mkostoevr) 4bf8ca235a [WS] Use tup to build projects
git-svn-id: svn://kolibrios.org@9377 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-03 21:20:06 +00:00

20 lines
459 B
Python

import sys
import os
path_to_tools_workspace = os.path.dirname(os.path.abspath(__file__))
path_to_tools = os.path.dirname(path_to_tools_workspace)
sys.path.append(path_to_tools)
from lib.tupfile_parser import parse_tupfile_outputs
def build():
os.system("tup")
outputs = parse_tupfile_outputs("Tupfile.lua")
for name in outputs:
if name.endswith(".inc"):
continue
return name
if __name__ == "__main__":
build()