adamharrison / lite-xl-terminal

A terminal plugin for lite-xl.
MIT License
39 stars 6 forks source link

Building (Windows -> Windows) and Install #52

Open fabriciorsf opened 2 months ago

fabriciorsf commented 2 months ago

1 - Create a build.bat

@echo off

SET CC=gcc
SET BIN=libterminal.dll

SET CFLAGS=%CFLAGS% -fPIC -Ilib\lite-xl\resources\include\
SET LDFLAGS="-lutil"

echo %CC% %CFLAGS% src\*.c %1 %2 %3 -shared -o %BIN%

%CC% %CFLAGS% src\*.c %1 %2 %3 -shared -o %BIN%

2 - Run this script using cmd (not pwsh):

git clone --depth=1 https://github.com/adamharrison/lite-xl-terminal.git --recurse-submodules --shallow-submodules
cd lite-xl-terminal
build.bat -g -O3 -ffast-math
cp -R plugins/terminal ~/.config/lite-xl/plugins
cp libterminal.dll ~/.config/lite-xl/plugins/terminal
adamharrison commented 1 month ago

Sure; do you want to submit a PR for this? I'm happy to have it in there.