Commit 42db8292 authored by mikf's avatar mikf

added version that hawc2 can read

parent db6e4dd4
Pipeline #7265 failed with stage
in 15 seconds

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28010.2041
MinimumVisualStudioVersion = 10.0.40219.1
Project("{6989167D-11E4-40FE-8C1A-2192A86A7E90}") = "dtu_we_controller", "dtu_we_controller\dtu_we_controller.vfproj", "{8DC2311E-C2DB-46DC-82FC-3671E2174EFE}"
EndProject
Project("{6989167D-11E4-40FE-8C1A-2192A86A7E90}") = "dtu_we_controller_bladed", "dtu_we_controller_bladed\dtu_we_controller_bladed.vfproj", "{1C41A2C0-84C9-4DA1-A681-12B475CB23C9}"
......@@ -11,19 +13,32 @@ EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8DC2311E-C2DB-46DC-82FC-3671E2174EFE}.Debug|Win32.ActiveCfg = Debug|Win32
{8DC2311E-C2DB-46DC-82FC-3671E2174EFE}.Debug|Win32.Build.0 = Debug|Win32
{8DC2311E-C2DB-46DC-82FC-3671E2174EFE}.Debug|x64.ActiveCfg = Debug|x64
{8DC2311E-C2DB-46DC-82FC-3671E2174EFE}.Debug|x64.Build.0 = Debug|x64
{8DC2311E-C2DB-46DC-82FC-3671E2174EFE}.Release|Win32.ActiveCfg = Release|Win32
{8DC2311E-C2DB-46DC-82FC-3671E2174EFE}.Release|Win32.Build.0 = Release|Win32
{8DC2311E-C2DB-46DC-82FC-3671E2174EFE}.Release|x64.ActiveCfg = Release|x64
{8DC2311E-C2DB-46DC-82FC-3671E2174EFE}.Release|x64.Build.0 = Release|x64
{1C41A2C0-84C9-4DA1-A681-12B475CB23C9}.Debug|Win32.ActiveCfg = Debug|Win32
{1C41A2C0-84C9-4DA1-A681-12B475CB23C9}.Debug|Win32.Build.0 = Debug|Win32
{1C41A2C0-84C9-4DA1-A681-12B475CB23C9}.Debug|x64.ActiveCfg = Debug|x64
{1C41A2C0-84C9-4DA1-A681-12B475CB23C9}.Debug|x64.Build.0 = Debug|x64
{1C41A2C0-84C9-4DA1-A681-12B475CB23C9}.Release|Win32.ActiveCfg = Release|Win32
{1C41A2C0-84C9-4DA1-A681-12B475CB23C9}.Release|Win32.Build.0 = Release|Win32
{1C41A2C0-84C9-4DA1-A681-12B475CB23C9}.Release|x64.ActiveCfg = Release|x64
{1C41A2C0-84C9-4DA1-A681-12B475CB23C9}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {5B7D83A7-40F0-46E7-B59C-7C541BE6AD61}
EndGlobalSection
EndGlobal
MODULE BuildInfo
IMPLICIT NONE
!
type tbuildinfo
character*255 :: git_tag = ""
character*255 :: builder = ""
character*255 :: computer_name = ""
character*255 :: build_time = ""
character*255 :: build_date = ""
end type
!
CONTAINS
!
SUBROUTINE BuildInfo_initialise(b)
type (tbuildinfo) :: b
!
include 'version.inc'
END SUBROUTINE
!
SUBROUTINE BuildInfo_echo(b,fin)
type (tbuildinfo) :: b
integer, optional :: fin
integer :: fid
!
if (present(fin)) then
fid = fin
else
fid = 6 ! use stdout if not specified in input
endif
!
WRITE(fid,*) "***********************************************************************"
WRITE(fid,*) "* Build information for HAWC2MB.exe (GIT)"
!DEC$ IF DEFINED(_WIN32)
!DEC$ IF DEFINED(_M_X64)
WRITE(fid,*) "* WINDOWS 64-bit"
!DEC$ ELSE
WRITE(fid,*) "* WINDOWS 32-bit"
!DEC$ ENDIF
!DEC$ ENDIF
!DEC$ IF DEFINED(_DEBUG)
WRITE(fid,*) "* DEBUG version"
!DEC$ ENDIF
!DEC$ IF DEFINED(CLUSTER)
WRITE(fid,*) "* CLUSTER version"
!DEC$ ENDIF
WRITE(fid,*) "***********************************************************************"
WRITE(fid,*) "* GIT-TAG = ", trim(b%git_tag)
WRITE(fid,*) "* BUILDER = ", trim(b%builder)
WRITE(fid,*) "* COMPUTER_NAME = ", trim(b%computer_name)
WRITE(fid,*) "* BUILD_TIME = ", trim(b%build_time)
WRITE(fid,*) "* BUILD_DATE = ", trim(b%build_date)
WRITE(fid,*) "***********************************************************************"
!
END SUBROUTINE
!
END MODULE
<?xml version="1.0" encoding="UTF-8"?>
<VisualStudioProject ProjectType="typeDynamicLibrary" ProjectCreator="Intel Fortran" Keyword="Dll" Version="11.0" ProjectIdGuid="{8DC2311E-C2DB-46DC-82FC-3671E2174EFE}">
<Platforms>
<Platform Name="Win32"/></Platforms>
<Platform Name="Win32"/>
<Platform Name="x64"/></Platforms>
<Configurations>
<Configuration Name="Debug|Win32" OutputDirectory="./../$(ConfigurationName)" ConfigurationType="typeDynamicLibrary">
<Configuration Name="Debug|Win32" OutputDirectory="$(PlatformName)\$(ConfigurationName)" IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" ConfigurationType="typeDynamicLibrary">
<Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" DebugInformationFormat="debugEnabled" Optimization="optimizeDisabled" WarnDeclarations="true" WarnUnusedVariables="true" WarnUncalled="true" WarnInterfaces="true" Traceback="true" BoundsCheck="true" RuntimeLibrary="rtMultiThreadedDebugDLL"/>
<Tool Name="VFLinkerTool" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" GenerateDebugInformation="true" SubSystem="subSystemWindows" LinkDLL="true"/>
<Tool Name="VFResourceCompilerTool"/>
<Tool Name="VFMidlTool" SuppressStartupBanner="true"/>
<Tool Name="VFCustomBuildTool"/>
<Tool Name="VFPreLinkEventTool"/>
<Tool Name="VFPreBuildEventTool"/>
<Tool Name="VFPostBuildEventTool"/>
<Tool Name="VFPreBuildEventTool" CommandLine="version.bat"/>
<Tool Name="VFPostBuildEventTool" CommandLine="del &quot;$(ProjectDir)$(OutDir)\version.res&quot;"/>
<Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration>
<Configuration Name="Release|Win32" OutputDirectory="..\$(ConfigurationName)" DeleteExtensionsOnClean="*.cod;*__genmod.*;*.obj;*.mod;*.pdb;*.asm;*.lst;*.map;*.dyn;*.dpi;*.tmp;*.log;*.ilk;*.exe;*.lib;$(TargetPath);*.htm" ConfigurationType="typeDynamicLibrary">
<Configuration Name="Release|Win32" OutputDirectory="$(PlatformName)\$(ConfigurationName)" IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" DeleteExtensionsOnClean="*.cod;*__genmod.*;*.obj;*.mod;*.pdb;*.asm;*.lst;*.map;*.dyn;*.dpi;*.tmp;*.log;*.ilk;*.exe;*.lib;$(TargetPath);*.htm" ConfigurationType="typeDynamicLibrary">
<Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" WarnDeclarations="true" WarnUnusedVariables="true" WarnUncalled="true"/>
<Tool Name="VFLinkerTool" SuppressStartupBanner="true" ManifestFile="$(IntDir).intermediate.manifest" SubSystem="subSystemWindows" LinkDLL="true" AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib"/>
<Tool Name="VFResourceCompilerTool"/>
<Tool Name="VFMidlTool" SuppressStartupBanner="true"/>
<Tool Name="VFCustomBuildTool"/>
<Tool Name="VFPreLinkEventTool"/>
<Tool Name="VFPreBuildEventTool" CommandLine="call $(SolutionDir)get_git_version.bat" Description="Extracting version info from git repository"/>
<Tool Name="VFPostBuildEventTool"/>
<Tool Name="VFPreBuildEventTool" CommandLine="version.bat" Description="Extracting version info from git repository"/>
<Tool Name="VFPostBuildEventTool" CommandLine="del &quot;$(ProjectDir)$(OutDir)\version.res&quot;"/>
<Tool Name="VFManifestTool" SuppressStartupBanner="true" ResourceFile="$(IntDir).embed.manifest.res"/></Configuration>
<Configuration Name="Debug|x64" TargetName="$(ProjectName)_64" ConfigurationType="typeDynamicLibrary">
<Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" DebugInformationFormat="debugEnabled" Optimization="optimizeDisabled" WarnDeclarations="true" WarnUnusedVariables="true" WarnUncalled="true" WarnInterfaces="true" Traceback="true" BoundsCheck="true" RuntimeLibrary="rtMultiThreadedDebugDLL"/>
<Tool Name="VFLinkerTool" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" GenerateDebugInformation="true" SubSystem="subSystemWindows" LinkDLL="true"/>
<Tool Name="VFResourceCompilerTool"/>
<Tool Name="VFMidlTool" SuppressStartupBanner="true" TargetEnvironment="midlTargetAMD64"/>
<Tool Name="VFCustomBuildTool"/>
<Tool Name="VFPreLinkEventTool"/>
<Tool Name="VFPreBuildEventTool" CommandLine="version.bat"/>
<Tool Name="VFPostBuildEventTool" CommandLine="del &quot;$(ProjectDir)$(OutDir)\version.res&quot;"/>
<Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration>
<Configuration Name="Release|x64" TargetName="$(ProjectName)_64" DeleteExtensionsOnClean="*.cod;*__genmod.*;*.obj;*.mod;*.pdb;*.asm;*.lst;*.map;*.dyn;*.dpi;*.tmp;*.log;*.ilk;*.exe;*.lib;$(TargetPath);*.htm" ConfigurationType="typeDynamicLibrary">
<Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" WarnDeclarations="true" WarnUnusedVariables="true" WarnUncalled="true"/>
<Tool Name="VFLinkerTool" SuppressStartupBanner="true" ManifestFile="$(IntDir).intermediate.manifest" SubSystem="subSystemWindows" LinkDLL="true" AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib"/>
<Tool Name="VFResourceCompilerTool"/>
<Tool Name="VFMidlTool" SuppressStartupBanner="true" TargetEnvironment="midlTargetAMD64"/>
<Tool Name="VFCustomBuildTool"/>
<Tool Name="VFPreLinkEventTool"/>
<Tool Name="VFPreBuildEventTool" CommandLine="version.bat" Description="Extracting version info from git repository"/>
<Tool Name="VFPostBuildEventTool" CommandLine="del &quot;$(ProjectDir)$(OutDir)\version.res&quot;"/>
<Tool Name="VFManifestTool" SuppressStartupBanner="true" ResourceFile="$(IntDir).embed.manifest.res"/></Configuration></Configurations>
<Files>
<Filter Name="Header Files" Filter="fi;fd"/>
<Filter Name="Resource Files" Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"/>
<Filter Name="Resource Files" Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
<File RelativePath=".\version.rc"/></Filter>
<Filter Name="Source Files" Filter="f90;for;f;fpp;ftn;def;odl;idl">
<File RelativePath=".\BuildInfo.f90"/>
<File RelativePath=".\dtu_we_controller.f90"/>
<File RelativePath=".\dtu_we_controller_fcns.f90"/>
<File RelativePath=".\misc_mod.f90"/>
......
@echo off
pushd %~dp0
for /f %%i in ('git describe --tags --dirty --always') do set GIT_ID=%%i
for /f %%i in ('git tag') do set GIT_VERSION=%%i
set psign=%%
echo b%psign%git_tag = "%GIT_ID%" > version.inc
echo b%psign%builder = "%USERNAME%" >> version.inc
echo b%psign%computer_name= "%COMPUTERNAME%" >> version.inc
echo b%psign%build_time = "%TIME%" >> version.inc
echo b%psign%build_date = "%DATE%" >> version.inc
REM
set S=#define GIT_ID "%GIT_ID%"
echo %S% > git_version.h
set GIT_VERSION=%GIT_VERSION: =%
echo %GIT_ID%
echo %GIT_VERSION%
IF not "%GIT_ID%"=="%GIT_VERSION%" (
set GIT_VERSION=%GIT_VERSION%,-1
)
set S=#define GIT_VERSION %GIT_VERSION:.=,%
echo %S% >> git_version.h
type version.inc
echo ----------------------
type git_version.h
popd
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by version.rc
//
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
// Microsoft Visual C++ generated resource script.
//
#include "version.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "winres.h"
#include "winver.h"
#include "git_version.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION GIT_VERSION
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x0L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040604b0"
BEGIN
VALUE "CompanyName", "DTU Wind Energy"
VALUE "FileDescription", "Basic DTU Controller"
VALUE "InternalName", "dtu_we_controller"
VALUE "LegalCopyright", "DTU Wind Energy"
VALUE "OriginalFilename", "dtu_we_controller.dll"
VALUE "ProductName", "Basic DTU Controller"
VALUE "FileVersion", GIT_ID
VALUE "ProductVersion", GIT_ID
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x406, 1200
END
END
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED
......@@ -28,5 +28,17 @@ contains
!DEC$ END IF
return
end subroutine write_textversion
!***********************************************************************
subroutine version(s)
use buildinfo
implicit none
!DEC$ ATTRIBUTES DLLEXPORT, ALIAS:'version' :: version
!DEC$ ATTRIBUTES STDCALL :: version
!DEC$ ATTRIBUTES REFERENCE:: s
character*255 :: s
type (tbuildinfo) :: binfo
call buildInfo_initialise(binfo)
s = binfo%git_tag
end subroutine
!***********************************************************************
END MODULE write_version_mod
MODULE BuildInfo
IMPLICIT NONE
!
type tbuildinfo
character*255 :: git_tag = ""
character*255 :: builder = ""
character*255 :: computer_name = ""
character*255 :: build_time = ""
character*255 :: build_date = ""
end type
!
CONTAINS
!
SUBROUTINE BuildInfo_initialise(b)
type (tbuildinfo) :: b
!
include 'version.inc'
END SUBROUTINE
!
SUBROUTINE BuildInfo_echo(b,fin)
type (tbuildinfo) :: b
integer, optional :: fin
integer :: fid
!
if (present(fin)) then
fid = fin
else
fid = 6 ! use stdout if not specified in input
endif
!
WRITE(fid,*) "***********************************************************************"
WRITE(fid,*) "* Build information for HAWC2MB.exe (GIT)"
!DEC$ IF DEFINED(_WIN32)
!DEC$ IF DEFINED(_M_X64)
WRITE(fid,*) "* WINDOWS 64-bit"
!DEC$ ELSE
WRITE(fid,*) "* WINDOWS 32-bit"
!DEC$ ENDIF
!DEC$ ENDIF
!DEC$ IF DEFINED(_DEBUG)
WRITE(fid,*) "* DEBUG version"
!DEC$ ENDIF
!DEC$ IF DEFINED(CLUSTER)
WRITE(fid,*) "* CLUSTER version"
!DEC$ ENDIF
WRITE(fid,*) "***********************************************************************"
WRITE(fid,*) "* GIT-TAG = ", trim(b%git_tag)
WRITE(fid,*) "* BUILDER = ", trim(b%builder)
WRITE(fid,*) "* COMPUTER_NAME = ", trim(b%computer_name)
WRITE(fid,*) "* BUILD_TIME = ", trim(b%build_time)
WRITE(fid,*) "* BUILD_DATE = ", trim(b%build_date)
WRITE(fid,*) "***********************************************************************"
!
END SUBROUTINE
!
END MODULE
<?xml version="1.0" encoding="UTF-8"?>
<VisualStudioProject ProjectType="typeDynamicLibrary" ProjectCreator="Intel Fortran" Keyword="Dll" Version="11.0" ProjectIdGuid="{1C41A2C0-84C9-4DA1-A681-12B475CB23C9}">
<Platforms>
<Platform Name="Win32"/></Platforms>
<Platform Name="Win32"/>
<Platform Name="x64"/></Platforms>
<Configurations>
<Configuration Name="Debug|Win32" OutputDirectory="./../$(ConfigurationName)" ConfigurationType="typeDynamicLibrary">
<Configuration Name="Debug|Win32" OutputDirectory="$(PlatformName)\$(ConfigurationName)" IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" ConfigurationType="typeDynamicLibrary">
<Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" DebugInformationFormat="debugEnabled" Optimization="optimizeDisabled" WarnInterfaces="true" Traceback="true" BoundsCheck="true" RuntimeLibrary="rtMultiThreadedDebugDLL"/>
<Tool Name="VFLinkerTool" LinkIncremental="linkIncrementalYes" SuppressStartupBanner="true" GenerateDebugInformation="true" SubSystem="subSystemWindows" LinkDLL="true"/>
<Tool Name="VFResourceCompilerTool"/>
<Tool Name="VFMidlTool" SuppressStartupBanner="true"/>
<Tool Name="VFCustomBuildTool"/>
<Tool Name="VFPreLinkEventTool"/>
<Tool Name="VFPreBuildEventTool"/>
<Tool Name="VFPostBuildEventTool"/>
<Tool Name="VFPreBuildEventTool" CommandLine="version.bat"/>
<Tool Name="VFPostBuildEventTool" CommandLine="del &quot;$(ProjectDir)$(OutDir)\version.res&quot;"/>
<Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration>
<Configuration Name="Release|Win32" OutputDirectory="..\$(ConfigurationName)" ConfigurationType="typeDynamicLibrary">
<Configuration Name="Release|Win32" OutputDirectory="$(PlatformName)\$(ConfigurationName)" IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" ConfigurationType="typeDynamicLibrary">
<Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true"/>
<Tool Name="VFLinkerTool" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" ManifestFile="$(IntDir).intermediate.manifest" SubSystem="subSystemWindows" LinkDLL="true"/>
<Tool Name="VFResourceCompilerTool"/>
<Tool Name="VFMidlTool" SuppressStartupBanner="true"/>
<Tool Name="VFCustomBuildTool"/>
<Tool Name="VFPreLinkEventTool"/>
<Tool Name="VFPreBuildEventTool"/>
<Tool Name="VFPostBuildEventTool"/>
<Tool Name="VFPreBuildEventTool" CommandLine="version.bat"/>
<Tool Name="VFPostBuildEventTool" CommandLine="del &quot;$(ProjectDir)$(OutDir)\version.res&quot;"/>
<Tool Name="VFManifestTool" SuppressStartupBanner="true" ResourceFile="$(IntDir).embed.manifest.res"/></Configuration>
<Configuration Name="Debug|x64" TargetName="$(ProjectName)_64" ConfigurationType="typeDynamicLibrary">
<Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" DebugInformationFormat="debugEnabled" Optimization="optimizeDisabled" WarnInterfaces="true" Traceback="true" BoundsCheck="true" RuntimeLibrary="rtMultiThreadedDebugDLL"/>
<Tool Name="VFLinkerTool" LinkIncremental="linkIncrementalYes" SuppressStartupBanner="true" GenerateDebugInformation="true" SubSystem="subSystemWindows" LinkDLL="true"/>
<Tool Name="VFResourceCompilerTool"/>
<Tool Name="VFMidlTool" SuppressStartupBanner="true" TargetEnvironment="midlTargetAMD64"/>
<Tool Name="VFCustomBuildTool"/>
<Tool Name="VFPreLinkEventTool"/>
<Tool Name="VFPreBuildEventTool" CommandLine="version.bat"/>
<Tool Name="VFPostBuildEventTool" CommandLine="del &quot;$(ProjectDir)$(OutDir)\version.res&quot;"/>
<Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration>
<Configuration Name="Release|x64" TargetName="$(ProjectName)_64" ConfigurationType="typeDynamicLibrary">
<Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true"/>
<Tool Name="VFLinkerTool" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" ManifestFile="$(IntDir).intermediate.manifest" SubSystem="subSystemWindows" LinkDLL="true"/>
<Tool Name="VFResourceCompilerTool"/>
<Tool Name="VFMidlTool" SuppressStartupBanner="true" TargetEnvironment="midlTargetAMD64"/>
<Tool Name="VFCustomBuildTool"/>
<Tool Name="VFPreLinkEventTool"/>
<Tool Name="VFPreBuildEventTool" CommandLine="version.bat"/>
<Tool Name="VFPostBuildEventTool" CommandLine="del &quot;$(ProjectDir)$(OutDir)\version.res&quot;"/>
<Tool Name="VFManifestTool" SuppressStartupBanner="true" ResourceFile="$(IntDir).embed.manifest.res"/></Configuration></Configurations>
<Files>
<Filter Name="Header Files" Filter="fi;fd"/>
<Filter Name="Resource Files" Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"/>
<Filter Name="Resource Files" Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
<File RelativePath=".\version.rc"/></Filter>
<Filter Name="Source Files" Filter="f90;for;f;fpp;ftn;def;odl;idl">
<File RelativePath=".\BuildInfo.f90"/>
<File RelativePath=".\dtu_we_controller_bladed.f90"/></Filter></Files>
<Globals/></VisualStudioProject>
@echo off
pushd %~dp0
for /f %%i in ('git describe --tags --dirty --always') do set GIT_ID=%%i
for /f %%i in ('git tag') do set GIT_VERSION=%%i
set psign=%%
echo b%psign%git_tag = "%GIT_ID%" > version.inc
echo b%psign%builder = "%USERNAME%" >> version.inc
echo b%psign%computer_name= "%COMPUTERNAME%" >> version.inc
echo b%psign%build_time = "%TIME%" >> version.inc
echo b%psign%build_date = "%DATE%" >> version.inc
REM
set S=#define GIT_ID "%GIT_ID%"
echo %S% > git_version.h
set GIT_VERSION=%GIT_VERSION: =%
echo %GIT_ID%
echo %GIT_VERSION%
IF not "%GIT_ID%"=="%GIT_VERSION%" (
set GIT_VERSION=%GIT_VERSION%,-1
)
set S=#define GIT_VERSION %GIT_VERSION:.=,%
echo %S% >> git_version.h
type version.inc
echo ----------------------
type git_version.h
popd
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by version.rc
//
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
// Microsoft Visual C++ generated resource script.
//
#include "version.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "winres.h"
#include "winver.h"
#include "git_version.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION GIT_VERSION
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x0L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040604b0"
BEGIN
VALUE "CompanyName", "DTU Wind Energy"
VALUE "FileDescription", "Basic DTU Controller"
VALUE "InternalName", "dtu_we_controller"
VALUE "LegalCopyright", "DTU Wind Energy"
VALUE "OriginalFilename", "dtu_we_controller.dll"
VALUE "ProductName", "Basic DTU Controller"
VALUE "FileVersion", GIT_ID
VALUE "ProductVersion", GIT_ID
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x406, 1200
END
END
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment