Skip to content

prozum/meson-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install dependencies

Install Emscripten

wget https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz
sudo tar -xf emsdk-portable.tar.gz -C /opt/

source /opt/emsdk-portable/emsdk_env.sh
emsdk update
emsdk install latest
emsdk activate latest

Install Git, Ninja & Meson

# Fedora
sudo dnf install git ninja-build python3-pip
# Ubuntu
sudo apt install git ninja-build python3-pip

# Shared
sudo pip3 install meson

Build and run

Build from CLI

git clone https://github.com/prozum/meson-samples.git && cd meson-samples
meson --cross-file=emscripten.txt . build
ninja -C build

Run from CLI

python -m SimpleHTTPServer &
xdg-open http://localhost:8000/build
# Select a sample folder

Install and run Gnome Builder flatpak (Optional)

# Fedora
sudo dnf install flatpak
# Ubuntu
sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt update
sudo apt install flatpak

# Shared
flatpak install --from https://git.gnome.org/browse/gnome-apps-nightly/plain/gnome-builder.flatpakref?h=stable
flatpak run org.gnome.Builder

Cool Emscripten Demos

About

Samples for a Meson workshop

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published