summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Always pass an encoding to open() using text modeChristoph Reiter2020-11-0713-17/+17
| | | | | | | | 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.
* Merge branch 'fix-no-data' into 'master'Christoph Reiter2020-11-071-1/+1
|\ | | | | | | | | meson.build: exclude girepo_dep if introspection data is disabled See merge request GNOME/gobject-introspection!248
| * meson.build: exclude girepo_dep if introspection data is disabledAlexander Kanavin2020-10-201-1/+1
|/ | | | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
* gir: Update annotations from glib git masterRico Tzschichholz2020-10-203-39/+507
|
* gir: Update annotations from glib 2.66.1Christoph Reiter2020-10-201-8/+8
|
* Merge branch 'monkey_patch_distutils_get_msvcr' into 'master'Nirbheek Chauhan2020-10-151-0/+30
|\ | | | | | | | | monkey patch distutils.cygwinccompiler.get_msvcr See merge request GNOME/gobject-introspection!246
| * monkey patch distutils.cygwinccompiler.get_msvcrjensgoe2020-10-141-0/+30
|/
* Update NEWSChristoph Reiter2020-10-031-0/+9
|
* Merge branch 'revert-section-matching' into 'master'Mathieu Duponchelle2020-09-292-40/+1
|\ | | | | | | | | Revert "giscanner: Fix section matching for documentation" See merge request GNOME/gobject-introspection!241
| * Revert "giscanner: Fix section matching for documentation"Mathieu Duponchelle2020-09-292-40/+1
|/ | | | | | | | | 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
* gicsanner/message.py: Windows: Fix running on different drivesChun-wei Fan2020-09-261-2/+8
| | | | | | | | | 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.
* Merge branch 'wip/smcv/test-more-flags' into 'master'Philip Chimento2020-09-202-0/+78
|\ | | | | | | | | gimarshallingtests: Add more tests for flags See merge request GNOME/gobject-introspection!235
| * girmarshalling tests: Diagnose GValue not holding enum/flagswip/smcv/test-more-flagsSimon McVittie2020-09-191-0/+4
| | | | | | | | | | | | | | | | 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>
| * gimarshallingtests: Add more tests for flagsSimon McVittie2020-09-192-0/+30
| | | | | | | | | | | | | | | | 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>
| * tests: Add a test-case for a vfunc returning flags in different waysSimon McVittie2020-09-192-0/+44
|/ | | | | | | 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>
* gir: Update annotations from glib 2.66.0Christoph Reiter2020-09-171-3/+3
|
* Update NEWS and version bumpChristoph Reiter2020-09-122-1/+24
|
* Merge branch 'fix-350' into 'master'Mathieu Duponchelle2020-09-072-1/+40
|\ | | | | | | | | | | | | giscanner: Fix section matching for documentation Closes #350 See merge request GNOME/gobject-introspection!237
| * giscanner: Fix section matching for documentationJames Westman2020-09-072-1/+40
|/ | | | | | | | | | | | | 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.
* Merge branch 'clang-cl' into 'master'Mathieu Duponchelle2020-09-053-6/+39
|\ | | | | | | | | giscanner: Add support for using clang-cl See merge request GNOME/gobject-introspection!234
| * MSVC.README.rst: Mention about the clang-cl supportChun-wei Fan2020-08-251-0/+9
| | | | | | | | | | 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.
| * giscanner: Add support for using clang-clChun-wei Fan2020-08-242-6/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | gir: Update annotations from glib git masterRico Tzschichholz2020-09-022-15/+51
|/
* gir: Update annotations from glib git masterRico Tzschichholz2020-08-232-156/+381
|
* Merge branch 'property-method-name-conflict' into 'master'Mathieu Duponchelle2020-08-081-0/+9
|\ | | | | | | | | website: Add section about property/method name conflicts See merge request GNOME/gobject-introspection!232
| * website: Add section about property/method name conflictsPhilip Chimento2020-08-021-0/+9
| | | | | | | | | | This is a trap that C APIs can fall into, so it should be mentioned on the "Writing Bindable APIs" page.
* | gir: Update annotations from glib git masterRico Tzschichholz2020-08-041-156/+0
|/
* gir: Update annotations from glib git masterRico Tzschichholz2020-08-013-30/+259
|
* Merge branch 'objectinfo_nullable' into 'master'Mathieu Duponchelle2020-07-221-14/+14
|\ | | | | | | | | Add missing nullable annotations to GObjectInfo See merge request GNOME/gobject-introspection!225
| * Add missing nullable annotations to GObjectInfoJonne Haß2020-05-261-14/+14
| |
* | Merge branch 'standalone-doc-sections' into 'master'Mathieu Duponchelle2020-07-2212-28/+124
|\ \ | | | | | | | | | | | | Add the notion of standalone doc sections. See merge request GNOME/gobject-introspection!226
| * | Add the notion of standalone doc sections.Mathieu Duponchelle2020-07-1212-28/+124
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge branch 'sincify-members-and-fields' into 'master'Mathieu Duponchelle2020-07-2211-95/+221
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | giscanner: parse block comments for members and fields Closes #348 See merge request GNOME/gobject-introspection!230
| * | | giscanner: parse block comments for members and fieldsMathieu Duponchelle2020-07-1211-95/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge branch 'patch-1' into 'master'Christoph Reiter2020-07-143-6/+22
|\ \ \ \ | |/ / / |/| | | | | | | | | | | [Win32] Fix gi-dump-types.c to build on Windows See merge request GNOME/gobject-introspection!218
| * | | meson: also build gi-dump-types on WindowsChristoph Reiter2020-05-193-2/+6
| | | |
| * | | Use `_get_oshandle()` and `g_win32_output_stream_new()` instead sinceGisle Vanem2020-05-151-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | `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?
| * | | Obs! Change back to `g_unix_output_stream_new()` for non-Win32.Gisle Vanem2020-05-141-1/+1
| | | |
| * | | [Win32] Fix gi-dump-types.c to build on WindowsGisle Vanem2020-05-141-4/+12
| | | |
* | | | gir: Update annotations from glib git masterRico Tzschichholz2020-06-263-109/+861
| | | |
* | | | Merge branch 'fix-pc-gen' into 'master'Christoph Reiter2020-06-241-2/+9
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | meson.build: Fix generating pkg-config files See merge request GNOME/gobject-introspection!229
| * | | | meson.build: Fix generating pkg-config filesChun-wei Fan2020-06-241-2/+9
|/ / / / | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge branch 'fix-race' into 'master'Emmanuele Bassi2020-06-171-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | gir: add a dependency for g-ir-compiler for building .girs See merge request GNOME/gobject-introspection!228
| * | | | gir: add a dependency for g-ir-compiler for building .girsAlexander Kanavin2020-06-171-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | gir: Update annotations from glib git masterRico Tzschichholz2020-06-073-107/+423
| |/ / |/| |
* | | Merge branch 'ci-build-examples' into 'master'Christoph Reiter2020-05-193-2/+36
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | CI: add two jobs building a project using g-i with meson and autotools Closes #341 See merge request GNOME/gobject-introspection!223
| * | | CI: also build the example using libgirepositoryChristoph Reiter2020-05-191-0/+4
| | | |
| * | | CI: add two jobs building a project using g-i with meson and autotoolsChristoph Reiter2020-05-193-2/+32
|/ / / | | | | | | | | | | | | | | | | | | This tests that after installing the g-i tools a simple project using them can be build with meson and autotools. Fixes #341
* | | meson: fix include dir in .pc filesChristoph Reiter2020-05-191-0/+2
| | | | | | | | | | | | See !207
* | | Merge branch 'pkgconfig' into 'master'Xavier Claessens2020-05-183-85/+32
|\ \ \ | | | | | | | | | | | | | | | | Meson: Use pkgconfig generator See merge request GNOME/gobject-introspection!207