Dieter Verfaillie [Mon, 5 Sep 2011 19:54:18 +0000 (21:54 +0200)]
Windows port: g-ir-scanner: Accept -m flags
Some pkgconfig files contain these flags on Windows, for example
gtk+-3.0.pc has -mms-bitfields in it's Cflags. Nothing is done yet
with these though, we only accept these flags for now...
https://bugzilla.gnome.org/show_bug.cgi?id=620566
Dieter Verfaillie [Mon, 5 Sep 2011 19:47:35 +0000 (21:47 +0200)]
Windows port: disable barapp test program on Windows
https://bugzilla.gnome.org/show_bug.cgi?id=620566
Dieter Verfaillie [Mon, 5 Sep 2011 19:47:08 +0000 (21:47 +0200)]
Windows port: set CAIRO_LIBS in LIBADD, not LDFLAGS
https://bugzilla.gnome.org/show_bug.cgi?id=620566
Dieter Verfaillie [Mon, 5 Sep 2011 19:34:57 +0000 (21:34 +0200)]
Windows port: Export all symbols on Windows.
https://bugzilla.gnome.org/show_bug.cgi?id=620566
Dieter Verfaillie [Mon, 5 Sep 2011 19:31:50 +0000 (21:31 +0200)]
Windows port: the tmpfile is going to be an exe...
... on Windows, so take care of the extension.
https://bugzilla.gnome.org/show_bug.cgi?id=620566
Dieter Verfaillie [Mon, 5 Sep 2011 16:48:10 +0000 (18:48 +0200)]
Windows port: dont't build gi-dump-types...
... on Windows, as it uses gio-unix.
https://bugzilla.gnome.org/show_bug.cgi?id=620566
Dieter Verfaillie [Mon, 5 Sep 2011 15:49:45 +0000 (17:49 +0200)]
Windows port: Do not append '/usr/share' to _xdg_data_dirs...
... on Windows as it points to the MinGW installation directory,
which doesn't have any .gir files to start with anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=620566
Dieter Verfaillie [Mon, 5 Sep 2011 15:19:39 +0000 (17:19 +0200)]
Windows port: compute GOBJECT_INTROSPECTION_LIBDIR at runtime.
Otherwise, we fail to properly locate the typelibs, because on Windows
the value of GOBJECT_INTROSPECTION_LIBDIR depends on where Glib has been
installed. Due to the nature of how we handle software that depends on
Glib on Windows (it is recommended that each program bundles it's private
copy), we're working in a "multi-prefixed" environment. Hence the value
computed at build time will most likely not even exist at runtime.
https://bugzilla.gnome.org/show_bug.cgi?id=620566
Dieter Verfaillie [Mon, 5 Sep 2011 15:00:37 +0000 (17:00 +0200)]
Windows port: cmph_time.h includes sys/resource.h which is not available on Windows.
So only include it when WIN32 is not defined.
https://bugzilla.gnome.org/show_bug.cgi?id=620566
Dieter Verfaillie [Mon, 5 Sep 2011 15:39:40 +0000 (17:39 +0200)]
Windows port: Work arount MSYS weirdness where it changes --libtool= command line arguments.
This continues to reuse the LIBTOOL variable from automake if it's set,
but works around some MSYS weirdness: When running g-ir-scanner, MSYS
changes a command-line argument --libtool="/bin/sh ../../libtool" into
--libtool=c:/opt/msys/1.0/bin/libtool. So just use sh.exe without path
because we already "know" where the libtool configure produced is.
https://bugzilla.gnome.org/show_bug.cgi?id=620566
Dieter Verfaillie [Mon, 5 Sep 2011 13:54:14 +0000 (15:54 +0200)]
Windows port: Simplify _giscanner's .pyd file extension handling.
By simply using -shrext ".pyd".
https://bugzilla.gnome.org/show_bug.cgi?id=620566
Dieter Verfaillie [Mon, 5 Sep 2011 13:53:15 +0000 (15:53 +0200)]
Windows port: set CAIRO_SHARED_LIBRARY in configure.ac
Both when x$have_cairo_gobject = xyes and x$have_cairo = xyes.
https://bugzilla.gnome.org/show_bug.cgi?id=620566
Dieter Verfaillie [Mon, 5 Sep 2011 13:52:21 +0000 (15:52 +0200)]
Windows port: check for OS_WIN32 in configure.ac
Without repeated output created by AC_MSG_CHECKING([for Win32])
https://bugzilla.gnome.org/show_bug.cgi?id=620566
Dieter Verfaillie [Mon, 5 Sep 2011 13:48:26 +0000 (15:48 +0200)]
Windows port: Use an improved python.m4
- AM_CHECK_PYTHON_HEADERS macro now allows PYTHON_INCLUDES to be overridden
from an environment variable and
- the new AM_CHECK_PYTHON_LIBS macro to check for ability to link against
libpython. This also allows PYTHON_LIBS and PYTHON_LIB_LOC to be overridden
from their respective environment variables.
This allows gobject-introspection to be built with MinGW/MSYS by doing:
PYTHON_DIR="/c/Python27"
SRC_DIR="/d/dev/gnome.org/checkout/gobject-introspection/src"
...
PYTHON_INCLUDES="-I${PYTHON_DIR}/include/" \
PYTHON_LIBS="-L${PYTHON_DIR}/libs/ -lpython${PYTHON_VERSION}" \
PYTHON_LIB_LOC="${PYTHON_DIR}/libs/" \
"${SRC_DIR}/configure" \
https://bugzilla.gnome.org/show_bug.cgi?id=620566
Colin Walters [Sat, 3 Sep 2011 18:46:51 +0000 (14:46 -0400)]
common.mk: Drop incorrect $(EXEEXT) extension on scripts
It only applies to native binaries.
Andoni Morales Alastruey [Sat, 3 Sep 2011 17:53:49 +0000 (19:53 +0200)]
Let the user override the default compiler with the CC env variable
Andoni Morales Alastruey [Sat, 3 Sep 2011 10:49:22 +0000 (12:49 +0200)]
Fix compilation with mingw
grealpath.h defines GetFullPathNameA() as windows.h is
not imported, but for gitscanner.c, windows.h is imported and the compiler
throws an error.
Andoni Morales Alastruey [Sat, 3 Sep 2011 10:44:41 +0000 (12:44 +0200)]
windows: Use the real python version instead of an hardcoded one
Andoni Morales Alastruey [Sat, 3 Sep 2011 14:23:20 +0000 (16:23 +0200)]
windows: Fix extension of g-ir-compiler to include EXE
Colin Walters [Sat, 3 Sep 2011 16:34:29 +0000 (12:34 -0400)]
gi-dump-types: New uninstalled debugging program
Usage: ./_build/gi-dump-types g_object_get_type
Colin Walters [Sat, 3 Sep 2011 16:02:54 +0000 (12:02 -0400)]
girffi: Remove unnecessary sys/mman.h include
While we're here move config.h to the top for consistency.
Vincent Untz [Fri, 2 Sep 2011 16:40:54 +0000 (18:40 +0200)]
regress: Fix wrong type of variable in regression test
https://bugzilla.gnome.org/show_bug.cgi?id=658075
Pavel Holejsovsky [Wed, 31 Aug 2011 11:05:22 +0000 (13:05 +0200)]
Regenerated GLib annotation cache
Regenerated from glib
fe4fc3e8b5a5ad8d4113c4df1fe8e0e9f295035e
Colin Walters [Tue, 30 Aug 2011 23:33:20 +0000 (19:33 -0400)]
Install docbookdescription.py
https://bugzilla.gnome.org/show_bug.cgi?id=657686
Colin Walters [Tue, 30 Aug 2011 02:42:56 +0000 (22:42 -0400)]
configure: Post-release version bump
Colin Walters [Tue, 30 Aug 2011 02:38:53 +0000 (22:38 -0400)]
gimarshallingtests.h: Remove unimplemented functions
The new missing-element-type warning triggers for these.
Colin Walters [Tue, 30 Aug 2011 02:37:08 +0000 (22:37 -0400)]
build: Update prepare-minor-release to use xz compression
Colin Walters [Tue, 30 Aug 2011 02:17:02 +0000 (22:17 -0400)]
scanner: Don't try to copy c:type if we're parsing (element-type)
Commit
81abc2eb63317003a11d1484e84698a37e8ec035 tries harder to keep
the c:type if it was overriden by a (type) annotation. However, the
_resolve() function was also called for (element-type), which had
undesirable effects - we'd copy the container c:type to the element
type.
Fix this by splitting out the c:type preservation to only happen when
processing toplevel types.
https://bugzilla.gnome.org/show_bug.cgi?id=656931
Colin Walters [Tue, 30 Aug 2011 01:58:31 +0000 (21:58 -0400)]
scanner: Remove some dead debugging code
Colin Walters [Tue, 30 Aug 2011 01:51:34 +0000 (21:51 -0400)]
Fix warning for missing (element-type)
While looking for a different bug, I noticed that the introspectable
pass lists was missing GSList. And the warning was never set up
to fire anyways. Fix it and add a test.
Johan Dahlin [Mon, 29 Aug 2011 12:07:39 +0000 (09:07 -0300)]
Add make-check-passed to gitignore
Johan Dahlin [Mon, 29 Aug 2011 12:07:17 +0000 (09:07 -0300)]
Use INTROSPECTION_SCANNER_ENV in Makefile.introspection
Johan Dahlin [Mon, 29 Aug 2011 08:55:26 +0000 (05:55 -0300)]
Add a make-check check to pre-commit hook
Pavel Holejsovsky [Sun, 28 Aug 2011 09:44:52 +0000 (11:44 +0200)]
Avoid most of the special-casing of GObject.Object in the scanner
There were some cases of handling GObject and GInitiallyUnowned which
were not necessary. Removing special cases from them simplified code
and as a bonus it added 'GObject::notify' signal into GIR, which was
not there previously.
https://bugzilla.gnome.org/show_bug.cgi?id=657446
Xavier Claessens [Thu, 16 Jun 2011 10:36:28 +0000 (12:36 +0200)]
add regression test for skipped #define
Xavier Claessens [Tue, 2 Aug 2011 10:03:57 +0000 (12:03 +0200)]
Add a regress test for a method returning GPtrArray
Giovanni Campagna [Fri, 26 Aug 2011 14:47:02 +0000 (16:47 +0200)]
Revert "xlib: fix the type of XID"
This reverts commit
3553cd0a4631f1b57fb608e3f3f78a1a0cfd602a.
Turns out it was wrong, XID is 64 bit on a 64 bit system. Plus
the scanner doesn't like multiple level typedefs.
Giovanni Campagna [Tue, 1 Mar 2011 21:33:20 +0000 (22:33 +0100)]
xlib: fix the type of XID
XIDs are CARD32, which corresponds to guint32 on all platform, not
gulong (which is 64 bit on x86_64). Fix that, and use alias indirection
to more accurately reflect the typedefs.
https://bugzilla.gnome.org/show_bug.cgi?id=643620
Javier Jardón [Fri, 26 Aug 2011 11:38:45 +0000 (12:38 +0100)]
configure.ac: Do not generate template files
It's not needed as the project uses inline comments
for documentation.
Javier Jardón [Fri, 26 Aug 2011 11:15:40 +0000 (12:15 +0100)]
configure.ac: Generate xz tarball with ustar format by default
Javier Jardón [Fri, 26 Aug 2011 11:14:20 +0000 (12:14 +0100)]
Update autotools configuration
Replace deprecated autoconf macros
Use new libtool syntax
Javier Jardón [Sun, 19 Jun 2011 21:16:12 +0000 (22:16 +0100)]
autogen.sh: Use autoreconf instead custom script
Pavel Holejsovsky [Fri, 19 Aug 2011 19:20:10 +0000 (21:20 +0200)]
Fix g_irepository_find_by_gtype() for GDK_TYPE_RECTANGLE
Complement fix for g-ir-scanner which converts every GdkRectangle
gtype to CairoRectangleInt. Make sure that C-side API is also aware
of this workaround.
Use case requiring this patch:
When binding implementation wants to get/set property, it can use either
GI-based approach (g_property_info_xxx() funcs), or just GLib facilities.
Although former is probably preferred, there are cases when latter is still
needed (e.g. gstreamer uses dynamic properties, which are not present in the
gir). In this case, binding implementation queries the type of the propertyb
(using g_object_class_find_property()), it gets GDK_TYPE_RECTANGLE,
and without the patch it cannot map it to any known type.
https://bugzilla.gnome.org/show_bug.cgi?id=655423
Pavel Holejsovsky [Sat, 13 Aug 2011 11:10:53 +0000 (13:10 +0200)]
Properly handle GParamSpec and descendants
GParamSpec is introspected as fundamental class, and all GObject
classes derived from it (e.g. GParamSpecChar) are marked as such.
https://bugzilla.gnome.org/show_bug.cgi?id=656440
Jasper St. Pierre [Wed, 24 Aug 2011 17:29:04 +0000 (13:29 -0400)]
Jasper St. Pierre [Wed, 24 Aug 2011 17:53:59 +0000 (13:53 -0400)]
Remove MAINTAINERS and add DOAP
John (J5) Palmieri [Tue, 23 Aug 2011 18:17:54 +0000 (14:17 -0400)]
add back the fixed_array_out_struct test
Alexandre Rostovtsev [Mon, 22 Aug 2011 06:49:51 +0000 (02:49 -0400)]
tests: build tests only on make check
Use automake's check_ prefix and avoid putting anything nontrivial in
BUILT_SOURCES so that tests are build only on make check.
The dummy -rpath in AM_LDFLAGS in tests/scanner/Makefile.am is needed to
force libtool to build shared libraries for check_LTLIBRARIESS targets
(automake builds check_LTLIBRARIES as static by default); see
http://lists.gnu.org/archive/html/automake/2005-10/msg00107.html
https://bugzilla.gnome.org/show_bug.cgi?id=657066
Colin Walters [Tue, 23 Aug 2011 13:35:51 +0000 (09:35 -0400)]
doctool: Disable tests for now
They don't work for multiple reasons, and there is still debate
about how the formatting etc. will work.
Colin Walters [Mon, 22 Aug 2011 18:55:41 +0000 (14:55 -0400)]
docbookdescription.py: Fix for PEP-8 compliance
Colin Walters [Mon, 22 Aug 2011 18:28:03 +0000 (14:28 -0400)]
Torsten Schönfeld [Thu, 18 Aug 2011 20:51:57 +0000 (22:51 +0200)]
Add 'Since:' tags to the newly added GIEnumInfo methods
Martin Pitt [Thu, 18 Aug 2011 15:39:32 +0000 (17:39 +0200)]
Regenerate Gio/GLib/GObject annotations
Ran misc/update-glib-annotations.py against current glib master.
Giovanni Campagna [Thu, 18 Aug 2011 15:29:21 +0000 (17:29 +0200)]
Add tests for newly added warnings
g-ir-scanner now warns for invalid (element-type) annotations
in GPtrArray and in GByteArray. Test that.
Tomeu Vizoso [Thu, 18 Aug 2011 15:18:31 +0000 (17:18 +0200)]
tests/doctool: Remove MALLARD_DIRS from BUILT_SOURCES
so we don't generate the test docs when doing a plain build
Giovanni Campagna [Sat, 2 Jul 2011 14:04:17 +0000 (16:04 +0200)]
Disallow non byte types for GByteArrays
Similarly to GPtrArrays, GByteArrays can only contain bytes. Emit
a warning if an inconsistent (element-type) is placed, and ensure
that the default is guint8 if nothing is added. This way bindings
can support GByteArrays without special casing them.
https://bugzilla.gnome.org/show_bug.cgi?id=652753
Giovanni Campagna [Sat, 2 Jul 2011 13:31:38 +0000 (15:31 +0200)]
Forbid GPtrArrays holding non-pointer types
It should be safe for bindings to assume that GPtrArrays hold only
pointers (or values as big as it), so there is no need to go through
hoops for converting smaller integers when marshalling.
Libraries that need arrays of integers should use GArray.
https://bugzilla.gnome.org/show_bug.cgi?id=652753
Laszlo Pandy [Wed, 17 Aug 2011 07:38:24 +0000 (09:38 +0200)]
Docbookwriter: signal flags
Laszlo Pandy [Wed, 17 Aug 2011 06:55:05 +0000 (08:55 +0200)]
In DocBookWriter, remove DocBookEntity and just use the ast nodes directly.
Laszlo Pandy [Tue, 16 Aug 2011 18:01:39 +0000 (20:01 +0200)]
For docbook, make the id attributes the same regardless of language. Only user visible strings should change between C and Python.
Laszlo Pandy [Sun, 14 Aug 2011 09:51:04 +0000 (11:51 +0200)]
Descriptions support for docbook writer.
Includes support for escaping (but not double escaping) entities and CDATA sections.
Add descriptions from GIR to docbook writer.
Torsten Schönfeld [Sat, 13 Aug 2011 15:28:30 +0000 (17:28 +0200)]
Allow enums and bitfields to have static methods
This uses the same backcompat machinery that was introduced for static
methods for non-class types, so this change does not break users of the
existing presentations.
New libgirepository API:
g_enum_info_get_n_methods
g_enum_info_get_method
https://bugzilla.gnome.org/show_bug.cgi?id=656499
Pavel Holejsovsky [Sat, 13 Aug 2011 11:10:34 +0000 (13:10 +0200)]
Teach scanner's girparser about fundamentals
Make sure that fundamental attribute and associated
functions (ref-func, unref-func, set-value-func and get-value-func)
are parsed, otherwise we fail reparse-validating girs containing
fundamentals.
Tomeu Vizoso [Mon, 15 Aug 2011 15:45:09 +0000 (17:45 +0200)]
giscanner: Allow passing additional include dirs when parsing a gir
Tomeu Vizoso [Mon, 15 Aug 2011 14:54:13 +0000 (16:54 +0200)]
tests/doctools: Properly clean the temporary mallard files
Tomeu Vizoso [Mon, 15 Aug 2011 14:44:14 +0000 (16:44 +0200)]
tests/doctool: Update the -expected dirs
Tomeu Vizoso [Mon, 15 Aug 2011 14:34:23 +0000 (16:34 +0200)]
tests/doctool: Make sure we regenerate the mallard code when testing
John (J5) Palmieri [Mon, 15 Aug 2011 14:41:50 +0000 (10:41 -0400)]
[doctools] use 'or' instead of 'and' when checking for func or constructor
John (J5) Palmieri [Mon, 15 Aug 2011 14:33:06 +0000 (10:33 -0400)]
treat constructors like methods when generating the label
John (J5) Palmieri [Mon, 15 Aug 2011 14:19:41 +0000 (10:19 -0400)]
[doctool] use different templates for method vs. function output
Tomeu Vizoso [Mon, 15 Aug 2011 14:01:18 +0000 (16:01 +0200)]
configure.ac: Change to tar-ustar because PAX gives problems in OpenBSD
Also, it's what other GNOME modules use
Tomeu Vizoso [Mon, 15 Aug 2011 13:52:04 +0000 (15:52 +0200)]
tests/doctool: Better way of copying the .gir
Tomeu Vizoso [Mon, 15 Aug 2011 13:50:45 +0000 (15:50 +0200)]
configure.ac: Add tar-pax to AM_INIT_AUTOMAKE
John (J5) Palmieri [Mon, 15 Aug 2011 13:27:05 +0000 (09:27 -0400)]
output namespace.class.methodname for python methods in the doctools
Tomeu Vizoso [Mon, 15 Aug 2011 12:52:52 +0000 (14:52 +0200)]
tests/doctool: Compare -expected directories instead of single files
John (J5) Palmieri [Mon, 15 Aug 2011 12:19:29 +0000 (08:19 -0400)]
fix up Python doc backend to output correct names
Tomeu Vizoso [Mon, 15 Aug 2011 12:04:03 +0000 (14:04 +0200)]
tests/doctool: Switch to test the mallard formatter
John (J5) Palmieri [Mon, 15 Aug 2011 12:01:43 +0000 (08:01 -0400)]
first pass at python backend for doc tools
Tomeu Vizoso [Mon, 15 Aug 2011 10:00:38 +0000 (12:00 +0200)]
tests/doctool: Add the right -expected files to dist
Tomeu Vizoso [Mon, 15 Aug 2011 09:51:09 +0000 (11:51 +0200)]
tests/doctool: Update expected files
Tomeu Vizoso [Mon, 15 Aug 2011 09:47:13 +0000 (11:47 +0200)]
g-ir-doc-tool: Fix PEP-8 issues
Tomeu Vizoso [Sun, 14 Aug 2011 14:21:57 +0000 (16:21 +0200)]
g-ir-doc-tool: print class declaration line in Python
Shaun McCance [Sun, 14 Aug 2011 14:16:35 +0000 (10:16 -0400)]
giscanner/mallardwriter: Adding experimental Mallard output to g-ir-doc-tool
Tomeu Vizoso [Sun, 14 Aug 2011 13:15:31 +0000 (15:15 +0200)]
g-ir-doc-tool: Use namespace.class for Python
Tomeu Vizoso [Sun, 14 Aug 2011 12:24:31 +0000 (14:24 +0200)]
g-ir-doc-tool: Ignore for now properties with no known type
Tomeu Vizoso [Sun, 14 Aug 2011 12:17:33 +0000 (14:17 +0200)]
g-ir-doc-tool: Use the array type when rendering [element-type]
Tomeu Vizoso [Sun, 14 Aug 2011 09:10:14 +0000 (11:10 +0200)]
g-ir-doc-tool: Add -expected test for Python docbook
Tomeu Vizoso [Mon, 15 Aug 2011 09:34:20 +0000 (11:34 +0200)]
g-ir-scanner: Stop going up the hierarchy once we reach GObject
Tomeu Vizoso [Mon, 15 Aug 2011 09:32:07 +0000 (11:32 +0200)]
Make sure we have UNINSTALLED_INTROSPECTION_SRCDIR when running tests
Colin Walters [Mon, 15 Aug 2011 08:22:01 +0000 (04:22 -0400)]
Regress-1.0-expected: Update for previous change
Colin Walters [Sun, 14 Aug 2011 09:42:53 +0000 (05:42 -0400)]
annotationparser: Don't eat lines that look like parameters outside param list
If we're done parsing parameters, previously we would simply eat lines that looked like
@foo: blah blah
Example is in gtkcssprovider.c.
https://bugzilla.gnome.org/show_bug.cgi?id=656504
Torsten Schönfeld [Sat, 13 Aug 2011 14:32:48 +0000 (16:32 +0200)]
Recognize constructors ending in 'newv'
Like gtk_list_store_newv and gtk_tree_store_newv.
https://bugzilla.gnome.org/show_bug.cgi?id=656460
Johan Dahlin [Sat, 13 Aug 2011 17:42:05 +0000 (14:42 -0300)]
Merge remote-tracking branch 'origin/gir-docbook'
Conflicts:
.gitignore
tests/scanner/Regress-1.0-expected.gir
Johan Dahlin [Sat, 13 Aug 2011 17:36:53 +0000 (14:36 -0300)]
Try harder to preserve c:type
When we replace a type using annotation we should keep
the ctype of the original type.
Johan Dahlin [Sat, 13 Aug 2011 15:45:12 +0000 (12:45 -0300)]
Make sure signal works when there isn't one specified
Johan Dahlin [Sat, 13 Aug 2011 15:45:12 +0000 (12:45 -0300)]
Make sure signal works when there isn't one specified
Tomeu Vizoso [Sat, 13 Aug 2011 15:33:46 +0000 (17:33 +0200)]
g-ir-doc-tool: Add support for varargs
Tomeu Vizoso [Sat, 13 Aug 2011 14:40:54 +0000 (16:40 +0200)]
tests/doctool: Updated -expected to match the code in the repo
Johan Dahlin [Sat, 13 Aug 2011 14:21:05 +0000 (11:21 -0300)]
Add signal flags
This adds all GSignalFlags into the gir.
https://bugzilla.gnome.org/show_bug.cgi?id=656457
Johan Dahlin [Sat, 13 Aug 2011 14:15:32 +0000 (11:15 -0300)]
Update gitignore