waf: added ap_version_append_int()

used for date defines
This commit is contained in:
Andrew Tridgell 2018-01-05 18:26:06 +11:00
parent b8e246f347
commit 9869b98da3

View File

@ -234,6 +234,10 @@ _versions = []
def ap_version_append_str(ctx, k, v):
ctx.env['AP_VERSION_ITEMS'] += [(k, '"{}"'.format(os.environ.get(k, v)))]
@conf
def ap_version_append_int(ctx, k, v):
ctx.env['AP_VERSION_ITEMS'] += [(k,v)]
@conf
def write_version_header(ctx, tgt):
with open(tgt, 'w') as f: