flutter_open_xr 0.1.0
flutter_open_xr: ^0.1.0 copied to clipboard
CLI package to build Flutter projects into a Windows OpenXR runtime host.
flutter_open_xr #
flutter_open_xr は、任意の Flutter プロジェクトを Windows 向け OpenXR ホストで実行するための CLI パッケージです。
dev_dependencies に追加して、対象プロジェクト側で次を実行します。
dart run flutter_open_xr build
このコマンドは次を自動実行します。
flutter pub getflutter build bundle --debug --target-platform=windows-x64- Flutter
engineRevisionに一致するwindows-x64-embedder.zipを取得 - OpenXR-SDK (
release-1.1.57) を取得(未指定時) - 同梱ネイティブホスト (
native/windows) を CMake + MSBuild でビルド
インストール例 #
dev_dependencies:
flutter_open_xr:
git:
url: https://example.invalid/your-repo.git
path: flutter_open_xr
使い方 #
dart run flutter_open_xr build
主要オプション:
--project-dir <path> 対象 Flutter プロジェクトディレクトリ
--output-dir <path> 最終出力先ディレクトリ
--openxr-sdk-dir <path> 既存の OpenXR-SDK を使う
--cmake <path> cmake 実行ファイル
--flutter <path> flutter 実行ファイル
--git <path> git 実行ファイル
--configuration <name> Debug / Release / RelWithDebInfo / MinSizeRel
--dry-run 実行せずコマンドのみ表示
出力先 #
デフォルト出力:
<project>/build/flutter_open_xr/windows/Release
実行ファイル:
flutter_open_xr_runner.exe
前提 #
- Windows 10/11
- Visual Studio 2022 Build Tools (C++)
- CMake
- Flutter SDK
- OpenXR Runtime (Quest Link / SteamVR など)