News:

Welcome to RetroCoders Community

Main Menu

notepad++ nppexec script to compile DLL

Started by stigma, Jan 19, 2023, 04:48 PM

Previous topic - Next topic

stigma

npp_save
ENV_SET InputFile = $(CURRENT_DIRECTORY)\$(FILE_NAME)
ENV_SET OutDir = $(CURRENT_DIRECTORY)
ENV_SET OutputFile = $(CURRENT_DIRECTORY)\$(NAME_PART).dll
ENV_SET InRes = $(CURRENT_DIRECTORY)\Res\NewComCtl.rc
ENV_SET ResObj = $(CURRENT_DIRECTORY)\Res\manifest.o

cd $(CURRENT_DIRECTORY)
//cmd /c C:\mingw32\bin -i %InRes% -F pe-i386 -o %ResObj%
cd C:\mingw32\bin
cmd /c del %OutputFile% >nul 2>&1 
// -Wpedantic %ResObj%
cmd /c gcc -Wno-unused-label -s -Wall -std=c99 -Wno-unknown-pragmas -O1  -Wfatal-errors -s "%InputFile%"  -shared -luser32 -lgdi32 -L "%OutDir%" -o "%OutputFile%