Skip to content

Instantly share code, notes, and snippets.

View izzyreal's full-sized avatar

Izmar Verhage izzyreal

  • Amsterdam, The Netherlands
View GitHub Profile
#define SDL_MAIN_USE_CALLBACKS
#include <SDL3/SDL.h>
#include <SDL3/SDL_main.h>
static SDL_Window *window = NULL;
static SDL_Renderer *renderer = NULL;
SDL_AppResult SDL_AppInit(void **appstate, int argc, char **argv)
{
@izzyreal
izzyreal / CMakeLists.txt
Created April 5, 2025 17:23
CMakeLists.txt for Emscripten + asm-dom frontend
cmake_minimum_required (VERSION 3.13)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
project(asm-dom-cmake
LANGUAGES CXX
VERSION 0.1.0
)
if(DEFINED EMSCRIPTEN_ROOT_PATH)
set(CMAKE_SYSROOT "${EMSCRIPTEN_ROOT_PATH}/cache/sysroot")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -isystem ${CMAKE_SYSROOT}/include/compat")
➜ ~ su
Password:
[root@izmarch izmar]# pacman -S archlinux-keyring && pacman-key --init && pacman-key --populate && pacman-key --refresh-keys
warning: archlinux-keyring-20220831-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) archlinux-keyring-20220831-1
Total Installed Size: 1.57 MiB