mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
Fix issues with pkg-config result not being read out properly always, resulting in gtk-stats not being built
This commit is contained in:
parent
eb341f8a54
commit
3ccc0d4603
@ -4154,7 +4154,7 @@ if (PkgSkip("PANDATOOL")==0):
|
||||
# DIRECTORY: pandatool/src/gtk-stats/
|
||||
#
|
||||
|
||||
if (PkgSkip("PANDATOOL")==0 and (sys.platform.startswith("win") or PkgConfigHavePkg("gtk+-2.0"))):
|
||||
if (PkgSkip("PANDATOOL")==0 and (sys.platform.startswith("win") or PkgSkip("GTK2")==0)):
|
||||
if (sys.platform.startswith("win")):
|
||||
OPTS=['DIR:pandatool/src/win-stats']
|
||||
TargetAdd('pstats_composite1.obj', opts=OPTS, input='winstats_composite1.cxx')
|
||||
|
@ -908,7 +908,8 @@ def PkgConfigHavePkg(pkgname, tool = "pkg-config"):
|
||||
else:
|
||||
return bool(LocateBinary(tool) != None)
|
||||
result = handle.read().strip()
|
||||
if handle.close() != 0:
|
||||
returnval = handle.close()
|
||||
if returnval != None and returnval != 0:
|
||||
return False
|
||||
return bool(len(result) > 0)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user