From 88f9fbebecdcbcd023750c99db5555198dbdc2d2 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 17 Aug 2020 11:56:07 -0300 Subject: [PATCH] Add -DSKIA_LIBRARY flag for laf library in compilation instructions The SKIA_LIBRARY is filled automatically using find_library() and SKIA_LIBRARY_DIR, but it looks like somethings it doesn't work and it's better to just specify the SKIA_LIBRARY directly. --- INSTALL.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index 6e827b84d..b094721e3 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -125,7 +125,7 @@ And then cd aseprite mkdir build cd build - cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLAF_BACKEND=skia -DSKIA_DIR=C:\deps\skia -DSKIA_LIBRARY_DIR=C:\deps\skia\out\Release-x64 -G Ninja .. + cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLAF_BACKEND=skia -DSKIA_DIR=C:\deps\skia -DSKIA_LIBRARY_DIR=C:\deps\skia\out\Release-x64 -DSKIA_LIBRARY=C:\deps\skia\out\Release-x64\skia.lib -G Ninja .. ninja aseprite In this case, `C:\deps\skia` is the directory where Skia was compiled @@ -163,6 +163,7 @@ Run `cmake` with the following parameters and then `ninja`: -DLAF_BACKEND=skia \ -DSKIA_DIR=$HOME/deps/skia \ -DSKIA_LIBRARY_DIR=$HOME/deps/skia/out/Release-x64 \ + -DSKIA_LIBRARY=$HOME/deps/skia/out/Release-x64/libskia.a \ -G Ninja \ .. ninja aseprite @@ -191,6 +192,7 @@ Run `cmake` with the following parameters and then `ninja`: -DLAF_BACKEND=skia \ -DSKIA_DIR=$HOME/deps/skia \ -DSKIA_LIBRARY_DIR=$HOME/deps/skia/out/Release-x64 \ + -DSKIA_LIBRARY=$HOME/deps/skia/out/Release-x64/libskia.a \ -G Ninja \ .. ninja aseprite