add lua to esl

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12091 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-02-17 16:02:26 +00:00
parent b6a5ef868f
commit ce9891a4ac
3 changed files with 2957 additions and 0 deletions

View File

@ -41,6 +41,7 @@ clean:
rm -f *.o src/*.o testclient testserver fs_cli libesl.a *~ src/*~ src/include/*~
make -C perl clean
make -C php clean
make -C lua clean
reswig: swigclean
make -C perl reswig
@ -48,6 +49,7 @@ reswig: swigclean
swigclean: clean
make -C perl swigclean
make -C php swigclean
make -C lua swigclean
perlmod: $(MYLIB)
make MYLIB="../$(MYLIB)" SOLINK="$(SOLINK)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CXX_CFLAGS="$(CXX_CFLAGS)" -C perl
@ -55,4 +57,7 @@ perlmod: $(MYLIB)
phpmod: $(MYLIB)
make MYLIB="../$(MYLIB)" SOLINK="$(SOLINK)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CXX_CFLAGS="$(CXX_CFLAGS)" -C php
luamod: $(MYLIB)
make MYLIB="../$(MYLIB)" SOLINK="$(SOLINK)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CXX_CFLAGS="$(CXX_CFLAGS)" -C lua

22
libs/esl/lua/Makefile Normal file
View File

@ -0,0 +1,22 @@
LOCAL_CFLAGS=
LOCAL_LDFLAGS=-llua
all: ESL.so
esl_wrap.cpp:
swig -module ESL -lua -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
esl_wrap.o: esl_wrap.cpp
$(CXX) $(CXX_CFLAGS) $(CXXFLAGS) $(LOCAL_CFLAGS) -c esl_wrap.cpp -o esl_wrap.o
ESL.so: esl_wrap.o
$(CXX) $(SOLINK) esl_wrap.o $(MYLIB) $(LOCAL_LDFLAGS) -o ESL.so -L. $(LIBS)
clean:
rm -f *.o *.so *~
swigclean:
rm -f esl_wrap.* ESL.so
reswig: swigclean esl_wrap.cpp

2930
libs/esl/lua/esl_wrap.cpp Normal file

File diff suppressed because it is too large Load Diff