Create VersionInfo.h on Windows

This commit is contained in:
Ian Craggs 2016-05-31 12:59:17 +01:00
parent 00bdf98996
commit 153a398b6b
2 changed files with 5 additions and 7 deletions

View File

@ -1,5 +1,5 @@
#*******************************************************************************
# Copyright (c) 2009, 2015 IBM Corp.
# Copyright (c) 2009, 2016 IBM Corp.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0

View File

@ -1,4 +1,3 @@
<!--*******************************************************************************
Copyright (c) 2012, 2016 IBM Corp.
All rights reserved. This program and the accompanying materials
@ -74,12 +73,11 @@
</target>
<target name="version" depends="init" description="replace tags in the source with the right levels">
<target name="version" depends="init" description="replace tags with the right levels">
<property name="build.level" value="${DSTAMP}${TSTAMP}" />
<replace file="src/MQTTClient.c" token="##MQTTCLIENT_BUILD_TAG##" value="${build.level}" />
<replace file="src/MQTTClient.c" token="##MQTTCLIENT_VERSION_TAG##" value="${release.version}" />
<replace file="src/MQTTAsync.c" token="##MQTTCLIENT_BUILD_TAG##" value="${build.level}" />
<replace file="src/MQTTAsync.c" token="##MQTTCLIENT_VERSION_TAG##" value="${release.version}" />
<copy file="src/VersionInfo.h.in" tofile="src/VersionInfo.h" />
<replace file="src/VersionInfo.h" token="@MQTTCLIENT_BUILD_TAG@" value="${build.level}" />
<replace file="src/MQTTClient.c" token="@MQTTCLIENT_VERSION_TAG@" value="${release.version}" />
</target>
<target name="test" >