Skip to content

Instantly share code, notes, and snippets.

@Icedude907
Last active April 7, 2024 13:56
Show Gist options
  • Save Icedude907/9ec1297388cef346e52f4627126366d7 to your computer and use it in GitHub Desktop.
Save Icedude907/9ec1297388cef346e52f4627126366d7 to your computer and use it in GitHub Desktop.
A selection of assorted thoughts - may help you when going through the building process yourself
  • Git clone the repo
  • Gitignore skia
  • Update file
// city.cc

// #include <byteswap.h>
#define bswap_32(x) __builtin_bswap32(x)
#define bswap_64(x) __builtin_bswap64(x)
  • Install Visual Studio Build Tools
  • Install CMake
  • Install Ninja (optional?)
  • Grab skia, put in ./skia
  • Cmake cache edits: CMAKE_IGNORE_PREFIX_PATH=C:\msys64\
    LAF_BACKEND=skia
    SKIA_DIR=<path to skia dir you extracted>\skia
    SKIA_LIBRARY_DIR=<path>\skia\out\Release-x64
    SKIA_LIBRARY=<path>\skia\out\Release-x64\skia.lib
    ENABLE_ICONV=FALSE
  • Build Release
@monxa
Copy link

monxa commented Apr 7, 2024

this is neat! thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment