mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-24 21:01:59 +00:00
build script: handle universal binary build in pkg-config installation
This commit is contained in:
parent
2d534e7872
commit
c8475d6dfe
1 changed files with 4 additions and 1 deletions
5
build.py
5
build.py
|
@ -1295,8 +1295,11 @@ class PkgConfigTarget(ConfigureMakeDependencyTarget):
|
|||
return os.path.exists(builder.source_path + 'pkg-config.1')
|
||||
|
||||
def post_build(self, builder: 'Builder'):
|
||||
bin_path = self.prefix + '/bin/'
|
||||
os.makedirs(bin_path, exist_ok=True)
|
||||
|
||||
src_path = builder.build_path + 'pkg-config'
|
||||
dst_path = builder.deps_path + self.name + os.sep + 'bin' + os.sep + 'pkg-config.exe'
|
||||
dst_path = bin_path + 'pkg-config.exe'
|
||||
shutil.copy(src_path, dst_path)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue