添加新文件后的Chromium编译
chromium compilation after adding new files
我使用了一些API,这些API是chromium文件的一部分,用于我的应用程序开发,但不是chromium构建(gyp)文件的一部分。例如:-使用API webbrtc::VideoFrame存在于srcthird_partylibjinglesourcetalkmediabase VideoFrame。但是这个模块不是gyp或gypi文件的一部分。当我试图将文件添加到gyp文件时,它会为该模块中包含的文件提供包含错误。添加这些模块后,它再次给出错误的文件,其中包括在这些文件。如何解决这个问题?
示例错误复制如下;
Generating CEF project files...
________ running 'E:chromiumdepot_toolspython276_binpython.exe ../build/gyp_chromium cef.gyp -I cef.gypi' in 'E:chromiumsrccef'
Enabled Psyco JIT.
Updating projects from gyp files...
Warning: Missing input files:
..third_partywebrtc..WebKitpublicplatformWebServiceWorkerRequest.h
..third_partywebrtc..WebKitpublicplatformWebServiceWorkerResponseType.h
..third_partyWebKitpublicplatformWebServiceWorkerState.h
..third_partyWebKitpublicplatformWebServiceWorkerCacheError.h
..third_partyWebKitpublicplatformWebServiceWorkerClientsClaimCallbacks.h
..third_partyWebKitpublicplatformWebServiceWorkerRegistration.h
..third_partyWebKitpublicplatformWebServiceWorkerClientsInfo.h
..third_partyWebKitpublicplatformWebServiceWorkerRegistrationProxy.h
..third_partyWebKitpublicplatformmodulespresentationWebPresentationSessionClient.h
....
Chromium已经切换到GN,所以你需要将新文件添加到BUILD中。gn目标。