def generate_version_rules(self): revision, url = blade_util.load_scm(self.build_dir) args = '${out} ${revision} ${url} ${profile} "${compiler}"' self.generate_rule(name='scm', command=self.generate_toolchain_command('scm', suffix=args), description='SCM ${out}') scm = os.path.join(self.build_dir, 'scm.cc') self._add_rule(''' build %s: scm revision = %s url = %s profile = %s compiler = %s ''' % (scm, revision, url, self.options.profile, 'GCC ' + self.gcc_version)) self._add_rule(''' build %s: cxx %s cppflags = -w -O2 cxx_warnings = ''' % (scm + '.o', scm))
def _manifest_scm(build_dir): revision, url = blade_util.load_scm(build_dir) return [ 'SCM-Url: %s' % url, 'SCM-Revision: %s' % revision, ]
def _manifest_scm(build_dir): revision, url = blade_util.load_scm(build_dir) return [ 'SCM-Url: %s' % url, 'SCM-Revision: %s' % revision, ]