mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-12-01 16:27:27 +00:00
15 lines
351 B
Python
15 lines
351 B
Python
|
|
||
|
def gen_item_group(filename):
|
||
|
with open(filename, 'r') as f:
|
||
|
sources = f.readlines()
|
||
|
|
||
|
print(' <ItemGroup>')
|
||
|
current_filter = ''
|
||
|
for s in sources:
|
||
|
s = s.replace('\n', '').replace('\r', '')
|
||
|
print(' <ClCompile Include="' + s.replace('/', '\\') + '" />')
|
||
|
print(' </ItemGroup>')
|
||
|
|
||
|
gen_item_group('source.txt')
|
||
|
gen_item_group('headers.txt')
|