gihtub和chrome里各有一个,第一个是二个镜像。
从第一个下载 https://github.com/google/angle
D:\SOFT\ANGLE_BUILD\angle>git reset --hard
HEAD is now at ffa277a12 Fix logic for warningsAsErrors
D:\SOFT\ANGLE_BUILD\angle>gclient sync
Syncing projects: 69% ( 9/13) ./testing
./build (ERROR)
----------------------------------------
[0:00:00] Started.
----------------------------------------
Error: 2>
2> ____ .\build at 9a53be87ebb636c35f2ed9772e5deaeb350d790b
2> You have unstaged changes.
2> Please commit, stash, or reset.
git clone https://chromium.googlesource.com/angle/angle
cd angle
python scripts/bootstrap.py
gclient sync
git checkout master
target_cpu = "x64" (or "x86")
is_clang = false (to use system default compiler instead of clang)
is_debug = true (enable debugging, true is the default)
Building with Visual Studio
Run scripts/msvs_projects.py to generate a Visual Studio solution in out/sln/ANGLE.sln. This script runs GN and consolidates all the targets in out into a single meta-solution.
In Visual Studio:
Open the ANGLE solution file out/sln/ANGLE.sln.
The configurations found in your out directory will be mapped to configurations in the configuration manager. For compatibility reasons all configurations are listed as 64-bits.
Right click the “all” solution and select build. “Build Solution” is not functional with GN; instead build one target at a time." Once the build completes the output directory for your selected configuration (e.g. out/Release_x64) will contain the required libraries and dlls to build and run an OpenGL ES 2.0 application. ANGLE executables (tests and samples) are under out/sln.
D:\SOFT\ANGLE_BUILD\angle>python scripts/msvs_projects.py
Running "gn.bat gen out\Debug --ide=vs2017 --sln=ANGLE"
Traceback (most recent call last):
File "D:/SOFT/ANGLE_BUILD/angle/build/vs_toolchain.py", line 508, in
sys.exit(main())
File "D:/SOFT/ANGLE_BUILD/angle/build/vs_toolchain.py", line 504, in main
return commands[sys.argv[1]](*sys.argv[2:])
File "D:/SOFT/ANGLE_BUILD/angle/build/vs_toolchain.py", line 327, in CopyDlls
_CopyDebugger(target_dir, target_cpu)
File "D:/SOFT/ANGLE_BUILD/angle/build/vs_toolchain.py", line 360, in _CopyDebugger
% (debug_file, full_path))
Exception: dbghelp.dll not found in "D:\Windows Kits\10\Debuggers\x86\dbghelp.dll"
You must install the "Debugging Tools for Windows" feature from the Windows 10 SDK.
ERROR at //build/toolchain/win/BUILD.gn:50:3: Script returned non-zero exit code.
exec_script("../../vs_toolchain.py",
^----------
Current dir: D:/SOFT/ANGLE_BUILD/angle/out/Debug/
Command: D:/SOFT/ANGLE_BUILD/depot_tools/win_tools-2_7_6_bin/python/bin/python.exe D:/SOFT/ANGLE_BUILD/angle/build/vs_toolchain.py copy_dlls D:/SOFT/ANGLE_BUILD/angle/out/Debug Debug x86
Returned 1 and printed out:
Copying C:\Windows\SysWOW64\msvcp140.dll to D:/SOFT/ANGLE_BUILD/angle/out/Debug\msvcp140.dll...
Copying C:\Windows\SysWOW64\vccorlib140.dll to D:/SOFT/ANGLE_BUILD/angle/out/Debug\vccorlib140.dll...
Copying C:\Windows\SysWOW64\vcruntime140.dll to D:/SOFT/ANGLE_BUILD/angle/out/Debug\vcruntime140.dll...
Copying C:\Windows\SysWOW64\msvcp140d.dll to D:/SOFT/ANGLE_BUILD/angle/out/Debug\msvcp140d.dll...
Copying C:\Windows\SysWOW64\vccorlib140d.dll to D:/SOFT/ANGLE_BUILD/angle/out/Debug\vccorlib140d.dll...
Copying C:\Windows\SysWOW64\vcruntime140d.dll to D:/SOFT/ANGLE_BUILD/angle/out/Debug\vcruntime140d.dll...
See //BUILD.gn:28:3: which caused the file to be included.
group("all") {
^-------------
Running "python build\win\gn_meta_sln.py"
ERROR: At least one GN directory must have been built with --ide=vs
D:\SOFT\ANGLE_BUILD\angle>
##1.5
SDK winsdksetupSDK 10.0.17134.12 才有x86的debugger tools
D:\SOFT\ANGLE_BUILD\angle>python scripts/msvs_projects.py
Running "gn.bat gen out\Debug --ide=vs2017 --sln=ANGLE"
Generating Visual Studio projects took 164ms
Done. Made 180 targets from 75 files in 4781ms
Running "python build\win\gn_meta_sln.py"
Wrote meta solution to out/sln/ANGLE.sln
D:\SOFT\ANGLE_BUILD\angle>
1>------ 已启动生成: 项目: all, 配置: Debug Win32 ------
1>ninja: Entering directory `../../../out/Debug/'
1>[1/51] LINK(DLL) VkICD_mock_icd.dll VkICD_mock_icd.dll.lib VkICD_mock_icd.dll.pdb
1> 正在创建库 ./VkICD_mock_icd.dll.lib 和对象 ./VkICD_mock_icd.dll.exp
1>
1>[2/51] LINK(DLL) angle_util.dll angle_util.dll.lib angle_util.dll.pdb
1> 正在创建库 ./angle_util.dll.lib 和对象 ./angle_util.dll.exp
1>
1>[3/51] LINK(DLL) libfeature_support.dll libfeature_support.dll.lib libfeature_support.dll.pdb
1> 正在创建库 ./libfeature_support.dll.lib 和对象 ./libfeature_support.dll.exp
1>
1>[4/51] LINK(DLL) VkLayer_object_tracker.dll VkLayer_object_tracker.dll.lib VkLayer_object_tracker.dll.pdb
1> 正在创建库 ./VkLayer_object_tracker.dll.lib 和对象 ./VkLayer_object_tracker.dll.exp
1>
1>[5/51] LINK(DLL) VkLayer_threading.dll VkLayer_threading.dll.lib VkLayer_threading.dll.pdb
1> 正在创建库 ./VkLayer_threading.dll.lib 和对象 ./VkLayer_threading.dll.exp
1>
1>[6/51] LINK(DLL) VkLayer_parameter_validation.dll VkLayer_parameter_validation.dll.lib VkLayer_parameter_validation.dll.pdb
1> 正在创建库 ./VkLayer_parameter_validation.dll.lib 和对象 ./VkLayer_parameter_validation.dll.exp
1>
1>[7/51] LINK(DLL) VkLayer_unique_objects.dll VkLayer_unique_objects.dll.lib VkLayer_unique_objects.dll.pdb
1> 正在创建库 ./VkLayer_unique_objects.dll.lib 和对象 ./VkLayer_unique_objects.dll.exp
1>
1>[8/51] LINK(DLL) VkLayer_core_validation.dll VkLayer_core_validation.dll.lib VkLayer_core_validation.dll.pdb
1> 正在创建库 ./VkLayer_core_validation.dll.lib 和对象 ./VkLayer_core_validation.dll.exp
1>
1>[9/51] LINK(DLL) libGLESv2.dll libGLESv2.dll.lib libGLESv2.dll.pdb
1> 正在创建库 ./libGLESv2.dll.lib 和对象 ./libGLESv2.dll.exp
1>
1>[10/51] LINK(DLL) libGLESv1_CM.dll libGLESv1_CM.dll.lib libGLESv1_CM.dll.pdb
1> 正在创建库 ./libGLESv1_CM.dll.lib 和对象 ./libGLESv1_CM.dll.exp
1>
1>[11/51] LINK(DLL) libEGL.dll libEGL.dll.lib libEGL.dll.pdb
1> 正在创建库 ./libEGL.dll.lib 和对象 ./libEGL.dll.exp
1>
1>[12/51] LINK gles1_flat_shading.exe gles1_flat_shading.exe.pdb
1>[13/51] LINK gles1_draw_texture.exe gles1_draw_texture.exe.pdb
1>[14/51] LINK gles1_hello_triangle.exe gles1_hello_triangle.exe.pdb
1>[15/51] LINK gles1_simple_lighting.exe gles1_simple_lighting.exe.pdb
1>[16/51] LINK angle_unittests.exe angle_unittests.exe.pdb
1> 正在创建库 ./angle_unittests.lib 和对象 ./angle_unittests.exp
1>
1>[17/51] LINK gles1_simple_texture_2d.exe gles1_simple_texture_2d.exe.pdb
1>[18/51] LINK post_sub_buffer.exe post_sub_buffer.exe.pdb
1>[19/51] LINK multiple_draw_buffers.exe multiple_draw_buffers.exe.pdb
1>[20/51] LINK particle_system.exe particle_system.exe.pdb
1>[21/51] LINK mip_map_2d.exe mip_map_2d.exe.pdb
1>[22/51] LINK multiview.exe multiview.exe.pdb
1>[23/51] LINK hello_triangle.exe hello_triangle.exe.pdb
1>[24/51] LINK multi_window.exe multi_window.exe.pdb
1>[25/51] LINK multi_texture.exe multi_texture.exe.pdb
1>[26/51] LINK stencil_operations.exe stencil_operations.exe.pdb
1>[27/51] LINK tex_redef_microbench.exe tex_redef_microbench.exe.pdb
1>[28/51] LINK texture_wrap.exe texture_wrap.exe.pdb
1>[29/51] LINK tri_fan_microbench.exe tri_fan_microbench.exe.pdb
1>[30/51] LINK simple_instancing.exe simple_instancing.exe.pdb
1>[31/51] LINK simple_texture_2d.exe simple_texture_2d.exe.pdb
1>[32/51] LINK simple_vertex_shader.exe simple_vertex_shader.exe.pdb
1>[33/51] LINK simple_texture_cubemap.exe simple_texture_cubemap.exe.pdb
1>[34/51] LINK window_test.exe window_test.exe.pdb
1>[35/51] STAMP obj/samples/all.stamp
1>[36/51] LINK(DLL) angle_deqp_libegl.dll angle_deqp_libegl.dll.lib angle_deqp_libegl.dll.pdb
1> 正在创建库 ./angle_deqp_libegl.dll.lib 和对象 ./angle_deqp_libegl.dll.exp
1>
1>[37/51] LINK(DLL) angle_deqp_libgles2.dll angle_deqp_libgles2.dll.lib angle_deqp_libgles2.dll.pdb
1> 正在创建库 ./angle_deqp_libgles2.dll.lib 和对象 ./angle_deqp_libgles2.dll.exp
1>
1>[38/51] LINK angle_deqp_egl_tests.exe angle_deqp_egl_tests.exe.pdb
1>[39/51] LINK(DLL) angle_deqp_libgles3.dll angle_deqp_libgles3.dll.lib angle_deqp_libgles3.dll.pdb
1> 正在创建库 ./angle_deqp_libgles3.dll.lib 和对象 ./angle_deqp_libgles3.dll.exp
1>
1>[40/51] LINK angle_deqp_gles2_no_gtest.exe angle_deqp_gles2_no_gtest.exe.pdb
1>[41/51] LINK angle_deqp_egl_no_gtest.exe angle_deqp_egl_no_gtest.exe.pdb
1>[42/51] LINK angle_deqp_gles2_tests.exe angle_deqp_gles2_tests.exe.pdb
1>[43/51] LINK angle_deqp_gles3_no_gtest.exe angle_deqp_gles3_no_gtest.exe.pdb
1>[44/51] LINK angle_deqp_gles3_tests.exe angle_deqp_gles3_tests.exe.pdb
1>[45/51] LINK(DLL) angle_deqp_libgles31.dll angle_deqp_libgles31.dll.lib angle_deqp_libgles31.dll.pdb
1> 正在创建库 ./angle_deqp_libgles31.dll.lib 和对象 ./angle_deqp_libgles31.dll.exp
1>
1>[46/51] LINK angle_deqp_gles31_no_gtest.exe angle_deqp_gles31_no_gtest.exe.pdb
1>[47/51] LINK angle_perftests.exe angle_perftests.exe.pdb
1> 正在创建库 ./angle_perftests.lib 和对象 ./angle_perftests.exp
1>
1>[48/51] LINK angle_deqp_gles31_tests.exe angle_deqp_gles31_tests.exe.pdb
1>[49/51] LINK angle_end2end_tests.exe angle_end2end_tests.exe.pdb
1> 正在创建库 ./angle_end2end_tests.lib 和对象 ./angle_end2end_tests.exp
1>
1>[50/51] STAMP obj/src/tests/all.stamp
1>[51/51] STAMP obj/all.stamp
========== 生成: 成功 1 个,失败 0 个,最新 0 个,跳过 0 个 ==========
我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Markdown编辑器功能,我们增加了如下几点新功能,帮助你用它写博客:
撤销:Ctrl/Command + Z
重做:Ctrl/Command + Y
加粗:Ctrl/Command + B
斜体:Ctrl/Command + I
标题:Ctrl/Command + Shift + H
无序列表:Ctrl/Command + Shift + U
有序列表:Ctrl/Command + Shift + O
检查列表:Ctrl/Command + Shift + C
插入代码:Ctrl/Command + Shift + K
插入链接:Ctrl/Command + Shift + L
插入图片:Ctrl/Command + Shift + G
直接输入1次#,并按下space后,将生成1级标题。
输入2次#,并按下space后,将生成2级标题。
以此类推,我们支持6级标题。有助于使用TOC
语法后生成一个完美的目录。
强调文本 强调文本
加粗文本 加粗文本
标记文本
删除文本
引用文本
H2O is是液体。
210 运算结果是 1024.
链接: link.
当然,我们为了让用户更加便捷,我们增加了图片拖拽功能。
去博客设置页面,选择一款你喜欢的代码片高亮样式,下面展示同样高亮的 代码片
.
// An highlighted block
var foo = 'bar';
一个简单的表格是这么创建的:
项目 | Value |
---|---|
电脑 | $1600 |
手机 | $12 |
导管 | $1 |
使用:---------:
居中
使用:----------
居左
使用----------:
居右
第一列 | 第二列 | 第三列 |
---|---|---|
第一列文本居中 | 第二列文本居右 | 第三列文本居左 |
SmartyPants将ASCII标点字符转换为“智能”印刷标点HTML实体。例如:
TYPE | ASCII | HTML |
---|---|---|
Single backticks | 'Isn't this fun?' |
‘Isn’t this fun?’ |
Quotes | "Isn't this fun?" |
“Isn’t this fun?” |
Dashes | -- is en-dash, --- is em-dash |
– is en-dash, — is em-dash |
一个具有注脚的文本。2
Markdown将文本转换为 HTML。
您可以使用渲染LaTeX数学表达式 KaTeX:
Gamma公式展示 Γ ( n ) = ( n − 1 ) ! ∀ n ∈ N \Gamma(n) = (n-1)!\quad\forall n\in\mathbb N Γ(n)=(n−1)!∀n∈N 是通过欧拉积分
Γ ( z ) = ∫ 0 ∞ t z − 1 e − t d t   . \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,. Γ(z)=∫0∞tz−1e−tdt.
你可以找到更多关于的信息 LaTeX 数学表达式here.
可以使用UML图表进行渲染。 Mermaid. 例如下面产生的一个序列图::
这将产生一个流程图。:
我们依旧会支持flowchart的流程图:
如果你想尝试使用此编辑器, 你可以在此篇文章任意编辑。当你完成了一篇文章的写作, 在上方工具栏找到 文章导出 ,生成一个.md文件或者.html文件进行本地保存。
如果你想加载一篇你写过的.md文件或者.html文件,在上方工具栏可以选择导入功能进行对应扩展名的文件导入,
继续你的创作。
mermaid语法说明 ↩︎
注脚的解释 ↩︎