Commits on Source (77)
-
Marco Trevisan authored
Virtual functions may use input/output parameters but this is not currently well handled by gjs, so adding test cases to gobject-introspection to verify that virtual functions correctly receive valid input values and can return them.
d7169451 -
Stephen Gallagher authored
cElementTree was removed in Python 3.9 in favor of ElementTree, which has used a fast, native implementation since Python 3.3. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1817649 Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
-
Christoph Reiter authored7e379314
-
Xavier Claessens authoredec00edd9
-
Xavier Claessens authored
When gobject-introspection-1.0 pkg-config is not found on the system, Meson can fallback to configure g-i as subproject and needs a dependency object to replace the pc file. The dependency file needs to ensure that typelibs are created before compiling any other gir and provide the girdir for files within build directory. It also need to provide glib dependencies required to compile girs. Bump Meson version to 0.54.0 to use meson.override_dependency().
d01a3874 -
Xavier Claessens authoreda88b1ac5
-
Emmanuele Bassi authored
This reverts commit ec00edd9. The nightly run time does not have Meson 0.54.
42b7d634 -
Emmanuele Bassi authored
This reverts commit d01a3874. The nightly run time does not have Meson 0.54
ec08670d -
Emmanuele Bassi authored
GTK4 allows adding widget-related actions to the documentation with the newly defined syntax: <class_name> '|' <action_name> ':' This means g-ir-scanner needs to detect this new format, to avoid emitting unnecessary warnings. Currently, we don't do anything with the actions; in the future we might want to add them to the documentation in the GIR, but for that we'd need a new element. See also: GNOME/gtk-doc!30
9cb1ac54 -
Emmanuele Bassi authored
GListModel is an interface for creating typed, list-like containers. The data stored is GObject instances, but it's useful to be able to annotate the actual type, for both documentation and code generation purposes. Fixes: #328
b4c058bb -
Emmanuele Bassi authored
We need to special case the ListModel container type in the documentation writer so that we don't fall back into array/list automatic conversion in the code snippets.
ffe3e435 -
Xavier Claessens authored
This reverts commit 42b7d634.
ad26ceaa -
Xavier Claessens authored
When gobject-introspection-1.0 pkg-config is not found on the system, Meson can fallback to configure g-i as subproject and needs a dependency object to replace the pc file. The dependency file needs to ensure that typelibs are created before compiling any other gir and provide the girdir for files within build directory. It also need to provide glib dependencies required to compile girs.
f9d53d9d -
Emmanuele Bassi authored
This reverts commit ffe3e435. See: #336
6dc8402c -
Emmanuele Bassi authored
This reverts commit b4c058bb. See: #336
07162e90 -
Emmanuele Bassi authored
GListModel is an interface for creating typed, list-like containers. The data stored is GObject instances, but it's useful to be able to annotate the actual type, for both documentation and code generation purposes. The annotation should be optional, to maintain backward compatibility.
a9f45431 -
Philip Chimento authored
Checking the Python dependency doesn't ensure the header is present. That needs to be checked separately.
1647f692 -
Philip Chimento authored
Required for adding new API to the 1.66 series.
bcf8fa77 -
Philip Chimento authored
This functionality is used in both PyGObject and GJS, and if not done correctly can lead to architecture-specific bugs. It seems best to add API in gobject-introspection for the correct way to do it. See also: GNOME/gjs#309
129c588f -
Philip Chimento authored
We are adding new API for 1.66, so bump the version number to the development series.
770d81f2 -
John Ericson authored
Actually, we shouldn't really need this. We are building `native: false` binaries so when we look up a `native: true` binary the override should not apply. I've fixed this upstream in meson in https://github.com/NixOS/nixpkgs/pull/86080, though some backwards compatibility migration might be in order. In the meantime, we can make `gi_cross_use_host_gi` prevent the overrides from happening, which will achieve the desired behavior. Finally, this allows us to use `find_program` in `scanner_command`, unconditionally, letting the presence of the override dictate whether a freshly-built or pre-built `g-ir-scanner` is used.
0881b78b -
Rico Tzschichholz authored
Breaks vapigen and changes GListModel definition in Gio-2.0.gir This reverts commit a9f45431.
bb364bd2 -
Rico Tzschichholz authored79962577
-
Christoph Reiter authored
powershell instead of cmd, win2016 instead of 2012r2
769f886b -
Xavier Claessens authored
meson.build_root() is the root of the main project, better use meson.current_build_dir() instead.
f8e080d0 -
neok authored2ae776ad
-
Christoph Reiter authored
The newest flake8 has started to detect this.
aaeb15ec -
Jonne Haß authored487d3f01
-
Jonne Haß authoredf9a92fc3
-
Gisle Vanem authored918136cc
-
Gisle Vanem authoredb734652c
-
Christoph Reiter authored
In case a user had a combination of -fvisibility=hidden, -Wl,--as-needed, -flto, -O2 in the CFLAGS the linker would sometimes detect that all the referenced gtype functions weren't actually used and throw them out with their providing libraries. Instead of hoping that the user's CFLAGS don't mess without our symbol visibility just use G_MODULE_EXPORT on the two symbols which reference all other gtype and gquark symbols. This fixes errors such as: Invalid GType function: 'gtk_accel_group_get_type' Failed to find symbol 'gtk_accel_group_get_type' during the g-ir-scanner execution. Fixes #280
cea7ef1e -
Christoph Reiter authored
dumper: Fix missing symbols in LTO case or with overridden symbol visibility settings Closes #280 See merge request GNOME/gobject-introspection!216
7c125f0d -
Gisle Vanem authored
`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?
5b9cf70d -
Jan Tojnar authored
-
Jan Tojnar authored
There has been no backwards incompatible changes between DockBook 4.3 and 4.5 so there is no need to use both. Ideally, we would switch to DocBook 5 but that will require more changes.
-
Christoph Reiter authored
Minor docs fixes See merge request GNOME/gobject-introspection!220
fc055e7c -
John Ericson authored1c53902e
-
John Ericson authored
The old name used "host" according to Yocto's definition, but not Meson's. The new name works for everyone.
db136cba -
Christoph Reiter authored
Remove old autoconf fallback code for the python tools. See merge request GNOME/gobject-introspection!221
4d5c6f45 -
Christoph Reiter authored
Rename option `gi_cross_use_{host -> prebuilt}_gi` See merge request GNOME/gobject-introspection!211
0ae28e56 -
John Ericson authoredf7c30105
-
Christoph Reiter authored
Don't override finding executables when using pre-built tools. See merge request GNOME/gobject-introspection!212
b9f17cf0 -
Xavier Claessens authored
Meson: Use pkgconfig generator See merge request GNOME/gobject-introspection!207
51546f52 -
Christoph Reiter authored
See !207
a943f572 -
Christoph Reiter authored
This tests that after installing the g-i tools a simple project using them can be build with meson and autotools. Fixes #341
a0b335a8 -
Christoph Reiter authored1460c2d1
-
Christoph Reiter authored
CI: add two jobs building a project using g-i with meson and autotools Closes #341 See merge request GNOME/gobject-introspection!223
e7c17469 -
Christoph Reiter authored89c81712
-
Jonne Haß authored435668d7
-
Rico Tzschichholz authorede3e0f7dc
-
Alexander Kanavin authored
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>
56ba5656 -
Emmanuele Bassi authored
gir: add a dependency for g-ir-compiler for building .girs See merge request GNOME/gobject-introspection!228
a03d61a3 -
Chun-wei Fan authored
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.
266886b6 -
Christoph Reiter authored
meson.build: Fix generating pkg-config files See merge request GNOME/gobject-introspection!229
b07bc837 -
Rico Tzschichholz authoredbc8d3bc2
-
Mathieu Duponchelle authored
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
d7504419 -
Mathieu Duponchelle authored
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.
b8c92fdd -
Christoph Reiter authored
[Win32] Fix gi-dump-types.c to build on Windows See merge request GNOME/gobject-introspection!218
9f9d8cef -
Mathieu Duponchelle authored
giscanner: parse block comments for members and fields Closes #348 See merge request GNOME/gobject-introspection!230
46d32c59 -
Mathieu Duponchelle authored
Add the notion of standalone doc sections. See merge request GNOME/gobject-introspection!226
6da80b31 -
Mathieu Duponchelle authored
Add missing nullable annotations to GObjectInfo See merge request GNOME/gobject-introspection!225
666df5c7 -
Rico Tzschichholz authored13642229
-
Philip Chimento authored
This is a trap that C APIs can fall into, so it should be mentioned on the "Writing Bindable APIs" page.
30a7b207 -
Rico Tzschichholz authoreda567106d
-
Mathieu Duponchelle authored
website: Add section about property/method name conflicts See merge request GNOME/gobject-introspection!232
9e329e9b -
Rico Tzschichholz authoredbf349e6f
-
Chun-wei Fan authored
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.
b0ffd96e -
Chun-wei Fan authored
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.
ef428e88 -
Rico Tzschichholz authoredbc53f2d0
-
Mathieu Duponchelle authored
giscanner: Add support for using clang-cl See merge request GNOME/gobject-introspection!234
25dcd89a -
James Westman authored
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.
de6512b3 -
Mathieu Duponchelle authored
giscanner: Fix section matching for documentation Closes #350 See merge request GNOME/gobject-introspection!237
8b0a7f4c -
Christoph Reiter authored629c1096
-
Christoph Reiter authored5c14352c
-
Simon McVittie authoredfaab8d66
This diff is collapsed.
This diff is collapsed.