aboutsummaryrefslogtreecommitdiffhomepage
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/wscript b/wscript
index a5566d782f..68c06fb627 100644
--- a/wscript
+++ b/wscript
@@ -911,6 +911,12 @@ def configure(ctx):
ctx.store_dependencies_lists()
+def __write_version__(ctx):
+ import subprocess
+ subprocess.call(["sh", "./version.sh",
+ "--versionh=" + ctx.bldnode.abspath() + "/version.h"],
+ cwd=ctx.srcnode.abspath())
+
def build(ctx):
if ctx.options.variant not in ctx.all_envs:
from waflib import Errors
@@ -918,6 +924,7 @@ def build(ctx):
'The project was not configured: run "waf --variant={0} configure" first!'
.format(ctx.options.variant))
ctx.unpack_dependencies_lists()
+ __write_version__(ctx)
ctx.load('wscript_build')
def init(ctx):