F:\code\chromium_git\chromium\src>autoninja -C out\Debug_GN_x64 cef
"f:\code\depot_tools\bootstrap-2@3_11_6_chromium_30_bin\python3\bin\python3.exe" F:\code\depot_tools\ninja.py -C out\Debug_GN_x64 cef -j 10
ninja: Entering directory `out\Debug_GN_x64'
[22090/52952] ACTION //chrome/browser/ui/webui/tab_search:...indings_ts__generator(//build/toolchain/win:win_clang_x64)
FAILED: gen/chrome/browser/ui/webui/tab_search/tab_search.mojom-webui.ts
f:/code/depot_tools/bootstrap-2@3_11_6_chromium_30_bin/python3/bin/python3.exe ../../mojo/public/tools/bindings/mojom_bindings_generator.py --use_bundled_pylibs -o gen generate -d ../../ -I ../../ --bytecode_path gen/mojo/public/tools/bindings --filelist=__chrome_browser_ui_webui_tab_search_mojo_bindings_ts__generator___build_toolchain_win_win_clang_x64__rule..rsp -g typescript --scrambled_message_id_salt_path ../../chrome/VERSION
Traceback (most recent call last):
File "F:\code\chromium_git\chromium\src\mojo\public\tools\bindings\mojom_bindings_generator.py", line 417, in <module>
ret = main()
^^^^^^
File "F:\code\chromium_git\chromium\src\mojo\public\tools\bindings\mojom_bindings_generator.py", line 412, in main
return args.func(args, remaining_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\code\chromium_git\chromium\src\mojo\public\tools\bindings\mojom_bindings_generator.py", line 274, in _Generate
processor._GenerateModule(
File "F:\code\chromium_git\chromium\src\mojo\public\tools\bindings\mojom_bindings_generator.py", line 242, in _GenerateModule
generator.GenerateFiles(filtered_args)
File "F:\code\chromium_git\chromium\src\mojo\public\tools\bindings\generators\mojom_ts_generator.py", line 256, in GenerateFiles
self.WriteWithComment(self._GenerateWebUiModule(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\code\chromium_git\chromium\src\mojo\public\tools\mojom\mojom\generate\template_expander.py", line 34, in GeneratorInternal
parameters = generator(*args, **kwargs2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\code\chromium_git\chromium\src\mojo\public\tools\bindings\generators\mojom_ts_generator.py", line 242, in _GenerateWebUiModule
return self._GetParameters()
^^^^^^^^^^^^^^^^^^^^^
File "F:\code\chromium_git\chromium\src\mojo\public\tools\bindings\generators\mojom_ts_generator.py", line 208, in _GetParameters
self._GetJsModuleImports(),
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\code\chromium_git\chromium\src\mojo\public\tools\bindings\generators\mojom_ts_generator.py", line 577, in _GetJsModuleImports
os.path.relpath(
File "<frozen ntpath>", line 766, in relpath
ValueError: path is on mount '\\\\tab_group_types.mojom-webui.js', start on mount 'F:'
[22099/52952] CXX obj/ui/gl/gl_unittest_utils/gl_mock.obj
ninja: build stopped: subcommand failed.
解决:
修改:F:\code\chromium_git\chromium\src\mojo\public\tools\bindings\generators\mojom_ts_generator.py
160行添加:
if path == '':
path = '/'
标签:CEF,mojom,generator,tools,mount,code,报错,bindings,chromium From: https://www.cnblogs.com/hxqmw/p/18123504