2019-03-13 06:01:13 +00:00
|
|
|
#! /usr/bin/env python3
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
|
|
|
|
out_file = sys.argv[1]
|
|
|
|
in_file = sys.argv[2]
|
|
|
|
old_msvc = sys.argv[3]
|
|
|
|
|
2019-06-21 13:01:17 +00:00
|
|
|
with open(out_file, 'w', encoding='utf-8') as o:
|
2019-03-13 06:01:13 +00:00
|
|
|
if old_msvc is not None and old_msvc == "1":
|
|
|
|
o.write("#define ISOLATION_AWARE_ENABLED 1\n")
|
|
|
|
o.write('#include <winuser.h>\n')
|
|
|
|
|
2019-06-21 13:01:17 +00:00
|
|
|
with open(in_file, 'r', encoding='utf-8') as f:
|
2019-03-13 06:01:13 +00:00
|
|
|
for line in f:
|
|
|
|
o.write(line)
|
|
|
|
|
|
|
|
o.write('\n')
|
2019-06-21 13:01:17 +00:00
|
|
|
o.write('ISOLATIONAWARE_MANIFEST_RESOURCE_ID RT_MANIFEST libgtk3.manifest')
|