summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2020-04-11 14:18:06 -0700
committerPhilip Chimento <philip.chimento@gmail.com>2020-04-26 10:21:04 -0700
commit1647f69283eea8f762d3d27f19deac925a83d005 (patch)
tree7d25eab567d6231cad42d850e116ad8401e82ed6
parenta9f45431684e6be3623e272e54d481e4c5d9423d (diff)
downloadgobject-introspection-1647f69283eea8f762d3d27f19deac925a83d005.tar.gz
build: Check Python.h and fail early if not present
Checking the Python dependency doesn't ensure the header is present. That needs to be checked separately.
-rw-r--r--meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 892f9c3c..f66d926e 100644
--- a/meson.build
+++ b/meson.build
@@ -152,6 +152,9 @@ endif
libffi_dep = dependency('libffi',
fallback : ['libffi', 'ffi_dep'])
+# python headers
+cc.check_header('Python.h', dependencies: [python.dependency()], required: true)
+
# cairo
cairo_option = get_option('cairo')
if cc.get_id() == 'msvc'