def run(self): utils.info("BEGIN " + self.get_name()) utils.make_tmppath() utils.remove_from_native(CONF) confos = utils.compile_lib(CONF) if confos is not None: utils.copy_to_native(CONF) utils.info("END " + self.get_name())
def run(self): utils.info("BEGIN " + self.get_name()) utils.make_tmppath() utils.remove_from_native(CONF) confos = utils.compile_lib(CONF) if confos is not None: if utils.is_mac(): utils.system_exec([ "install_name_tool -change \"/usr/local/lib/libz.1.so\" \"@loader_path/libz.so\" " + confos["outname"] ], CONF["pathdst"]) utils.copy_to_native(CONF) utils.info("END " + self.get_name())
def run(self): utils.info("BEGIN " + self.get_name()) #PREPARE CONF self._conf["pathsrc"]=".." + os.sep + self._name + os.sep + "src" self._conf["pathdst"]=self.get_path_tmp() + os.sep + self._name osn=None if utils.is_windows(): osn="windows" elif utils.is_linux(): osn="linux" elif utils.is_mac(): osn="mac" if osn is not None: appcnf=self.get_os_config(osn) if appcnf is not None: self._conf[osn]=appcnf if self._b32bit and osn in self._conf: if "linker_flags" not in self._conf[osn]: self._conf[osn]["linker_flags"]="-m32" else: self._conf[osn]["linker_flags"]="-m32 " + self._conf[osn]["linker_flags"] if "cpp_compiler_flags" not in self._conf[osn]: self._conf[osn]["cpp_compiler_flags"]="-m32" else: self._conf[osn]["cpp_compiler_flags"]="-m32 " + self._conf[osn]["cpp_compiler_flags"] #START COMPILE CONF utils.make_tmppath(self.get_path_tmp()) utils.remove_from_native(self.get_path_native(), self._conf) confos=utils.compile_lib(self._conf) if confos is not None: self.before_copy_to_native(osn) utils.copy_to_native(self.get_path_native(),self._conf) utils.info("END " + self.get_name())