APPNAME = 'dcpomatic'
this_version = subprocess.Popen(shlex.split('git tag -l --points-at HEAD'), stdout=subprocess.PIPE).communicate()[0]
-last_version = subprocess.Popen(shlex.split('git describe --abbrev=0'), stdout=subprocess.PIPE).communicate()[0]
+last_version = subprocess.Popen(shlex.split('git describe --tags --abbrev=0'), stdout=subprocess.PIPE).communicate()[0]
if this_version == '':
VERSION = '%sdevel' % last_version[1:].strip()
else:
- VERSION = this_version[1:].strip()
+VERSION = '2.13.2'
-print 'Version: %s' % VERSION
+print('Version: %s' % VERSION)
def options(opt):
opt.load('compiler_cxx')
def configure(conf):
conf.load('compiler_cxx')
+ conf.load('clang_compilation_database', tooldir=['waf-tools'])
if conf.options.target_windows:
conf.load('winres')