Skip to content

Commit

Permalink
waifu: add versioning, starting from 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Oct 18, 2019
1 parent 89e657c commit c6fcf13
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build-waf.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

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
# TODO: make it possible to override this list
Expand Down
14 changes: 14 additions & 0 deletions tests/waifuversion/wscript
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# encoding: utf-8
# a1batross, 2019

TESTS = 'subdirs gitversion conan msdev filter_cflags'
TESTS = 'waifuversion subdirs gitversion conan msdev filter_cflags'

def options(opt):
opt.add_subproject(TESTS)
Expand Down

0 comments on commit c6fcf13

Please sign in to comment.