mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 15:53:56 -04:00
waf: added ap_version_append_int()
used for date defines
This commit is contained in:
parent
b8e246f347
commit
9869b98da3
@ -234,6 +234,10 @@ _versions = []
|
|||||||
def ap_version_append_str(ctx, k, v):
|
def ap_version_append_str(ctx, k, v):
|
||||||
ctx.env['AP_VERSION_ITEMS'] += [(k, '"{}"'.format(os.environ.get(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
|
@conf
|
||||||
def write_version_header(ctx, tgt):
|
def write_version_header(ctx, tgt):
|
||||||
with open(tgt, 'w') as f:
|
with open(tgt, 'w') as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user