diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-27 14:10:49 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-27 14:10:49 +0000 |
| commit | 49394f1edf60c87b4ebbf60b7bb8d5b6302b9a2f (patch) | |
| tree | c4ae88370a0e34737d0cd0c4d287f18c7e67711a /src | |
| parent | 5face4c6f35172761367f63ac0b6eaf62d84e532 (diff) | |
use a built-in module to replace libswigpy
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile.am | 10 | ||||
| -rw-r--r-- | src/swigruntime.i | 9 |
2 files changed, 16 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 0b35f72a..154791dd 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -7,7 +7,8 @@ CXXFLAGS=$(XFT_CFLAGS) $(PYTHON_CFLAGS) @CXXFLAGS@ \ -DDEFAULTMENU=\"$(DEFAULT_MENU)\" \ -DDEFAULTSTYLE=\"$(DEFAULT_STYLE)\" \ -DLOCALEDIR=\"$(localedir)\" \ --DSCRIPTDIR=\"$(scriptdir)\" +-DSCRIPTDIR=\"$(scriptdir)\" -DSWIG_GLOBAL +# -DSWIG_GLOBAL is for the swigruntime.cc (see swigruntime.i for explanation) LIBS=$(XFT_LIBS) $(PYTHON_LIBS) @LIBS@ @@ -15,12 +16,12 @@ INCLUDES= -I.. bin_PROGRAMS= openbox3 -openbox3_LDADD=-L../otk -lotk -lswigpy @LIBINTL@ +openbox3_LDADD=-L../otk -lotk @LIBINTL@ openbox3_SOURCES= actions.cc client.cc frame.cc openbox.cc screen.cc \ main.cc backgroundwidget.cc labelwidget.cc \ buttonwidget.cc python.cc bindings.cc \ - openbox_wrap.cc + swigruntime.cc openbox_wrap.cc openbox3_LDFLAGS= $(PYTHON_LDFLAGS) script_DATA = ob.py @@ -38,4 +39,7 @@ openbox.i: openbox.hh screen.hh client.hh python.hh frame.hh %_wrap.cc: %.i swig -c -I../otk $(filter -I%,$(CXXFLAGS)) -python -shadow -c++ -nodefault -o $@ $< +swigruntime.cc: swigruntime.i + swig -python -c++ -o $@ $< + # local dependencies diff --git a/src/swigruntime.i b/src/swigruntime.i new file mode 100644 index 00000000..d812c7ee --- /dev/null +++ b/src/swigruntime.i @@ -0,0 +1,9 @@ +// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- + +/* + This module exists just to link in the stuff that libswigpy would normally + provide. This way you don't need swig to compile this package from + distributed source tarballs. +*/ + +%module swigruntime |
