mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-26 22:13:01 +00:00
14 lines
351 B
Python
14 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')
|