Esempio n. 1
0
 def gen_library_file(self, output_dir=None):
     '''
     Generates library files (.lib) for the dll's provided by this recipe
     '''
     if output_dir is None:
         output_dir = os.path.join(self.config.prefix,
                                   'lib' + self.config.lib_suffix)
     genlib = GenLib()
     for (libname, dllpaths) in list(self.libraries().items()):
         if len(dllpaths) > 1:
             m.warning(
                 "BUG: Found multiple DLLs for libname {}:\n{}".format(
                     libname, '\n'.join(dllpaths)))
             continue
         if len(dllpaths) == 0:
             m.warning(
                 "Could not create {}.lib, no matching DLLs found".format(
                     libname))
             continue
         try:
             implib = genlib.create(
                 libname, os.path.join(self.config.prefix, dllpaths[0]),
                 self.config.target_arch, output_dir)
             logging.debug('Created %s' % implib)
         except:
             m.warning(
                 "Could not create {}.lib, gendef might be missing".format(
                     libname))
Esempio n. 2
0
 def gen_library_file(self, output_dir=None):
     '''
     Generates library files (.lib) for the dll's provided by this recipe
     '''
     genlib = GenLib()
     for dllpath in self.libraries():
         try:
             implib = genlib.create(os.path.join(self.config.prefix, dllpath),
                     os.path.join(self.config.prefix, 'lib'))
             logging.debug('Created %s' % implib)
         except:
             m.warning("Could not create .lib, gendef might be missing")
Esempio n. 3
0
 def gen_library_file(self, output_dir=None):
     '''
     Generates library files (.lib) for the dll's provided by this recipe
     '''
     genlib = GenLib()
     for dllpath in self.libraries():
         try:
             implib = genlib.create(
                 os.path.join(self.config.prefix, dllpath),
                 os.path.join(self.config.prefix, 'lib'))
             logging.debug('Created %s' % implib)
         except:
             m.warning("Could not create .lib, gendef might be missing")
Esempio n. 4
0
 def gen_library_file(self, output_dir=None):
     '''
     Generates library files (.lib) for the dll's provided by this recipe
     '''
     genlib = GenLib()
     for (libname, dllpaths) in self.libraries().items():
         if len(dllpaths) > 1:
             m.warning("BUG: Found multiple DLLs for libname {}:\n{}".format(libname, '\n'.join(dllpaths)))
         if len(dllpaths) == 0:
             m.warning("Could not create {}.lib, no matching DLLs found".format(libname))
         try:
             implib = genlib.create(libname,
                 os.path.join(self.config.prefix, dllpaths[0]),
                 self.config.target_arch,
                 os.path.join(self.config.prefix, 'lib'))
             logging.debug('Created %s' % implib)
         except:
             m.warning("Could not create {}.lib, gendef might be missing".format(libname))