commit | 4270ee285d163b6e90b8ed7a3cbf0f847cef644d | [log] [tgz] |
---|---|---|
author | Brandon DeRosier <bdero@google.com> | Sun Sep 17 17:29:12 2023 -0700 |
committer | Brandon DeRosier <bdero@google.com> | Sun Sep 17 19:36:32 2023 -0700 |
tree | 39d82629914f966cfe4eec3488e6cb584589ae8e | |
parent | 1f606c40651029fd944236e5be64710a6ddb75de [diff] |
Bump impeller-cmake to 8850119c4b1d191a31763412c1bde1b942705891.
This CMake project compiles parts of Flutter Engine, including Impeller's renderer layer and FML. The Flutter Engine codebase only supports building against Clang.
This repository is tested against the x64 Native Tools Command Prompt for VS 2022
.
This repository is tested against Homebrew Clang 13.0.0, which ships with the homebrew llvm
package.
Note: Don‘t do this unless you’re comfortable with restoring if things go wrong.
# Set a password for the user. passwd # Disable filesystem read-only mode. sudo btrfs property set -ts / ro false # Install archlinux maintainer public keys. sudo pacman-key --init sudo pacman-key --populate archlinux # Install build dependencies. sudo pacman -Sy cmake # The following dependencies should already be installed on the SteamDeck, # but they need to be reinstalled in order to populate missing headers. sudo pacman -Sy mesa libglvnd xorgproto libxrandr libxinerama libxcursor libxi libxext gcc linux-api-headers libx11 libxrender libxfixes
Clone the repository and fetch submodules:
git clone git@github.com:bdero/impeller-cmake-example.git --recursive
Fetch non-submodule dependencies:
cd impeller-cmake-example ./deps.sh
This repository contains configuration to make working with vscode easy out of the box (.vscode/settings.json
and CMakePresets.json
).
Note that ubiquitous tools like cmake
and clangd
do all of the heavy lifting here, and getting a good code completion/navigation experience is possible for any editor with clangd
support (Emacs, Sublime, etc).
Get clang:
x64 Native Tools Command Prompt for VS 2022
brew install llvm
)Install recommended vscode extensions:
Open the root directory of this repository in vscode:
code impeller-cmake-example
Configure CMake (bottom bar).
Ninja Debug VS2022
Ninja Debug
Example debug
.example
.Build/debug/run and enjoy!