waifu: add versioning, starting from 1.0.0

This commit is contained in:
Alibek Omarov 2019-10-18 03:26:49 +03:00
parent 89e657c97d
commit c6fcf1321f
3 changed files with 16 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
TOOLS="msvs,clang_compilation_database,color_msvc" TOOLS="msvs,clang_compilation_database,color_msvc"
PRELUDE=$'\tsys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), \'scripts\', \'waifulib\'))' PRELUDE=$'\tContext.WAIFUVERSION=\'1.0.0\'\n\tsys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), \'scripts\', \'waifulib\'))'
# a set of relatively stable tools # a set of relatively stable tools
# TODO: make it possible to override this list # TODO: make it possible to override this list

View File

@ -0,0 +1,14 @@
#! /usr/bin/env python
# encoding: utf-8
# a1batross, 2019
from waflib import Context
def options(opt):
pass
def configure(conf):
conf.msg('Waifu version', Context.WAIFUVERSION)
def build(bld):
pass

View File

@ -2,7 +2,7 @@
# encoding: utf-8 # encoding: utf-8
# a1batross, 2019 # a1batross, 2019
TESTS = 'subdirs gitversion conan msdev filter_cflags' TESTS = 'waifuversion subdirs gitversion conan msdev filter_cflags'
def options(opt): def options(opt):
opt.add_subproject(TESTS) opt.add_subproject(TESTS)