[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Adonthell-commits] CVS: adonthell/src/py-wrappers/adonthell py_gui.i, N
From: |
VENNIN Joel <address@hidden> |
Subject: |
[Adonthell-commits] CVS: adonthell/src/py-wrappers/adonthell py_gui.i, NONE, 1.1 Makefile.am, 1.2, 1.3 |
Date: |
Mon, 28 Jul 2003 08:52:48 -0400 |
Update of /cvsroot/adonthell/adonthell/src/py-wrappers/adonthell
In directory subversions:/tmp/cvs-serv6580
Modified Files:
Makefile.am
Added Files:
py_gui.i
Log Message:
Gui definition for swig
--- NEW FILE ---
%module gui
%{
#include "base/types.h"
#include "gui/gui.h"
using namespace gui;
%}
%include "std_string.i"
%import "base/types.h"
%import "gfx/drawing_area.h"
%include "gui/base.h"
%include "gui/container.h"
Index: Makefile.am
===================================================================
RCS file: /cvsroot/adonthell/adonthell/src/py-wrappers/adonthell/Makefile.am,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** Makefile.am 24 Jul 2003 09:58:19 -0000 1.2
--- Makefile.am 28 Jul 2003 12:52:45 -0000 1.3
***************
*** 1,10 ****
CXXFLAGS += -I$(top_srcdir)/src/
! EXTRA_DIST = py_base.i py_gfx.i py_input.i
## Python wrapper files.
! pkgpyexec_PYTHON = __init__.py base.py gfx.py input.py
## Python helper libraries
! pkgpyexec_LTLIBRARIES = _base.la _gfx.la _input.la
## Rules to build libpybase (libbase's Python wrapper)
--- 1,10 ----
CXXFLAGS += -I$(top_srcdir)/src/
! EXTRA_DIST = py_base.i py_gfx.i py_input.i py_gui.i
## Python wrapper files.
! pkgpyexec_PYTHON = __init__.py base.py gfx.py input.py gui.py
## Python helper libraries
! pkgpyexec_LTLIBRARIES = _base.la _gfx.la _input.la _gui.la
## Rules to build libpybase (libbase's Python wrapper)
***************
*** 26,29 ****
--- 26,37 ----
_input_la_LIBADD = -L$(top_builddir)/src/input/ -ladonthell_input
-L$(top_builddir)/src/python -ladonthell_python $(PY_LIBS) $(SWIGRUNTIME_LIBS)
+
+ ## Rules to build libpygui (libgui's Python wrapper)
+ _gui_la_SOURCES = py_gui_wrap.cc
+ _gui_la_CXXFLAGS = $(PY_CFLAGS)
+ _gui_la_LDFLAGS = -avoid-version -module
+ _gui_la_LIBADD = -L$(top_builddir)/src/gui/ -ladonthell_gui
-L$(top_builddir)/src/python -ladonthell_python $(PY_LIBS) $(SWIGRUNTIME_LIBS)
+
+
## Rules for Python wrappers generation
base.py: py_base_wrap.cc
***************
*** 37,40 ****
--- 45,52 ----
input.py: py_input_wrap.cc
py_input_wrap.cc: py_input.i
+ $(SWIG) -c -python -shadow -I$(top_srcdir)/src -o $(srcdir)/$@ $<
+
+ gui.py: py_gui_wrap.cc
+ py_gui_wrap.cc: py_gui.i
$(SWIG) -c -python -shadow -I$(top_srcdir)/src -o $(srcdir)/$@ $<
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Adonthell-commits] CVS: adonthell/src/py-wrappers/adonthell py_gui.i, NONE, 1.1 Makefile.am, 1.2, 1.3,
VENNIN Joel <address@hidden> <=