Forgot that on macOS qmake generates .dylib files

This commit is contained in:
Kovid Goyal 2017-06-26 16:20:53 +05:30
parent 90d18917b5
commit 9768d16334
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -414,6 +414,8 @@ class Build(Command):
self.check_call([self.env.make] + ['-j%d'%(cpu_count or 1)]) self.check_call([self.env.make] + ['-j%d'%(cpu_count or 1)])
finally: finally:
os.chdir(cwd) os.chdir(cwd)
if isosx:
os.rename(self.j(self.d(target), 'libheadless.dylib'), self.j(self.d(target), 'headless.so'))
def build_sip_files(self, ext, src_dir): def build_sip_files(self, ext, src_dir):
from setup.build_environment import pyqt from setup.build_environment import pyqt