forked from meduketto/iksemel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Autoconf support for Python bindings
Binding itself is coming with next commits git-svn-id: https://iksemel.googlecode.com/svn/trunk@31 6ddeccfd-2234-0410-8ab0-45b763562eda
- Loading branch information
1 parent
ebdd1ba
commit 4028bd9
Showing
4 changed files
with
85 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## | ||
## Process this file with automake to produce Makefile.in | ||
## | ||
|
||
INCLUDES = -I$(top_srcdir)/include $(PYTHON_INCLUDES) | ||
|
||
pyexec_LTLIBRARIES = iksemel.la | ||
|
||
iksemel_la_LIBADD = $(top_builddir)/src/libiksemel.la | ||
iksemel_la_SOURCES = xml.c | ||
iksemel_la_LDFLAGS = -avoid-version -module -export-symbols-regex initiksemel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* iksemel (XML parser for Jabber) | ||
** Copyright (C) 2011 Gurer Ozen | ||
** This code is free software; you can redistribute it and/or | ||
** modify it under the terms of GNU Lesser General Public License. | ||
*/ | ||
|
||
#include <Python.h> | ||
#include "iksemel.h" | ||
|
||
PyObject *iksemel_module; | ||
|
||
static PyMethodDef methods[] = { | ||
{ NULL, NULL, 0, NULL } | ||
}; | ||
|
||
PyMODINIT_FUNC | ||
initiksemel(void) | ||
{ | ||
PyObject *m; | ||
|
||
m = Py_InitModule("iksemel", methods); | ||
iksemel_module = m; | ||
} |