summaryrefslogtreecommitdiff
path: root/meson.build
AgeCommit message (Collapse)AuthorFilesLines
2024-01-15meson.build, data/cairomm.pc.in: Update htmlrefpubKjell Ahlstedt1-1/+1
2023-12-11meson.build: Don't fail if warning_level=everythingKjell Ahlstedt1-1/+6
2023-09-271.18.01.18.0Kjell Ahlstedt1-1/+1
2023-07-161.17.11.17.1Kjell Ahlstedt1-1/+2
2023-03-12meson.build: Simplify if-file-exists testKjell Ahlstedt1-11/+3
2023-01-04meson.build: Simplify lookup of python commandKjell Ahlstedt1-7/+1
See libsigcplusplus PR#83
2023-01-04meson.build: Fix the evaluation of is_git_build on WindowsKjell Ahlstedt1-5/+10
See gtkmm#131
2023-01-04Meson build: Don't copy files with configure_file()Kjell Ahlstedt1-2/+3
It's deprecated from Meson 0.64. The replacement, fs.copyfile(), is not useful here. It only copies from the source directory to the build directory.
2022-09-27meson.build: Detect if we build from a git subtreeKjell Ahlstedt1-6/+8
See https://gitlab.gnome.org/GNOME/gtkmm/-/merge_requests/72 (William Roy)
2022-09-22NEWS: Prepare for next cairomm releaseKjell Ahlstedt1-2/+2
and require cairo >= 1.14.0
2022-05-24Meson: Re-organize warnings-related compiler flags for MSVCChun-wei Fan1-6/+22
Add a short description for the warning-related compiler flags for Visual Studio. Also, use the `/wd4267` compiler flag only when building a 64-bit build, since warning C4267 only applies for 64-bit builds.
2022-05-23Meson/MSVC: Compensate for the lack of msvc_recommended_pragmas.hChun-wei Fan1-1/+8
Since cairomm does not hard-depend on GLib, it may be the case that msvc_recommended_pragmas.h is not available during the build. If it is not, disable warnings C4244 and C4101, which are part of the warnings that it disables.
2022-05-19meson.build: Avoid configuration warningsKjell Ahlstedt1-18/+23
2022-02-13meson.build: Specify 'check' option in run_command()Kjell Ahlstedt1-8/+13
The default value will be changed in future Meson releases. Don't use deprecated python3.path() and execute(..., gui_app: ...). Don't distribute .gitlab-ci.yml.
2021-11-10build: Support Visual Studio 2022Chun-wei Fan1-1/+3
Make these builds distinct from the Visual Studio 2019 builds.
2021-08-18meson.build: Check if Perl is required for building documentationKjell Ahlstedt1-2/+11
New versions of mm-common use the Python scripts doc_postprocess.py and doc_install.py instead of the Perl scripts doc-postprocess.pl and doc-install.pl when documentation is built.
2021-05-18Add dependencies to Doxygen tag files in subprojectsKjell Ahlstedt1-1/+3
Doxygen in a main project shall not be called before tag files have been created or updated in subprojects.
2021-05-14Fix build as subproject without building documentationKjell Ahlstedt1-7/+13
* meson.build: If mm-common-get is not found in maintainer-mode with 'required: false', try with 'required: true'. Don't try to use tag_file, if documentation is not built. * docs/reference/meson.build: Don't use variables from modules that don't define doxytagfile. These are subprojects that don't build their documentation.
2021-05-11meson: Reorganize warnings on Visual Studio buildsChun-wei Fan1-1/+1
We can now drop the ignores for warnings C4251, C4273 and C4275 along with C4530, since our code and compiler flags should now make us free of them, since we use /EHsc to build our code and we are clean of classes that we export as a whole that derives from std::xxx classes. Ignore warning C4800, and warning C4127 in the examples, since these warnings are really spurious and safe to ignore as a whole.
2021-05-05Subprojects can use meson.add_dist_script() if meson.version() >= 0.58.0Kjell Ahlstedt1-4/+7
* meson.build: * docs/reference/meson.build: Call add_dist_script() in a subproject, if meson.version() >= 0.58.0.
2021-03-16Meson build: Make it possible to use cairomm as a subprojectKjell Ahlstedt1-1/+15
cairo and sigc++ can be subprojects of cairomm.
2020-09-30Add tools/doc-publish.sh and release-publish.shKjell Ahlstedt1-1/+7
Scripts that simplify releasing new versions of cairomm.
2020-09-291.16.01.16.0Kjell Ahlstedt1-1/+1
2020-09-29Meson build: Fix versioning on macOSKjell Ahlstedt1-1/+6
See https://github.com/libsigcplusplus/libsigcplusplus/pull/65
2020-09-29Require cairo >= 1.12.0Kjell Ahlstedt1-1/+1
Has been a requirement for a long time, but configure.ac and meson.build had not been updated.
2020-08-13tests: Don't include deprecated Boost header filesKjell Ahlstedt1-1/+1
2020-06-25Meson/Visual Studio builds: Include toolset version by defaultChun-wei Fan1-0/+14
This makes the built DLL and .lib's contain the toolset version if the build is carried out using Visual Studio 2017 or later, unless the 'msvc14x-parallel-installable' option is set to be false during configuration. The reasoning behind this change is that there may be subtle problems when, for instance, one tries to link to a Visual Studio 2017-built cairomm with Visual Studio 2019. This is unfortunate as Microsoft did try hard to make interoperating between binaries built with Visual Studio 2017 and 2019 as easy as possible in terms of ABI and API, but unfortunately this may hit the corner cases where this compatibility does not work. As the name suggests, this attempts to make Visual Studio 2017 and 2019 builds share a single set of underlying C DLLs easier, while avoiding possible breakages caused by such subtle differences.
2020-05-05meson: Don't use gendef on Visual StudioChun-wei Fan1-2/+1
Instead, we use the newly-added CAIROMM_API which is defined to be __declspec(dllexport) to export the symbols directly. This will also allow some cleanup in the Meson build files, as we do not need to differentiate how the cairomm library is built on different compilers.
2020-04-29Don't use zero as null pointerKjell Ahlstedt1-1/+2
Turn on the -Wzero-as-null-pointer-constant warning when -Dwarnings=max or fatal. Replace 0 by nullptr where appropriate.
2020-04-29meson: Allow linking to shared Boost::TestChun-wei Fan1-1/+4
This adds an option to the Meson builds so that we can choose to use a shared build of Boost::Test if needed.
2020-04-29tests: Fix building tests with FreeType but no FontConfigChun-wei Fan1-1/+2
Cairo could have been built with FreeType support but has no FontConfig support, so we need to check for that too. Also allow building the tests on Windows even if FontConfig is not found, as a result.
2020-04-25meson: Improve cairomm pkg-config fileChun-wei Fan1-1/+7
We only put Cairo as a required package if Cairo was found via pkg-config, but if Cairo was found manually, we make the pkg-config file link to the cairo library directly (-lcairo).
2020-04-25Meson: Define _USE_MATH_DEFINES on WindowsChun-wei Fan1-0/+5
Visual Studio and some MinGW versions require defining this to use M_PI
2020-04-25meson: Improve Cairo checkChun-wei Fan1-2/+7
The Visual Studio build files for Cairo do not generate pkg-config files for us, so we need to look for the cairo library and the header files. Since we are doing this for Visual Studio builds only, we want to look for both cairo.h and cairo-win32.h.
2020-04-25Add support for building cairomm with MesonKjell Ahlstedt1-0/+284
cairomm can be built with either Autotools or Meson. Fixes #20