add support for xchat-lua, but don't build by default

This commit is contained in:
berkeviktor@aol.com 2010-08-12 02:56:10 +02:00
parent 9bff6d9d86
commit 25603820c1
5 changed files with 1909 additions and 0 deletions

View File

@ -12,6 +12,9 @@ nmake -f makefile.mak
::cd ..\dns
::nmake -f makefile.mak clean
::nmake -f makefile.mak
::cd ..\lua
::nmake -f makefile.mak clean
::nmake -f makefile.mak
cd ..\perl
nmake -f makefile.mak clean
nmake -f makefile.mak

View File

@ -35,6 +35,7 @@ xcopy %SSL_BIN%\libeay32.dll %XCHAT_DEST%
xcopy %SSL_BIN%\ssleay32.dll %XCHAT_DEST%
::xcopy /S /I ..\plugins\dns\xcdns.dll %XCHAT_DEST%\plugins\
xcopy /S /I ..\plugins\ewc\xcewc.dll %XCHAT_DEST%\plugins\
::xcopy /S /I ..\plugins\lua\xclua.dll %XCHAT_DEST%\plugins\
xcopy /S /I ..\plugins\perl\xcperl.dll %XCHAT_DEST%\plugins\
xcopy /S /I ..\plugins\python\xcpython.dll %XCHAT_DEST%\plugins\
xcopy /S /I ..\plugins\tcl\xctcl.dll %XCHAT_DEST%\plugins\

1882
plugins/lua/lua.c Normal file

File diff suppressed because it is too large Load Diff

19
plugins/lua/makefile.mak Normal file
View File

@ -0,0 +1,19 @@
include "..\..\src\makeinc.mak"
xclua.dll: lua.obj lua.def
link $(LDFLAGS) $(LIBS) /dll /out:xclua.dll /LIBPATH:$(LUAPATH)\lib $(LUALIB).lib /def:lua.def lua.obj
dir xclua.dll
lua.def:
echo EXPORTS > lua.def
echo xchat_plugin_init >> lua.def
echo xchat_plugin_deinit >> lua.def
lua.obj: lua.c makefile.mak
cl $(CFLAGS) /Dsnprintf=g_snprintf /I.. /I$(LUAPATH)\include /I.. lua.c
clean:
del *.obj
del *.dll
del *.exp
del *.lib

View File

@ -32,6 +32,7 @@ LIBS = $(LIBS) /libpath:c:/mozilla-build/build/xchat-dev32/lib gtk-win32-2.0.lib
LDFLAGS = $(LDFLAGS) msvcrt_winxp.obj
LUAPATH = c:\mozilla-build\lua-5.1-x86
PERLPATH = c:\mozilla-build\perl-5.10-x86\lib\CORE
PYTHONPATH = c:\mozilla-build\python-2.6-x86
TCLPATH = c:\mozilla-build\tcl-8.5-x86
@ -40,6 +41,9 @@ MMX = YES
!endif
#############################################################
LUALIB = lua5.1
LUAOUTPUT = xclua.dll
PERLLIB = perl510
PERLOUTPUT = xcperl.dll