[gobject-introspection] build: Check Python.h and fail early if not present



commit 1647f69283eea8f762d3d27f19deac925a83d005
Author: Philip Chimento <philip chimento gmail com>
Date:   Sat Apr 11 14:18:06 2020 -0700

    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.

 meson.build | 3 +++
 1 file changed, 3 insertions(+)
---
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'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]