File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33# D3D12 バックエンドのみを有効化し、Xbox(GDK)/PC(GDK) で利用する。
44#
55# 注意:
6- # - Dawn のビルドには depot_tools 由来の一部が不要になる CMake パスを使用する。
6+ # - submodule はクローンしない (GIT_SUBMODULES "")。SwiftShader→LLVM まで再帰して
7+ # 数 GB のクローン + Windows の MAX_PATH 超過 ("Filename too long") で失敗するため。
8+ # 依存は Dawn 公式の DAWN_FETCH_DEPENDENCIES (python スクリプト) が必要分だけ取得する。
9+ # - DAWN_FETCH_DEPENDENCIES には python3 が PATH に必要。
710# - 初回構成はネットワークとビルド時間を要する。CI ではキャッシュ推奨。
8- # - DAWN_TAG は動作確認済みタグに固定すること (chromium ブランチに追従)。
11+ # - DAWN_TAG はバインディング (bindings/webgpu/*) が使う API 世代と一致させること:
12+ # wgpu::Limits / ShaderSourceWGSL / SurfaceSourceWindowsHWND / OptionalBool
13+ # (いずれも 2025 以降の命名。古いタグでは SupportedLimits 等になりビルド不可)
914# =============================================================================
1015include (FetchContent )
1116
12- set (DAWN_TAG "chromium/6478 " CACHE STRING "Dawn のチェックアウトタグ" )
17+ set (DAWN_TAG "v20260402.171122 " CACHE STRING "Dawn のチェックアウトタグ (github.com/google/dawn) " )
1318
1419# Dawn のビルドオプション: 必要なものだけを有効化
1520set (DAWN_FETCH_DEPENDENCIES ON CACHE BOOL "" FORCE )
@@ -29,9 +34,13 @@ set(DAWN_BUILD_MONOLITHIC_LIBRARY ON CACHE BOOL "" FORCE)
2934
3035FetchContent_Declare (
3136 dawn
32- GIT_REPOSITORY https://dawn.googlesource.com/dawn
37+ # GitHub ミラーの方が CI から高速・安定 (googlesource はレート制限がきつい)
38+ GIT_REPOSITORY https://github.com/google/dawn.git
3339 GIT_TAG ${DAWN_TAG}
3440 GIT_SHALLOW TRUE
41+ # submodule は取得しない (DAWN_FETCH_DEPENDENCIES が必要分を取得する)
42+ GIT_SUBMODULES ""
43+ GIT_SUBMODULES_RECURSE FALSE
3544)
3645
3746FetchContent_MakeAvailable (dawn)
You can’t perform that action at this time.
0 commit comments