summaryrefslogtreecommitdiffstats
path: root/test cases/unit/45 native dep pkgconfig var/cross_pkgconfig.py
blob: f0d89ee3e184ed8438477ed8e21a13f34a57efb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python3

import os
import sys
import subprocess

environ = os.environ.copy()
environ['PKG_CONFIG_LIBDIR'] = os.path.join(
    os.path.dirname(os.path.realpath(__file__)), 'cross_pkgconfig')

sys.exit(
    subprocess.run(['pkg-config'] + sys.argv[1:], env=environ).returncode)