mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-30 02:20:11 +00:00
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:
parent
b6a5ef868f
commit
ce9891a4ac
@ -41,6 +41,7 @@ clean:
|
|||||||
rm -f *.o src/*.o testclient testserver fs_cli libesl.a *~ src/*~ src/include/*~
|
rm -f *.o src/*.o testclient testserver fs_cli libesl.a *~ src/*~ src/include/*~
|
||||||
make -C perl clean
|
make -C perl clean
|
||||||
make -C php clean
|
make -C php clean
|
||||||
|
make -C lua clean
|
||||||
|
|
||||||
reswig: swigclean
|
reswig: swigclean
|
||||||
make -C perl reswig
|
make -C perl reswig
|
||||||
@ -48,6 +49,7 @@ reswig: swigclean
|
|||||||
swigclean: clean
|
swigclean: clean
|
||||||
make -C perl swigclean
|
make -C perl swigclean
|
||||||
make -C php swigclean
|
make -C php swigclean
|
||||||
|
make -C lua swigclean
|
||||||
|
|
||||||
perlmod: $(MYLIB)
|
perlmod: $(MYLIB)
|
||||||
make MYLIB="../$(MYLIB)" SOLINK="$(SOLINK)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CXX_CFLAGS="$(CXX_CFLAGS)" -C perl
|
make MYLIB="../$(MYLIB)" SOLINK="$(SOLINK)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CXX_CFLAGS="$(CXX_CFLAGS)" -C perl
|
||||||
@ -55,4 +57,7 @@ perlmod: $(MYLIB)
|
|||||||
phpmod: $(MYLIB)
|
phpmod: $(MYLIB)
|
||||||
make MYLIB="../$(MYLIB)" SOLINK="$(SOLINK)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CXX_CFLAGS="$(CXX_CFLAGS)" -C php
|
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
22
libs/esl/lua/Makefile
Normal 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
2930
libs/esl/lua/esl_wrap.cpp
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user