【问题标题】:Build PNaCl for use in chromium embedded framework构建 PNaCl 以用于 Chromium 嵌入式框架
【发布时间】:2015-02-20 09:22:31
【问题描述】:

我正在尝试构建用于 CEF 的 PNaCl。我已经设法按照here 的定义构建了 PPAPI 示例:

1. Build CEF3/Chromium from source code as described at https://code.google.com/p/chromiumembed ... ndBuilding.
2. Edit C:\chromium\src\build\some.gyp, add '../ppapi/ppapi_internal.gyp:ppapi_example_paint_manager' in the 'dependencies' section.
3. Run `gclient runhooks` from the chromium src directory to update the build files.
4. Open C:\chromium\src\build\some.sln (on equivalent on other platforms) and build the ppapi_example_paint_manager target to create ppapi_example_paint_manager.dll.

如何配置 gyp 以构建可以加载到 CEF 中的 PNaCL/NaCl 插件?

【问题讨论】:

    标签: chromium-embedded google-nativeclient gyp


    【解决方案1】:

    将 NaCl 或 PNaCl 插件加载到 CEF 中与将其加载到 Chrome 中没有什么不同。因此,您可以使用标准构建工具来构建 Native Client 插件。从Native Client SDK 开始,并尝试在那里构建演示和示例。

    您通常不会使用 gyp 来构建 PNaCl/NaCl 插件。使用 gyp 很困难,因为它需要手动设置 Native Client 工具链作为构建目标。 Native Client SDK 包含一组自动为您执行此操作的 Makefile。

    您可能还想看看naclports。此存储库将许多开源库移植到 Native Client,这可以帮助您移植应用程序。

    【讨论】:

      猜你喜欢
      • 2011-12-23
      • 2023-03-04
      • 2014-02-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多