• Tomasz Mi膮sko's avatar
    Factor out pkg-config functionality to a separate module. · b80fff2e
    Tomasz Mi膮sko authored
    Functional changes:
    
    * Consistently check that return code from pkg-config is zero.
    * Use shell word splitting rules to process pkg-config output to match
      behaviour obtained by running `cc program.cc $(pkg-config --cflags ...)`.
      Fixes issue #171 .
    * Use user preferred encoding to process output from pkg-config on
      Python 3. Python 2 behaviour defaults to using ascii encoding as before.
    
    edit creiter: still ignore pkg-config errors by default for now as we
    depend on it when glib is a subproject.
    b80fff2e
pkgconfig.py 2 KB