This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via 7f40abdf975259a1285023927c27a9fe4c394bbd (commit) via f26e8c4084153dc28b77d603162662744d84a1ac (commit) from 4f9126b65e5597524ac218023ac7520e6219ad23 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/7f40abdf975259a1285023927c27a9fe4c394...
commit 7f40abdf975259a1285023927c27a9fe4c394bbd Author: Cyril Hrubis metan@ucw.cz Date: Sat May 12 00:26:06 2012 +0200
pywrap: Add pywrap for input module.
diff --git a/pylib/gfxprim/Makefile b/pylib/gfxprim/Makefile index 3032f62..afcad67 100644 --- a/pylib/gfxprim/Makefile +++ b/pylib/gfxprim/Makefile @@ -1,4 +1,4 @@ TOPDIR=../.. -SUBDIRS=core loaders backends gfx filters text +SUBDIRS=core loaders backends gfx filters text input CLEAN+=*.pyc include $(TOPDIR)/post.mk diff --git a/pylib/gfxprim/input/C.py b/pylib/gfxprim/input/C.py new file mode 100644 index 0000000..c8f987f --- /dev/null +++ b/pylib/gfxprim/input/C.py @@ -0,0 +1,3 @@ +""" +Submodule for constants +""" diff --git a/pylib/gfxprim/input/Makefile b/pylib/gfxprim/input/Makefile new file mode 100644 index 0000000..3430bc9 --- /dev/null +++ b/pylib/gfxprim/input/Makefile @@ -0,0 +1,8 @@ +TOPDIR=../../.. +LIBNAME=input + +include $(TOPDIR)/pre.mk +include $(TOPDIR)/pywrap.mk +include $(TOPDIR)/post.mk + +include ../silence_swig_warnings.mk diff --git a/pylib/gfxprim/input/__init__.py b/pylib/gfxprim/input/__init__.py new file mode 100644 index 0000000..31c371f --- /dev/null +++ b/pylib/gfxprim/input/__init__.py @@ -0,0 +1,29 @@ +""" +Module wrapping GfxPrim Input. +""" + +from . import input_c + +# Constants module +from . import C + +def _init(module): + # Import some members from the SWIG module + from ..utils import import_members + import re + def strip_GP(s): + return re.sub('^GP_', '', s) + + # Constants + const_regexes = ['^GP_[A-Z0-9_]*$'] + import_members(input_c, C, include=const_regexes, sub=strip_GP) + + # Functions + import_members(input_c, module, sub=strip_GP, + exclude=const_regexes + [ + '^gfxprim$', + '^w+_swigregister$', + '^_w+$']) + +_init(locals()) +del _init diff --git a/pylib/gfxprim/input/input.i b/pylib/gfxprim/input/input.i new file mode 100644 index 0000000..f870e10 --- /dev/null +++ b/pylib/gfxprim/input/input.i @@ -0,0 +1,7 @@ +%module(package="gfxprim.input") input_c + +%{ +#include "input/GP_Input.h" +%} + +%include "GP_Event.h"
http://repo.or.cz/w/gfxprim.git/commit/f26e8c4084153dc28b77d603162662744d84a...
commit f26e8c4084153dc28b77d603162662744d84a1ac Author: Cyril Hrubis metan@ucw.cz Date: Sat May 12 00:00:31 2012 +0200
pywrap: backends: Update swig bindings.
diff --git a/pylib/gfxprim/backends/backends.i b/pylib/gfxprim/backends/backends.i index 4785281..dd1394d 100644 --- a/pylib/gfxprim/backends/backends.i +++ b/pylib/gfxprim/backends/backends.i @@ -33,12 +33,12 @@
%include "GP_Backend.h"
- /* * Particular backends. We need to list every header separately. */ - -%include "GP_Backends.h" +/* Overall backend init header */ +%newobject GP_BackendInit; +%include "GP_BackendInit.h"
%newobject GP_BackendLinuxFBInit; %include "GP_LinuxFB.h" @@ -46,3 +46,5 @@ %newobject GP_BackendSDLInit; %include "GP_SDL.h"
+%newobject GP_BackendX11Init; +%include "GP_X11.h"
-----------------------------------------------------------------------
Summary of changes: pylib/gfxprim/Makefile | 2 +- pylib/gfxprim/backends/backends.i | 8 +++++--- pylib/gfxprim/{backends => input}/C.py | 0 pylib/gfxprim/{core => input}/Makefile | 2 +- pylib/gfxprim/{gfx => input}/__init__.py | 24 +++++++++++++----------- pylib/gfxprim/input/input.i | 7 +++++++ 6 files changed, 27 insertions(+), 16 deletions(-) copy pylib/gfxprim/{backends => input}/C.py (100%) copy pylib/gfxprim/{core => input}/Makefile (90%) copy pylib/gfxprim/{gfx => input}/__init__.py (52%) create mode 100644 pylib/gfxprim/input/input.i
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.