# JBase **Repository Path**: jerry-se/jbase ## Basic Information - **Project Name**: JBase - **Description**: 学习chromium代码,基于49.0.2623.112 release. - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-06 - **Last Updated**: 2024-07-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # JBase #### 介绍 学习Chromium代码,基于49.0.2623.112 release, 目前只考虑windows平台。 #### Chromium源码获取方式 1. 下载[depot_tools](https://storage.googleapis.com/chrome-infra/depot_tools.zip) ,并将depot_tools添加到PATH的开头。 2. 设置环境变量,然后从cmd.exe外壳程序中,运行命令gclient(不带参数)。首次运行时,gclient将安装使用该代码所需的所有Windows特定位,包括msysgit和python。 DEPOT_TOOLS_WIN_TOOLCHAIN 0 GYP_MSVS_VERSION 2015 GYP_MSVS_OVERRIDE_PATH C:\Program Files (x86)\Microsoft Visual Studio 14.0 3. 运行命令gclient config https://chromium.googlesource.com/chromium/src.git 生成.gclient文件。 4. 下载Chromium的stable代码,地址https://commondatastorage.googleapis.com/chromium-browser-official/chromium-49.0.2623.112.tar.xz ,解压到src文件夹。 5. 运行命令gclient runhooks。 #### 编译步骤 1. 环境变量 DEPOT_TOOLS_UPDATE 0 DEPOT_TOOLS_WIN_TOOLCHAIN 0 GYP_MSVS_VERSION 2015 GYP_MSVS_OVERRIDE_PATH C:\Program Files (x86)\Microsoft Visual Studio 14.0 2. gn构建 gn gen .\out\windows_x86_debug\ gn gen .\out\windows_x86_release\ gn gen .\out\windows_x64_debug\ gn gen .\out\windows_x64_release\ 3. ninja编译 ninja -C .\out\windows_x86_debug\ ninja -C .\out\windows_x86_release\ ninja -C .\out\windows_x64_debug\ ninja -C .\out\windows_x64_release\ #### 使用说明 1. 需要Visual Studio 2015 才能构建。 2. Windows 10.0.14393.0 SDK or higher required.这可以单独安装,也可以通过选中Visual Studio Installer中的相应框来安装。 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 码云特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)