Merge pull request #972 from asuessenbach/AppVeyor

Adjustments in AppVeyor build.
This commit is contained in:
Andreas Süßenbach 2021-06-01 08:11:02 +02:00 committed by GitHub
commit bb04965a74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 121 additions and 98 deletions

View File

@ -70,6 +70,7 @@ build_script:
-DSAMPLES_BUILD_WITH_LOCAL_VULKAN_HPP=ON -DSAMPLES_BUILD_WITH_LOCAL_VULKAN_HPP=ON
-DTESTS_BUILD_ONLY_DYNAMIC=ON -DTESTS_BUILD_ONLY_DYNAMIC=ON
-DTESTS_BUILD_WITH_LOCAL_VULKAN_HPP=ON -DTESTS_BUILD_WITH_LOCAL_VULKAN_HPP=ON
-DVULKAN_HPP_RUN_GENERATOR=ON
-DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DCMAKE_BUILD_TYPE=%BUILD_TYPE%
-DCMAKE_CXX_STANDARD=%CXX_STANDARD% -DCMAKE_CXX_STANDARD=%CXX_STANDARD%
- cmake --build . --config %CONFIGURATION% - cmake --build . --config %BUILD_TYPE%

View File

@ -59,7 +59,7 @@ endif()
if (NOT DEFINED CMAKE_CXX_STANDARD) if (NOT DEFINED CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD 11)
endif() endif()
set(CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)
message("CMAKE_CXX_STANDARD = <${CMAKE_CXX_STANDARD}>") message("CMAKE_CXX_STANDARD = <${CMAKE_CXX_STANDARD}>")

View File

@ -2518,8 +2518,12 @@ bool VulkanHppGenerator::appendCommandVoid2Return( std::string & s
void VulkanHppGenerator::appendDestroyCommand( std::string & str, void VulkanHppGenerator::appendDestroyCommand( std::string & str,
std::string const & name, std::string const & name,
CommandData const & commandData, CommandData const & commandData
std::string const & handleName ) const #if !defined( NDEBUG )
,
std::string const & handleName
#endif
) const
{ {
// special handling for destroy functions, filter out alias functions // special handling for destroy functions, filter out alias functions
std::string commandName = determineCommandName( name, commandData.params[0].type.type, m_tags ); std::string commandName = determineCommandName( name, commandData.params[0].type.type, m_tags );
@ -3178,7 +3182,14 @@ void VulkanHppGenerator::appendHandle( std::string & str, std::pair<std::string,
commands += "\n"; commands += "\n";
appendCommand( commands, commandIt->first, commandIt->second, 1, false ); appendCommand( commands, commandIt->first, commandIt->second, 1, false );
appendDestroyCommand( commands, commandIt->first, commandIt->second, handleData.first ); appendDestroyCommand( commands,
commandIt->first,
commandIt->second
#if !defined( NDEBUG )
,
handleData.first
#endif
);
} }
} }
} }
@ -3201,7 +3212,14 @@ void VulkanHppGenerator::appendHandle( std::string & str, std::pair<std::string,
determineCommandName( commandIt->first, commandIt->second.params[0].type.type, m_tags ); determineCommandName( commandIt->first, commandIt->second.params[0].type.type, m_tags );
commands += "\n"; commands += "\n";
appendCommand( commands, commandIt->first, commandIt->second, 1, false ); appendCommand( commands, commandIt->first, commandIt->second, 1, false );
appendDestroyCommand( commands, commandIt->first, commandIt->second, handleData.first ); appendDestroyCommand( commands,
commandIt->first,
commandIt->second
#if !defined( NDEBUG )
,
handleData.first
#endif
);
} }
commands += leave; commands += leave;
} }

View File

@ -495,8 +495,12 @@ private:
std::vector<size_t> const & returnParamIndices ) const; std::vector<size_t> const & returnParamIndices ) const;
void appendDestroyCommand( std::string & str, void appendDestroyCommand( std::string & str,
std::string const & name, std::string const & name,
CommandData const & commandData, CommandData const & commandData
std::string const & handleName ) const; #if !defined( NDEBUG )
,
std::string const & handleName
#endif
) const;
void appendDispatchLoaderDynamicCommand( std::string & str, void appendDispatchLoaderDynamicCommand( std::string & str,
std::string & emptyFunctions, std::string & emptyFunctions,
std::string & deviceFunctions, std::string & deviceFunctions,