Skip to content
Snippets Groups Projects
Commit 3b7bcc3e authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

fix grpcio_tools build on windows

parent 065d9244
No related branches found
No related tags found
No related merge requests found
......@@ -169,12 +169,13 @@ def extension_modules():
# the JavaScript code generator, supposedly),
# but we need to be cautious about it.
cc_files_clone = list(CC_FILES)
JS_EMBED_PROCESSOR_SOURCE_FILE = 'google/protobuf/compiler/js/embed.cc'
JS_WELL_KNOWN_TYPES_FILE = 'google/protobuf/compiler/js/well_known_types_embed.cc'
if JS_EMBED_PROCESSOR_SOURCE_FILE in cc_files_clone:
cc_files_clone.remove(JS_EMBED_PROCESSOR_SOURCE_FILE)
if JS_WELL_KNOWN_TYPES_FILE in cc_files_clone:
cc_files_clone.remove(JS_WELL_KNOWN_TYPES_FILE)
embed_cc_file = os.path.normpath('google/protobuf/compiler/js/embed.cc')
well_known_types_file = os.path.normpath(
'google/protobuf/compiler/js/well_known_types_embed.cc')
if embed_cc_file in cc_files_clone:
cc_files_clone.remove(embed_cc_file)
if well_known_types_file in cc_files_clone:
cc_files_clone.remove(well_known_types_file)
plugin_sources += [os.path.join('grpc_tools', 'protobuf_generated_well_known_types_embed.cc')]
plugin_sources += [os.path.join(CC_INCLUDE, cc_file) for cc_file in cc_files_clone]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment