aboutsummaryrefslogtreecommitdiff
path: root/build_msvc/msvc-autogen.py
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2017-05-30 15:55:17 -0400
committerRussell Yanofsky <russ@yanofsky.org>2018-11-06 11:44:40 -0400
commit7e2e62cf7c513bd7d8e784069c5534fda1c50c52 (patch)
tree7b2fe6a1f88af4c59e2e1bee7b2b6d4978b23594 /build_msvc/msvc-autogen.py
parent6af27b81572b7b8e08ebcfe7eb533f40c66be4af (diff)
Add skeleton chain and client classes
This commit does not change behavior. It just adds new skeleton classes that don't do anything and aren't instantiated yet.
Diffstat (limited to 'build_msvc/msvc-autogen.py')
-rw-r--r--build_msvc/msvc-autogen.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/build_msvc/msvc-autogen.py b/build_msvc/msvc-autogen.py
index 8888487e75..f351532f9d 100644
--- a/build_msvc/msvc-autogen.py
+++ b/build_msvc/msvc-autogen.py
@@ -16,10 +16,6 @@ libs = [
]
ignore_list = [
- 'rpc/net.cpp',
- 'interfaces/handler.cpp',
- 'interfaces/node.cpp',
- 'interfaces/wallet.cpp',
]
lib_sources = {}
@@ -32,7 +28,9 @@ def parse_makefile(makefile):
if current_lib:
source = line.split()[0]
if source.endswith('.cpp') and not source.startswith('$') and source not in ignore_list:
- lib_sources[current_lib].append(source.replace('/', '\\'))
+ source_filename = source.replace('/', '\\')
+ object_filename = source.replace('/', '_')[:-4] + ".obj"
+ lib_sources[current_lib].append((source_filename, object_filename))
if not line.endswith('\\'):
current_lib = ''
continue
@@ -51,8 +49,10 @@ def main():
for key, value in lib_sources.items():
vcxproj_filename = os.path.abspath(os.path.join(os.path.dirname(__file__), key, key + '.vcxproj'))
content = ''
- for source_filename in value:
- content += ' <ClCompile Include="..\\..\\src\\' + source_filename + '" />\n'
+ for source_filename, object_filename in value:
+ content += ' <ClCompile Include="..\\..\\src\\' + source_filename + '">\n'
+ content += ' <ObjectFileName>$(IntDir)' + object_filename + '</ObjectFileName>\n'
+ content += ' </ClCompile>\n'
with open(vcxproj_filename + '.in', 'r', encoding='utf-8') as vcxproj_in_file:
with open(vcxproj_filename, 'w', encoding='utf-8') as vcxproj_file:
vcxproj_file.write(vcxproj_in_file.read().replace(