1#! /usr/bin/env python3
2# -*- coding: utf-8 -*-
3
4import sys
5import os
6
7out_file = sys.argv[1]
8in_file = sys.argv[2]
9old_msvc = sys.argv[3]
10
11with open(out_file, 'w', encoding='utf-8') as o:
12    if old_msvc is not None and old_msvc == "1":
13        o.write("#define ISOLATION_AWARE_ENABLED 1\n")
14
15    with open(in_file, 'r', encoding='utf-8') as f:
16        for line in f:
17            o.write(line)
18
19    o.write('\n')
20    o.write('ISOLATIONAWARE_MANIFEST_RESOURCE_ID RT_MANIFEST libgtk3.manifest')
21