Skip to content

Commit c06ae04

Browse files
committed
wip: xboxビルドテスト v8
1 parent 02b6cf0 commit c06ae04

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

templates/xbox/cmake/FetchDawn.cmake

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@
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
# =============================================================================
1015
include(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 のビルドオプション: 必要なものだけを有効化
1520
set(DAWN_FETCH_DEPENDENCIES ON CACHE BOOL "" FORCE)
@@ -29,9 +34,13 @@ set(DAWN_BUILD_MONOLITHIC_LIBRARY ON CACHE BOOL "" FORCE)
2934

3035
FetchContent_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

3746
FetchContent_MakeAvailable(dawn)

0 commit comments

Comments
 (0)