emscripten-glfw

This project is an emscripten port of GLFW written in C++ for the web/webassembly platform #wasm

Latest version: 2024.09.07

Add to xmake.lua

add_requires("emscripten-glfw 2024.09.07")

Learn how to add and link packages with Xmake →

Information

License
Apache-2.0
Recipe updated
2024-09-22T16:03:32.000Z

Platforms

  • wasm: wasm32, wasm64

Options

joystick
Enable joystick support · Type: boolean · Default: true
multi_window
Enable multi window support · Type: boolean · Default: true

Versions

  • 2024.09.07

Dependencies

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "emscripten-glfw 2024.09.07"

show info

xrepo info "emscripten-glfw"

Link a library to your target

Declare the requirement, then attach the library to the target that uses it.

xmake.lua

add_requires("emscripten-glfw 2024.09.07")

target("demo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("emscripten-glfw")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "emscripten-glfw 2024.09.07" shell