summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Devoogdt <thomas.devoogdt@gmail.com>2024-07-18 10:29:19 +0000
committerThomas Devoogdt <thomas.devoogdt@gmail.com>2024-07-18 10:29:19 +0000
commit5dc457fa92cc1e207f15bbd7a06c0fadea032b1f (patch)
treea6d89cf96823a420b858afb9ed27f295f72153b4
parent5338d3f50d21461fad2f5f3086707cf56a4d13ec (diff)
meson: only require cpp for windows
Allow to compile meson without c++ toolchain. Fixes: - https://lore.kernel.org/buildroot/20240717200926.1a7db2a1@windsurf/ Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
-rw-r--r--meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 7ef12fe97..fa8745cc1 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,4 @@
-project('cairo', 'c', 'cpp',
+project('cairo', 'c',
meson_version: '>= 1.3.0',
version: run_command(find_program('version.py'), check: true).stdout().strip(),
default_options: ['c_std=gnu11,c11',
@@ -483,6 +483,8 @@ if host_machine.system() == 'darwin' and not get_option('quartz').disabled()
endif
if host_machine.system() == 'windows'
+ add_languages('cpp')
+
add_project_arguments('-DWIN32_LEAN_AND_MEAN', '-DNOMINMAX', language: ['c', 'cpp'])
win32_extra_deps = [