示例#1
0
文件: prefix.py 项目: i-v-s/cget
 def __init__(self, config, verbose=False):
     self.config = config
     self.prefix = os.path.abspath('install-' + config['activeConfig'])
     self.verbose = verbose
     self.build_path_var = os.path.abspath('build-' + config['activeConfig'])
     self.cmd = util.Commander(paths=[self.get_path('bin')], env=self.get_env(), verbose=self.verbose)
     self.toolchain = self.write_cmake()
     self.generator = None
示例#2
0
 def __init__(self, prefix, verbose=False, build_path=None):
     self.prefix = prefix
     self.verbose = verbose
     self.build_path_var = build_path
     self.cmd = util.Commander(paths=[self.get_path('bin')],
                               env=self.get_env(),
                               verbose=self.verbose)
     self.toolchain = self.write_cmake()
示例#3
0
 def __init__(self, prefix, verbose=False, build_path=None):
     self.prefix = os.path.abspath(prefix or 'cget')
     self.verbose = verbose
     self.build_path_var = build_path
     self.cmd = util.Commander(paths=[self.get_path('bin')], env=self.get_env(), verbose=self.verbose)
     self.toolchain = self.write_cmake()
     with open(self.toolchain, "rb") as toolchain_file:
         self.toolchain_hash = hashlib.sha1(toolchain_file.read()).hexdigest()
         self.system_id = "%s-%s-%s" % (distro.id(), distro.version(), platform.architecture())
         self.log("system: %s" % self.system_id)