Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.02 KB

README.md

File metadata and controls

51 lines (34 loc) · 1.02 KB

Diyou.Lib

Requirements

  • cmake > 3.28
  • clang > 17

Usage

As a general entry-point See: Template

Building

On command-line:

#list available presets with
#> cmake --list-presets
cmake --preset=Debug::Emscripten && cmake --build --preset=Debug::Emscripten

Available Presets

  • Debug::Unix (clang + Ninja)
  • Release::Unix (clang + Ninja)
  • Debug::Windows (MSVC)
  • Release::Windows (MSVC)
  • Debug::Emscripten (emcc + Ninja)
  • Release::Emscripten (emcc + Ninja)

In vscode with cmake-tools

Select a Configuration and Build Preset from the Status bar
Or view Command Palette [CTRL+Shift+P]

  • CMake: Select Configure Preset
  • CMake: Configure
  • CMake: Build [F7]

Testing Web-Target [emscripten]

On command-line

.cache/emsdk/upstream/emscripten/emrun --hostname=localhost --no_browser build/Debug-Emscripten/Examples

In vscode