- 博客(8)
- 收藏
- 关注
原创 GN Quick Start guide
GN Quick Start guideContentsRunning GNSetting up a buildPassing build argumentsCross-compiling to a target OS or architectureStep-by-stepAdding a build fileTesting your additionDeclaring dependenciesTest the binaryPutting settings in a configDe
2021-01-13 21:13:08
263
原创 GN Language and Operation
GN Language and OperationContentsGN Language and OperationIntroductionUse the built-in help!Design philosophyLanguageStringsListsConditionalsLoopingFunction callsScoping and executionNaming thingsFile and directory namesBuild configurationT
2021-01-13 20:50:44
351
1
原创 Chromium入坑之旅:chromium启动流程
Chromium版本:84.0.4113.0一、入口\src\chrome\app\chrome_exe_main_win.cc 行:175#if !defined(WIN_CONSOLE_APP)int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE prev, wchar_t*, int) {#elseint main() { HINSTANCE instance = GetModuleHandle(nullptr);#endif i
2020-05-27 17:47:16
1875
原创 Chromium入坑之旅:base库之timer时间操作学习
base::TimeDeltas=秒,ms=毫秒,us=微秒,ns=纳秒;1s=1000ms=1000000us=1000000000ns;int main() { std::cout << "------TimeDelta------\n"; std::cout << L"FromDays(天):" << base::TimeDelta::FromDays(1)<<"\n"; std::cout << L"FromHours(小
2020-05-21 19:26:21
956
原创 Chromium入坑之旅:third_party库之zlib文件下google封装的压缩文件操作学习
src/third_party/zlib/google该目录下是google为Chromium封装实现的zlib。一、zip.cc//将指定的ZIP文件压缩到ZIP档案中。 | params |中指定了源文件和ZIP目标文件(以及其他设置)。bool Zip(const ZipParams& params);// 不需要过滤器的方法//将src_dir的内容压缩到dest_fil...
2020-05-08 17:16:11
813
原创 Chromium入坑之旅:下载Chromium
最近想学习Chromium,于是开始了入坑之旅。一、设置代理(最重要) 众所周知,在我国谷歌不能直接访问,因此一款好的稳定的代理会让你少趟很多坑。 1. 设置好代理后,下载“https://storage.googleapis.com/chrome-infra/depot_tools.zip”...
2020-05-06 14:17:18
1139
原创 Chromium入坑之旅:base库之Files文件操作学习
base::FilePath path = base::FilePath(L"C:\Users\JinLuSa\Desktop\T.txt");base::File fIle = base::File(const FilePath& path, uint32_t flags);flags取值(可以用 “|”)enum Flags { FLAG_OPEN = 1 <&...
2020-05-06 13:53:42
1682
原创 ContextImpl和ContextWrapper绑定过程
LoadedApk类中makeApplication()中,public Application makeApplication(boolean forceDefaultAppClass,Instrumentation instrumentation) { if (mApplication != null) { return mApplication;...
2018-12-20 21:36:58
869
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人