Commit Graph

15 Commits

Author SHA1 Message Date
John Ericson
c2ded0a667 Make test suite work with cross-related options
Because of skepticism I received in #224, I made this PR which keeps the
testsuite and CI improvements but doesn't add any new build options. I
hope this would be less controversial:

 - no new knobs
 - tests for those using existing build options
 - CI tests `build_introspection_data = false`
2021-05-23 12:56:21 -04:00
Christoph Reiter
06c8219cee meson: also build gi-dump-types on Windows 2020-05-19 19:39:34 +02:00
Xavier Claessens
74ff43c47f Revert "Revert "Meson: Fix build when glib is built as subproject""
This reverts commit 42b7d634a9a7500dcc71651f71844148fc200be3.
2020-04-24 15:05:03 -04:00
Emmanuele Bassi
3d39d61e3d Revert "Meson: Fix build when glib is built as subproject"
This reverts commit ec00edd941953626ac027810f747847f68a71000.

The nightly run time does not have Meson 0.54.
2020-04-24 11:52:45 +01:00
Xavier Claessens
75a1bb1e13 Meson: Fix build when glib is built as subproject 2020-04-22 21:15:45 -04:00
Tom Schoonjans
590421cf14 build: use proper dylib versioning on macOS 2019-09-10 12:49:04 +01:00
Christoph Reiter
8958f167bf meson: don't pass "install" to configure_file() unless really needed
In our case it was never needed because it defaults to true if install_dir is set,
which it always is for all calls.

This avoids a warning when running with newer meson where it complains that install
is only available with 0.50+.

Fixes #298
2019-07-26 18:18:23 +00:00
Chun-wei Fan
1a19f05a0e build: Force-include msvc_recommended_pragmas.h on Visual Studio
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.
2019-04-30 16:07:39 +08:00
Tomasz Miąsko
b12b08df2f Cleanup strict-prototypes warnings 2018-12-20 17:34:38 +01:00
Christoph Reiter
13ba457c22 meson: add default compiler warning flags and enable -Werror on CI
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.
2018-12-18 21:39:33 +00:00
Emmanuele Bassi
cb1d599495 meson: Use copy instead of an empty configuration
The configure_file target has grown a `copy` argument to avoid using an
empty configuration_data object since Meson 0.47.
2018-12-18 12:32:53 +00:00
Christoph Reiter
487e670b1f girepository: Add version macros and functions. Fixes #200
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.
2018-12-16 12:51:58 +01:00
Nirbheek Chauhan
c01bc6ef0e g-ir-scanner: Don't require SRCDIR and BUILDDIR env vars
When building with Meson, we cannot set environment variables while
running custom targets and our builddir layout is different from
Autotools anyway.

Now g-ir-scanner and friends can autodetect when they're being run
uninstalled by Meson and will find _giscanner.so and the giscanner
python files in the build directory. This is very similar to what
gdbus-codegen uses in glib/gio.

Same for girepository/gdump.c.
2018-03-10 19:05:19 +05:30
Nirbheek Chauhan
3a78885133 meson: Use glib_dep and configinc for girepository
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.
2018-03-10 19:05:19 +05:30
Patrick Griffis
4c8c1a53b8 Initial work on meson port 2018-03-10 19:05:19 +05:30