| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This is what https://wiki.gnome.org/Initiatives/GnomeGoals/MesonPorting suggests.
|
|
|
|
| |
To match what autotools produces
|
| |
|
| |
|
|
|
|
|
| |
The cairo dependency fallback code is copied from pygobject. I assume that
will work for msvc users (cairo is disabled by default anyway)
|
|
|
|
|
|
|
|
| |
This enables various compiler warnings project wide and disables the triggered
ones for each library/executable. This should give us roughly the same behaviour
as with autotools.
Tested with gcc8 and clang7.
|
|
|
|
|
| |
We should probably require a newer stable release, but this should be
enough to remove the warnings.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This adds the following macros and functions: GI_MAJOR_VERSION, GI_MICRO_VERSION,
GI_MINOR_VERSION, GI_CHECK_VERSION, gi_get_major_version,gi_get_micro_version,
gi_get_minor_version.
Since we share a prefix with glib we have to namespace these by using the gi_
prefix. g_gi would also work but we already export symbols with gi_ like
gi_cclosure_marshal_generic(), gi_type_tag_get_ffi_type() and
gi_type_info_extract_ffi_return_value(), so let's not add another naming scheme.
|
|
|
|
|
|
| |
glib did the same thing this cycle, see
https://gitlab.gnome.org/GNOME/glib/merge_requests/196
for details
|
|
|
|
|
|
|
|
|
|
| |
This was the de facto behavior, and is already relied upon. If
gir-dir-prefix is specified, the gir dir will rely on the more generic
${prefix} location.
Also, avoid expanding the path unless necessary in the autotools build.
https://gitlab.gnome.org/GNOME/gobject-introspection/issues/236
|
|
|
|
|
|
|
| |
Add option 'gir-dir-prefix' for meson to make the installation path of
.gir files could be configured which has been done for autoconf.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This allows us to build with Python 2 and run tests with it.
This requires the new "python" meson module which was added in 0.46.0 so
bump the required meson version (glib needs a newer one anyway).
Also fixes a small test error under Python 2.
|
| |
|
|
|
|
|
|
|
| |
pygobject uses sources from gi's tests folder to build
libraries to test against, with autotools it worked by
obtaining gidatadir from pkg-config, but this is explicitly
prevented by meson's sandbox when gi is built as a subproject.
|
|
|
|
|
| |
We have already bumped the version of G-I, but GLib hasn't bumped its
version, yet.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
As reported by guruDanny76[1], this was causing meson to always clone
the glib subproject and fruitlessly try to find gio-unix-2.0, so just
don't even try.
1. https://github.com/wingtk/gvsbuild/issues/22#issuecomment-348139054
|
|
|
|
|
| |
gir generation now works in-tree, so we do not need to bootstrap g-i
by installing to a prefix first.
|
|
|
|
|
|
| |
We must use include_directories: to pass that so that it's not overriden
by include paths from internal dependencies which will very commonly
also have their own config.h in one of their include paths.
|
|
|
|
|
|
| |
Use the old-stable (at the time of this commit).
Signed-off-by: Nirbheek Chauhan <nirbheek@centricular.com>
|
|
|
|
|
|
| |
Follow the existing best practices.
Signed-off-by: Nirbheek Chauhan <nirbheek@centricular.com>
|
|
|
|
| |
This needs the latest commit from glib master.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The previous build files had a bunch of problems:
1. It assumed that glib would only be sourced via pkg-config
2. It was using the system gobject-introspection-1.0.pc file while
building GIRepository-1.0.gir
3. It wasn't ignoring the *-autocleanup.h headers properly
Now you can build glib as a subproject and generate girs against the
in-tree sources. This also yields more accurate girs because they
document platform-specific features that are actually enabled in
the glib build we are linking against.
|
| |
|
|
|
|
|
|
| |
glib_dep is what is actually needed to #include <glib.h>, not
gobject_dep. It works incidentally with system gobject/glib but not
when built via subprojects.
|
|
|
|
| |
Also add wrap files in subprojects/
|
|
|
|
| |
This is how the bumping is always done in autotools.
|
|
|
|
|
|
| |
This allows the pkg-config files to be relocated at on Windows by
moving the entire prefix and pkg-config will automatically set the
value of prefix.
|
| |
|
|
|
|
| |
the build of the gir files.
|
| |
|
|
|