commit | ad78e80741349dda91c8a17fd16919655406e7d8 | [log] [tgz] |
---|---|---|
author | Brandon DeRosier <bdero@google.com> | Wed Oct 11 02:08:47 2023 -0700 |
committer | GitHub <noreply@github.com> | Wed Oct 11 02:08:47 2023 -0700 |
tree | c1372a32e35c054fe5b787d4c9c67912db955538 | |
parent | 7771b9b54df660fd5b749d44eb294beadd369bd6 [diff] |
Bump impeller-cmake to 25002cdd90333f9d2da0cb1df3fd635bdb7cfc1f (#18)
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!