XMake: Add header guard check

This commit is contained in:
Jérôme Leclercq
2021-10-26 15:52:31 +02:00
parent ed7ab31933
commit b85f6b68ac
4 changed files with 185 additions and 24 deletions

View File

@@ -72,11 +72,11 @@ on_run(function()
assert(headerFile, "failed to open Spir-V header")
headerFile:write([[
// Copyright (C) ]] .. os.date("%Y") .. [[ Jérôme Leclercq
// Copyright (C) ]] .. os.date("%Y") .. [[ Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Shader module"
// For conditions of distribution and use, see copyright notice in Config.hpp"
// For conditions of distribution and use, see copyright notice in Config.hpp
// This file was generated automatically, please do not edit
// this file was automatically generated and should not be edited
#pragma once
@@ -211,12 +211,12 @@ headerFile:write([[
assert(sourceFile, "failed to open Spir-V source")
sourceFile:write([[
// this file was automatically generated and should not be edited
// Copyright (C) ]] .. os.date("%Y") .. [[ Jérôme Leclercq
// Copyright (C) ]] .. os.date("%Y") .. [[ Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Shader module"
// For conditions of distribution and use, see copyright notice in Config.hpp
// this file was automatically generated and should not be edited
#include <Nazara/Shader/SpirvData.hpp>
#include <algorithm>
#include <array>