mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
Improve the robustness of depend.py (#76)
This commit is contained in:
+5
-4
@@ -14,10 +14,11 @@ if __name__ == '__main__':
|
|||||||
# Search for the first GLOBAL_ASM and use that as a dependency
|
# Search for the first GLOBAL_ASM and use that as a dependency
|
||||||
# We won't list all split assembly files as it is tricky to properly set up make recipes with multiple outputs
|
# We won't list all split assembly files as it is tricky to properly set up make recipes with multiple outputs
|
||||||
for line in lines:
|
for line in lines:
|
||||||
if line.startswith('#pragma GLOBAL_ASM('):
|
if '#pragma GLOBAL_ASM(' in line:
|
||||||
lines = line.replace('//', '/').split('/')
|
base_path = os.path.normpath(line.split('"')[1])
|
||||||
asm_file = '/'.join(lines[1:-1]).replace('non_matchings/', '') + '.asm ' # base .asm file
|
path = os.path.split(base_path)[0]
|
||||||
asm_file += '/'.join(lines[1:-1]) # split function .asm file
|
asm_file = path.replace('non_matchings/', '') + '.asm ' # base .asm file
|
||||||
|
asm_file += path # split function .asm file
|
||||||
break
|
break
|
||||||
|
|
||||||
with open(args.output, 'w') as f:
|
with open(args.output, 'w') as f:
|
||||||
|
|||||||
Reference in New Issue
Block a user