diff options
author | Johan Dahlin <jdahlin@async.com.br> | 2008-04-26 02:20:07 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-04-26 02:20:07 +0000 |
commit | 743984586d2a9c650322778a9b94fe2e5d40a091 (patch) | |
tree | c1b96c703ef8fb726c6b8aef0107c564df4a3b38 | |
parent | 497c5eebcbf4af86ccca15aa87b4be28e76d638c (diff) | |
download | gobject-introspection-743984586d2a9c650322778a9b94fe2e5d40a091.tar.gz |
Add LGPLv2 license header and install all python files
2008-04-25 Johan Dahlin <jdahlin@async.com.br>
* giscanner/Makefile.am:
* giscanner/__init__.py:
* giscanner/cgobject.py:
* giscanner/gidlparser.py:
* giscanner/gidlwriter.py:
* giscanner/girwriter.py:
* giscanner/gobjecttreebuilder.py:
* giscanner/odict.py:
* giscanner/sourcescanner.py:
* giscanner/treebuilder.py:
* giscanner/xmlwriter.py:
* tools/Makefile.am:
* tools/g-ir-scanner:
Add LGPLv2 license header and install all python files
svn path=/trunk/; revision=227
-rw-r--r-- | ChangeLog | 17 | ||||
-rw-r--r-- | giscanner/Makefile.am | 15 | ||||
-rw-r--r-- | giscanner/__init__.py | 19 | ||||
-rw-r--r-- | giscanner/cgobject.py | 19 | ||||
-rw-r--r-- | giscanner/gidlparser.py | 19 | ||||
-rw-r--r-- | giscanner/gidlwriter.py | 19 | ||||
-rw-r--r-- | giscanner/girwriter.py | 19 | ||||
-rw-r--r-- | giscanner/gobjecttreebuilder.py | 19 | ||||
-rw-r--r-- | giscanner/odict.py | 21 | ||||
-rw-r--r-- | giscanner/sourcescanner.py | 23 | ||||
-rw-r--r-- | giscanner/treebuilder.py | 19 | ||||
-rw-r--r-- | giscanner/xmlwriter.py | 19 | ||||
-rw-r--r-- | tools/Makefile.am | 2 | ||||
-rwxr-xr-x | tools/g-ir-scanner | 19 |
14 files changed, 242 insertions, 7 deletions
@@ -1,5 +1,22 @@ 2008-04-25 Johan Dahlin <jdahlin@async.com.br> + * giscanner/Makefile.am: + * giscanner/__init__.py: + * giscanner/cgobject.py: + * giscanner/gidlparser.py: + * giscanner/gidlwriter.py: + * giscanner/girwriter.py: + * giscanner/gobjecttreebuilder.py: + * giscanner/odict.py: + * giscanner/sourcescanner.py: + * giscanner/treebuilder.py: + * giscanner/xmlwriter.py: + * tools/Makefile.am: + * tools/g-ir-scanner: + Add LGPLv2 license header and install all python files + +2008-04-25 Johan Dahlin <jdahlin@async.com.br> + * TODO: * giscanner/gidlwriter.py: * giscanner/giscannermodule.c (pygi_source_directive_new), diff --git a/giscanner/Makefile.am b/giscanner/Makefile.am index 4ed31069..f2228abe 100644 --- a/giscanner/Makefile.am +++ b/giscanner/Makefile.am @@ -23,8 +23,19 @@ libgiscanner_la_CFLAGS = $(GOBJECT_CFLAGS) GCOVSOURCES = $(libgiscanner_la_SOURCES) # Python module -pyexec_LTLIBRARIES = _giscanner.la -pyexec_PYTHON = __init__.py +pkgpyexecdir = $(pyexecdir)/giscanner +pkgpyexec_LTLIBRARIES = _giscanner.la +pkgpyexec_PYTHON = \ + __init__.py \ + cgobject.py \ + gidlparser.py \ + gidlwriter.py \ + girwriter.py \ + gobjecttreebuilder.py \ + odict.py \ + sourcescanner.py \ + treebuilder.py \ + xmlwriter.py _giscanner_la_CFLAGS = \ $(PYTHON_INCLUDES) \ diff --git a/giscanner/__init__.py b/giscanner/__init__.py index 55963624..74a7f4a4 100644 --- a/giscanner/__init__.py +++ b/giscanner/__init__.py @@ -1,4 +1,21 @@ -from _giscanner import * +# -*- Mode: Python -*- +# GObject-Introspection - a framework for introspecting GObject libraries +# Copyright (C) 2008 Johan Dahlin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# (CSYMBOL_TYPE_INVALID, CSYMBOL_TYPE_CONST, diff --git a/giscanner/cgobject.py b/giscanner/cgobject.py index 9b98ceb7..d3d949f7 100644 --- a/giscanner/cgobject.py +++ b/giscanner/cgobject.py @@ -1,3 +1,22 @@ +# -*- Mode: Python -*- +# GObject-Introspection - a framework for introspecting GObject libraries +# Copyright (C) 2008 Johan Dahlin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# + # Poor mans GObject python bindings # Incidentally portable beyond CPython, due to usage of ctypes # Why not PyGObject? diff --git a/giscanner/gidlparser.py b/giscanner/gidlparser.py index 77a2f299..289f4afe 100644 --- a/giscanner/gidlparser.py +++ b/giscanner/gidlparser.py @@ -1,3 +1,22 @@ +# -*- Mode: Python -*- +# GObject-Introspection - a framework for introspecting GObject libraries +# Copyright (C) 2008 Johan Dahlin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# + from xml.etree.ElementTree import parse from .gobjecttreebuilder import GLibObject diff --git a/giscanner/gidlwriter.py b/giscanner/gidlwriter.py index 253327af..67fe5bf2 100644 --- a/giscanner/gidlwriter.py +++ b/giscanner/gidlwriter.py @@ -1,3 +1,22 @@ +# -*- Mode: Python -*- +# GObject-Introspection - a framework for introspecting GObject libraries +# Copyright (C) 2008 Johan Dahlin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# + from __future__ import with_statement from .gobjecttreebuilder import (GLibBoxed, GLibEnum, GLibEnumMember, diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py index 3a38ef8e..a444b12b 100644 --- a/giscanner/girwriter.py +++ b/giscanner/girwriter.py @@ -1,3 +1,22 @@ +# -*- Mode: Python -*- +# GObject-Introspection - a framework for introspecting GObject libraries +# Copyright (C) 2008 Johan Dahlin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# + from __future__ import with_statement from .gobjecttreebuilder import (GLibBoxed, GLibEnum, GLibEnumMember, diff --git a/giscanner/gobjecttreebuilder.py b/giscanner/gobjecttreebuilder.py index 60df7e0f..0d6955a0 100644 --- a/giscanner/gobjecttreebuilder.py +++ b/giscanner/gobjecttreebuilder.py @@ -1,3 +1,22 @@ +# -*- Mode: Python -*- +# GObject-Introspection - a framework for introspecting GObject libraries +# Copyright (C) 2008 Johan Dahlin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# + import ctypes import re import os diff --git a/giscanner/odict.py b/giscanner/odict.py index 00d5a5bd..4c66287b 100644 --- a/giscanner/odict.py +++ b/giscanner/odict.py @@ -1,4 +1,23 @@ -# odict - an ordered dictionary +# -*- Mode: Python -*- +# GObject-Introspection - a framework for introspecting GObject libraries +# Copyright (C) 2008 Johan Dahlin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# + +"""odict - an ordered dictionary""" from UserDict import DictMixin diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py index 26f8dcf8..43d49287 100644 --- a/giscanner/sourcescanner.py +++ b/giscanner/sourcescanner.py @@ -1,7 +1,26 @@ +# -*- Mode: Python -*- +# GObject-Introspection - a framework for introspecting GObject libraries +# Copyright (C) 2008 Johan Dahlin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# + import os import subprocess -import giscanner +from . import _giscanner class SourceType(object): @@ -61,7 +80,7 @@ class SourceSymbol(object): class SourceScanner(object): def __init__(self): - self._scanner = giscanner.SourceScanner() + self._scanner = _giscanner.SourceScanner() self._filenames = [] self._cpp_options = [] diff --git a/giscanner/treebuilder.py b/giscanner/treebuilder.py index 3b8375b7..b9d6a4a2 100644 --- a/giscanner/treebuilder.py +++ b/giscanner/treebuilder.py @@ -1,3 +1,22 @@ +# -*- Mode: Python -*- +# GObject-Introspection - a framework for introspecting GObject libraries +# Copyright (C) 2008 Johan Dahlin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# + import giscanner diff --git a/giscanner/xmlwriter.py b/giscanner/xmlwriter.py index e7a9167d..2cb66c62 100644 --- a/giscanner/xmlwriter.py +++ b/giscanner/xmlwriter.py @@ -1,3 +1,22 @@ +# -*- Mode: Python -*- +# GObject-Introspection - a framework for introspecting GObject libraries +# Copyright (C) 2008 Johan Dahlin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# + from contextlib import contextmanager from cStringIO import StringIO diff --git a/tools/Makefile.am b/tools/Makefile.am index 870db837..58a3c939 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -6,7 +6,7 @@ INCLUDES = \ -I$(top_srcdir)/giscanner noinst_LTLIBRARIES = libgirepository-parser.la -bin_PROGRAMS = g-idl-compiler g-idl-generate g-idl-scanner +bin_PROGRAMS = g-idl-compiler g-idl-generate g-idl-scanner g-ir-scanner libgirepository_parser_la_SOURCES = \ gidlmodule.c \ diff --git a/tools/g-ir-scanner b/tools/g-ir-scanner index 9dfe2f30..b9b17d44 100755 --- a/tools/g-ir-scanner +++ b/tools/g-ir-scanner @@ -1,4 +1,23 @@ #!/usr/bin/env python +# -*- Mode: Python -*- +# GObject-Introspection - a framework for introspecting GObject libraries +# Copyright (C) 2008 Johan Dahlin +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# + import commands import optparse import sys |