summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* version bumpgnome-3-32Christoph Reiter2019-06-152-2/+2
|
* release1.60.2Christoph Reiter2019-06-151-0/+13
|
* Update glib annotations (2.60.4)Christoph Reiter2019-06-151-0/+12
|
* meson: set a default cairo dll name for the MSVC buildChristoph Reiter2019-06-151-1/+5
| | | | | | | | The cairo MSVC build produces a cairo-gobject.dll unlike the libcairo-gobject-2.dll with autotools. While one can pass the right DLL name through the cairo_libname option, having a better default can't hurt.
* build: Force-include msvc_recommended_pragmas.h on Visual StudioChun-wei Fan2019-05-037-58/+94
| | | | | | | | | | By doing so, we essentially cover the various compiler flags that we want to use for non-Visual Studio builds to check for warnings that might cause real concern. This also skips the checks for the various GCC-isque CFlag checks that are scattered in the various build files on Visual Studio builds, since they are essentially meaningless on Visual Studio builds.
* giscanner/scannerlexer.l: Include io.h on WindowsChun-wei Fan2019-05-031-0/+2
| | | | | | | | This is to compensate the for the lack of unistd.h on Visual Studio builds, and to avoid the compiler warning about the implicit declaration of access() as a result. This is to also prepare for the next commit when we force-include msvc_recommended_pragmas.h from GLib on Visual Studio builds.
* MSVC.README.rst: Update VS 2008/x64 build notesChun-wei Fan2019-05-031-3/+4
| | | | | | | It appears that tests/repository/gitypelibtest.c needs to be added to the list of files that we must change the optimization flag from /O2 to /O1 in order that the Visual Studio 2008 x64 compiler does not hang, due to compiler optimization issues.
* gi-test: Fix gir file testsChun-wei Fan2019-05-031-1/+1
| | | | | | | | | | | | | | | | | | | Meson unfortunately does not normalize the paths for us, so we couldn't just rely on it to give us the correct target name without the full target path when the path separator is not '/' (such as on Visual Studio builds, where the path separator is '\\' (with escape character). This means that, that on Visual Studio builds, targetname would be: D:\\gi.build\\tests\\scanner\\Typedefs-1.0.gir instead of: Typedefs-1.0.gir Since we have the targetbase variable which actually has the correct info we need, use that to deduce the correct reference .gir file to compare to.
* ci: work around mingw python detection issueChristoph Reiter2019-05-031-0/+1
| | | | | | Some recent MSYS2 update made autotools no longer detect python3. I don't have to time to debug atm, so force the interpreter with the PYTHON env var for now.
* scanner: Fix error on Windows in case source files are on different drivesChristoph Reiter2019-04-212-1/+16
| | | | | | | | | os.path.commonpath() raises ValueError if the paths given to it are on different drives. Handle that case by giving up and add a test. Reported here: https://github.com/msys2/MINGW-packages/pull/5258#issuecomment-485230864
* meson: fix default cairo DLL name on WindowsChristoph Reiter2019-04-201-1/+1
| | | | host_machine.system() returns "windows" on Windows
* giscanner: Allow fields which are callbacksPhilip Chimento2019-04-081-1/+1
| | | | This is apparently used in Gee-0.8 and Folks-0.6.
* docwriter: Fix Exception message attributePhilip Chimento2019-04-081-1/+1
| | | | | This may have been a leftover from Python 2. Exception('message') does not automatically set a message attribute on the exception object.
* version bumpChristoph Reiter2019-04-072-2/+2
|
* release1.60.1Christoph Reiter2019-04-071-0/+10
|
* Update glib annotations (glib-2-60)Christoph Reiter2019-04-071-5/+5
|
* meson: always pass --quiet to g-ir-scannerChristoph Reiter2019-04-074-0/+16
| | | | Less noisy build
* shlibs: fall back to basename on macOS for relative paths. Fixes #222Christoph Reiter2019-04-072-12/+44
| | | | | | | | | | | | | | | | | | | On macOS we ideally want to write the final absolute path of the library into the gir and typelib. Up until now we inferred the install path from the .la file in case we used libtool and through otool in case we weren't using libtool hoping that the install_name was matching the install path. meson currently sets the install_name of libraries to "@rpath/foo.dylib" and adds rpaths to the executables in the build dir. Only during install does it change the install_name to the absolute target path in all places. Since we get called during build time we only get the @rpath from otool, which then makes things fail at runtime since the executables don't have the matching rpath set. To make this somewhat work just fall back to the basename for relative paths, so we dlopen "foo.dylib" and depend on things being in /usr/local/lib or DYLD_FALLBACK_LIBRARY_PATH including the lib path (see man dlopen)
* docs: include '--c-include' in g-ir-scanner man page. Fixes #275Christoph Reiter2019-04-072-0/+8
|
* tests: Fix compatibility with Python 3.5Tomasz Miąsko2019-03-151-2/+2
| | | | | | | | Use call_count to verify the number of calls. This replaces assert_called_once used previously, which is only available since Python 3.6. Fixes issue #274.
* version bumpChristoph Reiter2019-03-102-2/+2
|
* release1.60.0Christoph Reiter2019-03-103-3/+13
|
* Update glib annotations (glib-2-60)Christoph Reiter2019-03-081-1/+1
| | | | This pulls in an annotation fix from glib!711
* version bumpChristoph Reiter2019-03-042-2/+2
|
* release1.59.5Christoph Reiter2019-03-041-0/+8
|
* Update glib annotationsChristoph Reiter2019-03-043-76/+32
|
* gir: skip glib-enumtypes.h for GObject-2.0. See #267Christoph Reiter2019-03-042-2/+2
| | | | | | | | | The newly added GTypes in glib!481 result in g-i generating an enum type in GLib-2.0 and a GType based one in GObject-2.0. This makes problems for the dlang bindings (see #267) so skip them for now. Ideally we should include it in GLib-2.0 like we do with glib-types.h.
* ccompiler: restore customize_compiler() setup for macOS. See #268Christoph Reiter2019-03-021-0/+7
| | | | | | | | | The original customize_compiler() calls into _osx_support.customize_compiler() the first time it is used and I didn't copy it in !118 because it is private API. Issue #268 points out that the macOS build is broken now so I guess that was important in some way. Make sure the setup code is run by calling the original customize_compiler() with a dummy compiler instance.
* website: Add link to C/typelib ABI cross-validatorTomasz Miąsko2019-02-131-0/+1
|
* gir: Include C header in cairo gir fileTomasz Miąsko2019-02-131-0/+1
|
* version bumpChristoph Reiter2019-02-042-2/+2
|
* release1.59.4Christoph Reiter2019-02-041-0/+14
|
* Fix a possible use-after-free.Elliott Sales de Andrade2019-02-021-1/+1
| | | | | | If g_mapped_file_new fails, then `version` will be freed, but it was already added to the hash table. This means there could be a use-after-free while doing a lookup on the hash table the next time.
* Fix possible leak of transitive dependency name.Elliott Sales de Andrade2019-02-021-1/+2
| | | | | | If a transitive dependency appears twice, the original pointer will be removed from the hash table. Since these names were created by g_strsplit, they need to be freed, or they will leak.
* Update glib annotationsChristoph Reiter2019-02-012-24/+409
|
* repository: Fix annotation for g_irepository_get_object_gtype_interfaces()Rico Tzschichholz2019-01-161-2/+2
| | | | Introduced by 9826d952358c8330d72ecba062f489fbdc31bbd1
* Revert "Restore original meaning of disguised attribute."Christoph Reiter2019-01-166-8/+28
| | | | | | This reverts commit f606183a010fbec4382acb728882cc0eddbaf7f7. See https://gitlab.gnome.org/GNOME/gobject-introspection/merge_requests/9#note_409979
* maintransformer: Don't warn on (optional) annotations on (inout)Guido Günther2019-01-132-7/+8
| | | | This makes the scanner consistent with the docs.
* autotools: don't pass all the libregress cflags to the scanner. Fixes #226Christoph Reiter2019-01-121-1/+4
| | | | | | | | | | | | They contain things like -fvisibility=hidden which, in case of building with CFLAGS="-flto -O2" LDFLAGS="-Wl,--as-needed -flto", results in the linker throwing out unused symbols and not linking the dumper against libregress. This results in errors like: Invalid GType function: 'regress_test_enum_get_type' Failed to find symbol 'regress_test_enum_get_type' Fix this by only passing the required CFLAGS to the scanner instead.
* Restore original meaning of disguised attribute.Tomasz Miąsko2019-01-106-28/+8
| | | | | | | | | | | | | | | | > Certain types like GIConv and GdkAtom are pointers internally but don't > look like pointers when referenced. They have the form. > > typedef struct _X *X; > > Parse these as structures/records but mark them in the gir with a 'disguised' > attribute so that we know that they need special handling. Additionally, stop relaying on disguised attribute when deciding whether to render a page. Check number of fields instead, so as to avoid introducing large regression in the docs. Fixes #101.
* message: handle fatal errors even if warnings are disabled. Fixes #229Christoph Reiter2019-01-101-1/+1
|
* maintransformer: when the namespace is empty use error() instead of fatal()Christoph Reiter2019-01-101-1/+1
| | | | | | | | | | | network-manager is calling things like this during configure: g-ir-scanner --namespace=test --library=c /dev/null --output /dev/null to test if the scanner is working. This results in a fatal error, but beause of #229 was ignored. Do keep this working after we fix #229 downgrade this to a simple recoverable error message. An empty namespace doesn't prevent the scanner from creating a .gir file so this should be fine.
* message: simplify handling of error levelsChristoph Reiter2019-01-106-21/+16
| | | | | | | | Instead of allowing each error level to be enabled just enable all of them through the enable_warnings() method. This matches what the code is currently doing (minus that one helper script) and simplifies things. Also remove the error count, it's not used.
* repository: g_irepository_get_object_gtype_interfacesColin Walters2019-01-093-0/+107
| | | | | | | | | | | Bindings in some cases need to look up information from a GType dynamically. Support that better by supplying a cache for this information. (Rebased and versioning / gtk-doc stuff added by Philip Chimento.) Closes #38. See gjs#55.
* maintransformer: parse deprecation annotations for section blocks. Fixes #213Christoph Reiter2019-01-094-4/+76
| | | | | | | | | | The scanner matches gtk-doc sections which match the lower case type name to the type and uses that for the type documentation. The only problem is it only takes the docs and none of the other annotations like deprecation info etc. This changes things to also parse the annotations in that case and adds some tests while at it.
* Clean shebangs out of non-executable scripts and drop exec perm from ↵Dominique Leuenberger2019-01-095-4/+0
| | | | xmlwriter.py
* tests: Add functions using flat struct arraysTomasz Miąsko2019-01-0825-0/+1091
| | | | | | | | | | | | | | Relatively common in practice are: * output with transfer full, which is already covered by `regress_test_array_struct_out`, * input with transfer none, covered by a new `regress_test_array_struct_in_none` Other variants are quite esoteric, but it still might be useful to include them so that bindings can verify that they are handled gracefully, e.g., by reporting an error instead of crashing. Issue #90
* version bumpChristoph Reiter2019-01-082-2/+2
|
* release1.59.3Christoph Reiter2019-01-081-0/+19
|
* Update glib annotationsChristoph Reiter2019-01-081-2/+16
|