mirror of https://github.com/ArduPilot/ardupilot
waf: moved SKETCHBOOK to AP_BUILD_ROOT in ap_version.h
This commit is contained in:
parent
dc95121b15
commit
1d05196b52
|
@ -508,6 +508,7 @@ class Board:
|
||||||
def build(self, bld):
|
def build(self, bld):
|
||||||
bld.ap_version_append_str('GIT_VERSION', bld.git_head_hash(short=True))
|
bld.ap_version_append_str('GIT_VERSION', bld.git_head_hash(short=True))
|
||||||
bld.ap_version_append_int('GIT_VERSION_INT', int("0x" + bld.git_head_hash(short=True), base=16))
|
bld.ap_version_append_int('GIT_VERSION_INT', int("0x" + bld.git_head_hash(short=True), base=16))
|
||||||
|
bld.ap_version_append_str('AP_BUILD_ROOT', bld.srcnode.abspath())
|
||||||
import time
|
import time
|
||||||
ltime = time.localtime()
|
ltime = time.localtime()
|
||||||
if bld.env.build_dates:
|
if bld.env.build_dates:
|
||||||
|
|
6
wscript
6
wscript
|
@ -584,12 +584,6 @@ def configure(cfg):
|
||||||
else:
|
else:
|
||||||
cfg.env.ENABLE_HEADER_CHECKS = False
|
cfg.env.ENABLE_HEADER_CHECKS = False
|
||||||
|
|
||||||
# TODO: Investigate if code could be changed to not depend on the
|
|
||||||
# source absolute path.
|
|
||||||
cfg.env.prepend_value('DEFINES', [
|
|
||||||
'SKETCHBOOK="' + cfg.srcnode.abspath() + '"',
|
|
||||||
])
|
|
||||||
|
|
||||||
# Always use system extensions
|
# Always use system extensions
|
||||||
cfg.define('_GNU_SOURCE', 1)
|
cfg.define('_GNU_SOURCE', 1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue