mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
support versioning
This commit is contained in:
parent
ad6737a90e
commit
c57b78374f
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -12,6 +12,7 @@ TAGS
|
|||
iar/Debug
|
||||
iar/Release
|
||||
iar/settings
|
||||
iar/githash.h
|
||||
*.dep
|
||||
*.ewd
|
||||
*.ewt
|
||||
|
|
@ -217,7 +217,6 @@
|
|||
<name>CCDefines</name>
|
||||
<state>ARM_MATH_CM0</state>
|
||||
<state>M_PI=3.14159265358979323846</state>
|
||||
<state>VERSION="test"</state>
|
||||
</option>
|
||||
<option>
|
||||
<name>CCPreprocFile</name>
|
||||
|
|
@ -334,7 +333,7 @@
|
|||
</option>
|
||||
<option>
|
||||
<name>PreInclude</name>
|
||||
<state></state>
|
||||
<state>$PROJ_DIR$\githash.h</state>
|
||||
</option>
|
||||
<option>
|
||||
<name>CompilerMisraOverride</name>
|
||||
|
|
@ -1264,7 +1263,6 @@
|
|||
<state>NDEBUG</state>
|
||||
<state>ARM_MATH_CM0</state>
|
||||
<state>M_PI=3.14159265358979323846</state>
|
||||
<state>VERSION="test"</state>
|
||||
</option>
|
||||
<option>
|
||||
<name>CCPreprocFile</name>
|
||||
|
|
@ -1381,7 +1379,7 @@
|
|||
</option>
|
||||
<option>
|
||||
<name>PreInclude</name>
|
||||
<state></state>
|
||||
<state>$PROJ_DIR$\githash.h</state>
|
||||
</option>
|
||||
<option>
|
||||
<name>CompilerMisraOverride</name>
|
||||
|
|
@ -1437,7 +1435,7 @@
|
|||
<option>
|
||||
<name>CCOptStrategy</name>
|
||||
<version>0</version>
|
||||
<state>0</state>
|
||||
<state>2</state>
|
||||
</option>
|
||||
<option>
|
||||
<name>CCOptLevelSlave</name>
|
||||
|
|
@ -1500,7 +1498,7 @@
|
|||
<option>
|
||||
<name>CCOptStrategySlave</name>
|
||||
<version>0</version>
|
||||
<state>0</state>
|
||||
<state>2</state>
|
||||
</option>
|
||||
<option>
|
||||
<name>CCGuardCalls</name>
|
||||
|
|
@ -2344,6 +2342,9 @@
|
|||
<file>
|
||||
<name>$PROJ_DIR$\..\fft.h</name>
|
||||
</file>
|
||||
<file>
|
||||
<name>$PROJ_DIR$\githash.h</name>
|
||||
</file>
|
||||
<file>
|
||||
<name>$PROJ_DIR$\..\halconf.h</name>
|
||||
</file>
|
||||
|
|
|
|||
8
iar/githash_get.bat
Normal file
8
iar/githash_get.bat
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
git rev-parse --short HEAD > githash.h
|
||||
set /p GITHASH=<githash.h
|
||||
|
||||
echo #ifdef NDEBUG>githash.h
|
||||
echo #define VERSION "%GITHASH%-release">>githash.h
|
||||
echo #else>>githash.h
|
||||
echo #define VERSION "%GITHASH%-debug">>githash.h
|
||||
echo #endif>>githash.h
|
||||
Loading…
Reference in a new issue