Revert "gnome: Use --pkg to pass pkg-config cflags to g-ir-scanner"

This reverts commit 3a2e333f00.
pull/1730/merge
Jussi Pakkanen 8 years ago
parent 3a2e333f00
commit cb9344cb8d
  1. 5
      mesonbuild/modules/gnome.py

@ -332,10 +332,7 @@ class GnomeModule(ExtensionModule):
source.held_object.get_subdir())]) source.held_object.get_subdir())])
# This should be any dependency other than an internal one. # This should be any dependency other than an internal one.
elif isinstance(dep, Dependency): elif isinstance(dep, Dependency):
if isinstance(dep, PkgConfigDependency) and use_gir_args: cflags.update(dep.get_compile_args())
cflags.update(["--pkg=%s" % dep.get_name()])
else:
cflags.update(dep.get_compile_args())
for lib in dep.get_link_args(): for lib in dep.get_link_args():
if (os.path.isabs(lib) and if (os.path.isabs(lib) and
# For PkgConfigDependency only: # For PkgConfigDependency only:

Loading…
Cancel
Save