Skip to content

Commit

Permalink
Merge pull request #120 from pygobject/meson-dont-link-libpython
Browse files Browse the repository at this point in the history
meson: Don't link against libpython on non-Windows systems
  • Loading branch information
lazka authored Sep 7, 2018
2 parents 754069b + 9f09c90 commit 1f9f0a4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cairo/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,15 @@ install_headers(
)
install_headers([header_file], subdir: 'pycairo')

# https://github.com/mesonbuild/meson/issues/4117
if host_machine.system() == 'windows'
python_ext_dep = python_dep
else
python_ext_dep = python_dep.partial_dependency(compile_args: true)
endif

pyext = python.extension_module('_cairo', sources,
dependencies : [python_dep, cairo_dep],
dependencies : [python_ext_dep, cairo_dep],
install: true,
subdir : 'cairo',
c_args: pyext_c_args + main_c_args,
Expand Down

0 comments on commit 1f9f0a4

Please sign in to comment.