| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Otherwise we'll end up using the locale encoding. While it's usually utf-8,
that's not the case on Windows.
There is one place where a file with filenames is passed, not sure there
so I left it and passed a explicit None.
|
|\
| |
| |
| |
| | |
meson.build: exclude girepo_dep if introspection data is disabled
See merge request GNOME/gobject-introspection!248
|
|/
|
|
| |
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
| |
|
| |
|
|\
| |
| |
| |
| | |
monkey patch distutils.cygwinccompiler.get_msvcr
See merge request GNOME/gobject-introspection!246
|
|/ |
|
| |
|
|\
| |
| |
| |
| | |
Revert "giscanner: Fix section matching for documentation"
See merge request GNOME/gobject-introspection!241
|
|/
|
|
|
|
|
|
|
| |
This reverts commit de6512b31b614567bf1800406303d1ccfb6d9455.
This was causing naming conflicts when the SECTION documentation
was picked over the class documentation.
See https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/360
|
|
|
|
|
|
|
|
|
| |
os.path.relpath() will throw a ValueError when the two paths that
are fed to it are on different drives, at least when running under
cmd.exe consoles.
Fix this by falling back to the full path when this ValueError is
thrown.
|
|\
| |
| |
| |
| | |
gimarshallingtests: Add more tests for flags
See merge request GNOME/gobject-introspection!235
|
| |
| |
| |
| |
| |
| |
| |
| | |
If g_value_get_enum() or g_value_get_flags() is about to fail with a
precondition check failure, we can improve diagnostics by issuing
a more informative critical warning.
Signed-off-by: Simon McVittie <smcv@debian.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Bindings sometimes need to handle flags and enums separately, so
everything that is tested for enums should ideally be tested separately
for flags.
Signed-off-by: Simon McVittie <smcv@debian.org>
|
|/
|
|
|
|
|
| |
We already had a test for enums, but flags are not precisely the same,
so testing both can give bindings better coverage.
Signed-off-by: Simon McVittie <smcv@debian.org>
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
giscanner: Fix section matching for documentation
Closes #350
See merge request GNOME/gobject-introspection!237
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
When writing documentation to the GIR files, GIR tries to match
classes with their matching SECTION: comment in the source code. Some codebases
use kebab-case or CamelCase for their section names, but GIR always expects
them to be flatcase or the matching will fail.
This commit converts all section names to flatcase (by removing "-" and
converting to lowercase) while they are being parsed, so that they are matched
properly later on.
Fixes #350.
|
|\
| |
| |
| |
| | |
giscanner: Add support for using clang-cl
See merge request GNOME/gobject-introspection!234
|
| |
| |
| |
| |
| | |
Let people know how building G-I and running g-ir-scanner with clang-cl and
friends is being supported, as this support is now added.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This adds quick support for using 'clang-cl' (CLang's emulation of the Visual
Studio compiler) to run giscanner.
This will still initialize things mostly in the MSVC fashion, except that it
will also check whether both 'CC' and 'CXX' envvars are set to
'clang-cl [args]', as per the way that Meson supports using 'clang-cl'.
Since we are using distutils to set up the compiler instance, when we enable
'clang-cl' support, we trick distutils that we have already initialized the
MSVCCompiler parameters as needed. We just leave out the compiler flags as
we don't really care about debug symbols nor optimization with the built
dumper binary, as it is gone as soon as the .gir file is generated.
This will build G-I successfully with all the tests passed.
|
|/ |
|
| |
|
|\
| |
| |
| |
| | |
website: Add section about property/method name conflicts
See merge request GNOME/gobject-introspection!232
|
| |
| |
| |
| |
| | |
This is a trap that C APIs can fall into, so it should be mentioned on
the "Writing Bindable APIs" page.
|
|/ |
|
| |
|
|\
| |
| |
| |
| | |
Add missing nullable annotations to GObjectInfo
See merge request GNOME/gobject-introspection!225
|
| | |
|
|\ \
| | |
| | |
| | |
| | | |
Add the notion of standalone doc sections.
See merge request GNOME/gobject-introspection!226
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Up to now, section annotations had to match a class or interface
name in order to be serialized in the gir.
With this commit, they now get serialized as docsection nodes,
for potential use by documentation tools.
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
giscanner: parse block comments for members and fields
Closes #348
See merge request GNOME/gobject-introspection!230
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
There was previously no mechanism for tagging enum members
and struct fields with Since tags (or other, eg deprecation tags).
While the customary place to add Since tags for these symbols
is inline in the parent symbol's documentation eg:
/**
* Foo:
*
* @FOO_BAR: some bar. Since X.Y
*/
And variations on that theme, implementing parsing for that scheme
would result in a pretty ambiguous grammar, especially if we also
want support for multiple tags.
Instead, the solution implemented here is to allow providing
documentation for individual members and fields through their
own separate block, as is done for virtual functions already.
Inline comments are still used, with a lower precedence.
Fixes #348
|
|\ \ \ \
| |/ / /
|/| | |
| | | |
| | | | |
[Win32] Fix gi-dump-types.c to build on Windows
See merge request GNOME/gobject-introspection!218
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
`g_win32_output_stream_new_from_fd()` is private in Gio.
It's normally not exported unless `GLIB_STATIC_COMPILATION` is effective.
PS. Why would i not be called `GIO_STATIC_COMPILATION` for Gio .c-files?
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
meson.build: Fix generating pkg-config files
See merge request GNOME/gobject-introspection!229
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
On Windows and Cygwin builds, we need to put the '.exe' for our entries
into the pkg-config files for 'g-ir-compiler' and 'g-ir-generate',
otherwise Meson will not be able to identify these programs correctly.
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
gir: add a dependency for g-ir-compiler for building .girs
See merge request GNOME/gobject-introspection!228
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
meson inserts the dependency if the compiler is used directly, but
fails to do so if the compiler is run through a wrapper. This leads
to build race errors between building the compiler and using it.
Fix provided by Quentin Schulz <quentin.schulz@streamunlimited.com>
|
| |/ /
|/| | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
CI: add two jobs building a project using g-i with meson and autotools
Closes #341
See merge request GNOME/gobject-introspection!223
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | | |
This tests that after installing the g-i tools a simple project using
them can be build with meson and autotools.
Fixes #341
|
| | |
| | |
| | |
| | | |
See !207
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Meson: Use pkgconfig generator
See merge request GNOME/gobject-introspection!207
|