forked from eddex/aseprite-windows-docker-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
31 lines (28 loc) · 985 Bytes
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
echo "download skia binaries"
cd C:\
mkdir deps
cd deps
mkdir skia
cd skia
powershell -command "wget -UseBasicParsing -OutFile skia.zip https://github.com/aseprite/skia/releases/download/m102-861e4743af/Skia-Windows-Release-x64.zip"
powershell -command "Expand-Archive -Path .\skia.zip -DestinationPath ."
echo "switch to VS dev cmd"
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\VsDevCmd.bat" -arch=x64
echo "build ninja"
cd C:\
RMDIR /S /Q ninja
git clone https://github.com/ninja-build/ninja.git
cd .\ninja\
mkdir build-cmake
cd build-cmake
cmake ..
cmake --build .
echo "build aseprite"
cd C:\
git clone --recursive https://github.com/aseprite/aseprite.git
cd aseprite
git submodule update --init --recursive
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 -DSKIA_LIBRARY=C:\deps\skia\out\Release-x64\skia.lib -G Ninja ..
ninja aseprite