Set the pkg-config for cross-compiling.
This is needed for win32 on fedora. It is better to use a specific pkg-config than setting a PKG_CONFIG_LIBDIR. This avoid other CI (libzim/...) to set a env var specific to win32 build.
This commit is contained in:
parent
82617f6b94
commit
2774967e6d
|
@ -26,8 +26,10 @@ class AndroidPlatformInfo(PlatformInfo):
|
||||||
|
|
||||||
def binaries(self):
|
def binaries(self):
|
||||||
install_path = self.install_path
|
install_path = self.install_path
|
||||||
return {k:pj(install_path, 'bin', v)
|
binaries = {k:pj(install_path, 'bin', v)
|
||||||
for k,v in self.binaries_name.items()}
|
for k,v in self.binaries_name.items()}
|
||||||
|
binaries['PKGCONFIG'] = 'pkg-config'
|
||||||
|
return binaries
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def ndk_builder(self):
|
def ndk_builder(self):
|
||||||
|
|
|
@ -49,8 +49,10 @@ class ArmhfPlatformInfo(PlatformInfo):
|
||||||
('RANLIB', 'ranlib'),
|
('RANLIB', 'ranlib'),
|
||||||
('LD', 'ld'))
|
('LD', 'ld'))
|
||||||
)
|
)
|
||||||
return {k:pj(self.root_path, 'bin', v)
|
binaries = {k:pj(self.root_path, 'bin', v)
|
||||||
for k,v in binaries}
|
for k,v in binaries}
|
||||||
|
binaries['PKGCONFIG'] = 'pkg-config'
|
||||||
|
return binaries
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def exe_wrapper_def(self):
|
def exe_wrapper_def(self):
|
||||||
|
|
|
@ -37,7 +37,8 @@ class I586PlatformInfo(PlatformInfo):
|
||||||
('AR', 'ar'),
|
('AR', 'ar'),
|
||||||
('STRIP', 'strip'),
|
('STRIP', 'strip'),
|
||||||
('RANLIB', 'ranlib'),
|
('RANLIB', 'ranlib'),
|
||||||
('LD', 'ld'))
|
('LD', 'ld'),
|
||||||
|
('PKGCONFIG', 'pkg-config'))
|
||||||
}
|
}
|
||||||
|
|
||||||
def set_env(self, env):
|
def set_env(self, env):
|
||||||
|
|
|
@ -64,6 +64,7 @@ class iOSPlatformInfo(PlatformInfo):
|
||||||
'STRIP': '/usr/bin/strip',
|
'STRIP': '/usr/bin/strip',
|
||||||
'RANLIB': '/usr/bin/ranlib',
|
'RANLIB': '/usr/bin/ranlib',
|
||||||
'LD': '/usr/bin/ld',
|
'LD': '/usr/bin/ld',
|
||||||
|
'PKGCONFIG': 'pkg-config',
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -49,7 +49,8 @@ class Win32PlatformInfo(PlatformInfo):
|
||||||
('AR', 'ar'),
|
('AR', 'ar'),
|
||||||
('STRIP', 'strip'),
|
('STRIP', 'strip'),
|
||||||
('WINDRES', 'windres'),
|
('WINDRES', 'windres'),
|
||||||
('RANLIB', 'ranlib'))
|
('RANLIB', 'ranlib'),
|
||||||
|
('PKGCONFIG', 'pkg-config'))
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[binaries]
|
[binaries]
|
||||||
pkgconfig = 'pkg-config'
|
pkgconfig = '{binaries[PKGCONFIG]}'
|
||||||
c = '{binaries[CC]}'
|
c = '{binaries[CC]}'
|
||||||
ar = '{binaries[AR]}'
|
ar = '{binaries[AR]}'
|
||||||
cpp = '{binaries[CXX]}'
|
cpp = '{binaries[CXX]}'
|
||||||
|
|
Loading…
Reference in New Issue