mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Align #include in modperl/modpython with other files.
This commit is contained in:
@@ -17,7 +17,7 @@ endif
|
||||
|
||||
.SECONDARY:
|
||||
|
||||
all: modpython/_znc_core.cpp modpython/znc_core.py modpython/functions.cpp modpython/swigpyrun.h
|
||||
all: modpython/_znc_core.cpp modpython/znc_core.py modpython/pyfunctions.cpp modpython/swigpyrun.h
|
||||
|
||||
modpython/swigpyrun.h:
|
||||
@mkdir -p modpython
|
||||
@@ -26,11 +26,11 @@ modpython/swigpyrun.h:
|
||||
modpython/_znc_core.cpp: modpython/modpython.i modpython/module.h modpython/cstring.i
|
||||
$(E) Generating ZNC API for python...
|
||||
@mkdir -p modpython .depend
|
||||
$(Q)$(SWIG) -python -py3 -c++ -shadow -outdir modpython -I$(srcdir) -MD -MF .depend/modpython.swig.dep -w362,315,401 -o $@ $<
|
||||
$(Q)$(SWIG) -python -py3 -c++ -shadow -outdir modpython -I$(srcdir) -I$(srcdir)/../include -I../include -MD -MF .depend/modpython.swig.dep -w362,315,401 -o $@ $<
|
||||
|
||||
modpython/znc_core.py: modpython/_znc_core.cpp
|
||||
|
||||
modpython/functions.cpp: modpython/codegen.pl modpython/functions.in
|
||||
modpython/pyfunctions.cpp: modpython/codegen.pl modpython/functions.in
|
||||
@mkdir -p modpython
|
||||
$(Q)$(PERL) $^ $@
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ CLEAN += modpython/_znc_core.o modpython/compiler.o
|
||||
ifneq "$(SWIG)" ""
|
||||
# Only delete these files if we can regenerate them
|
||||
CLEAN += modpython/_znc_core.cpp modpython/znc_core.py
|
||||
CLEAN += modpython/swigpyrun.h modpython/functions.cpp
|
||||
CLEAN += modpython/swigpyrun.h modpython/pyfunctions.cpp
|
||||
endif
|
||||
ifneq "$(srcdir)" "."
|
||||
# Copied from source for out-of-tree builds
|
||||
@@ -58,7 +58,7 @@ ifneq "$(SWIG)" ""
|
||||
include $(srcdir)/modpython/Makefile.gen
|
||||
endif
|
||||
|
||||
modpython.o: modpython/functions.cpp modpython/swigpyrun.h
|
||||
modpython.o: modpython/pyfunctions.cpp modpython/swigpyrun.h
|
||||
|
||||
modpython/compiler.o: modpython/compiler.cpp Makefile
|
||||
@mkdir -p modpython
|
||||
|
||||
@@ -18,28 +18,28 @@
|
||||
|
||||
%{
|
||||
#include <utility>
|
||||
#include "../include/znc/Utils.h"
|
||||
#include "../include/znc/Threads.h"
|
||||
#include "../include/znc/Config.h"
|
||||
#include "../include/znc/Socket.h"
|
||||
#include "../include/znc/Modules.h"
|
||||
#include "../include/znc/Nick.h"
|
||||
#include "../include/znc/Chan.h"
|
||||
#include "../include/znc/User.h"
|
||||
#include "../include/znc/IRCNetwork.h"
|
||||
#include "../include/znc/Client.h"
|
||||
#include "../include/znc/IRCSock.h"
|
||||
#include "../include/znc/Listener.h"
|
||||
#include "../include/znc/HTTPSock.h"
|
||||
#include "../include/znc/Template.h"
|
||||
#include "../include/znc/WebModules.h"
|
||||
#include "../include/znc/znc.h"
|
||||
#include "../include/znc/Server.h"
|
||||
#include "../include/znc/ZNCString.h"
|
||||
#include "../include/znc/FileUtils.h"
|
||||
#include "../include/znc/ZNCDebug.h"
|
||||
#include "../include/znc/ExecSock.h"
|
||||
#include "../include/znc/Buffer.h"
|
||||
#include "znc/Utils.h"
|
||||
#include "znc/Threads.h"
|
||||
#include "znc/Config.h"
|
||||
#include "znc/Socket.h"
|
||||
#include "znc/Modules.h"
|
||||
#include "znc/Nick.h"
|
||||
#include "znc/Chan.h"
|
||||
#include "znc/User.h"
|
||||
#include "znc/IRCNetwork.h"
|
||||
#include "znc/Client.h"
|
||||
#include "znc/IRCSock.h"
|
||||
#include "znc/Listener.h"
|
||||
#include "znc/HTTPSock.h"
|
||||
#include "znc/Template.h"
|
||||
#include "znc/WebModules.h"
|
||||
#include "znc/znc.h"
|
||||
#include "znc/Server.h"
|
||||
#include "znc/ZNCString.h"
|
||||
#include "znc/FileUtils.h"
|
||||
#include "znc/ZNCDebug.h"
|
||||
#include "znc/ExecSock.h"
|
||||
#include "znc/Buffer.h"
|
||||
#include "modpython/module.h"
|
||||
|
||||
#include "modpython/ret.h"
|
||||
@@ -146,33 +146,33 @@ class MCString : public std::map<CString, CString> {};
|
||||
|
||||
#define u_short unsigned short
|
||||
#define u_int unsigned int
|
||||
#include "../include/znc/zncconfig.h"
|
||||
#include "../include/znc/ZNCString.h"
|
||||
%include "../include/znc/defines.h"
|
||||
%include "../include/znc/Utils.h"
|
||||
%include "../include/znc/Threads.h"
|
||||
%include "../include/znc/Config.h"
|
||||
%include "../include/znc/Csocket.h"
|
||||
#include "znc/zncconfig.h"
|
||||
#include "znc/ZNCString.h"
|
||||
%include "znc/defines.h"
|
||||
%include "znc/Utils.h"
|
||||
%include "znc/Threads.h"
|
||||
%include "znc/Config.h"
|
||||
%include "znc/Csocket.h"
|
||||
%template(ZNCSocketManager) TSocketManager<CZNCSock>;
|
||||
%include "../include/znc/Socket.h"
|
||||
%include "../include/znc/FileUtils.h"
|
||||
%include "../include/znc/Message.h"
|
||||
%include "../include/znc/Modules.h"
|
||||
%include "../include/znc/Nick.h"
|
||||
%include "../include/znc/Chan.h"
|
||||
%include "../include/znc/User.h"
|
||||
%include "../include/znc/IRCNetwork.h"
|
||||
%include "../include/znc/Client.h"
|
||||
%include "../include/znc/IRCSock.h"
|
||||
%include "../include/znc/Listener.h"
|
||||
%include "../include/znc/HTTPSock.h"
|
||||
%include "../include/znc/Template.h"
|
||||
%include "../include/znc/WebModules.h"
|
||||
%include "../include/znc/znc.h"
|
||||
%include "../include/znc/Server.h"
|
||||
%include "../include/znc/ZNCDebug.h"
|
||||
%include "../include/znc/ExecSock.h"
|
||||
%include "../include/znc/Buffer.h"
|
||||
%include "znc/Socket.h"
|
||||
%include "znc/FileUtils.h"
|
||||
%include "znc/Message.h"
|
||||
%include "znc/Modules.h"
|
||||
%include "znc/Nick.h"
|
||||
%include "znc/Chan.h"
|
||||
%include "znc/User.h"
|
||||
%include "znc/IRCNetwork.h"
|
||||
%include "znc/Client.h"
|
||||
%include "znc/IRCSock.h"
|
||||
%include "znc/Listener.h"
|
||||
%include "znc/HTTPSock.h"
|
||||
%include "znc/Template.h"
|
||||
%include "znc/WebModules.h"
|
||||
%include "znc/znc.h"
|
||||
%include "znc/Server.h"
|
||||
%include "znc/ZNCDebug.h"
|
||||
%include "znc/ExecSock.h"
|
||||
%include "znc/Buffer.h"
|
||||
|
||||
%include "modpython/module.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user