mirror of
https://github.com/Ed94/gencpp.git
synced 2024-11-14 04:34:52 -08:00
Need cstdlib for systems calls in generator files. update to package_release.ps1
This commit is contained in:
parent
1417a68757
commit
81a0376c99
@ -20,6 +20,8 @@ constexpr char const* generation_notice =
|
|||||||
"// This file was generated automatially by gencpp's bootstrap.cpp "
|
"// This file was generated automatially by gencpp's bootstrap.cpp "
|
||||||
"(See: https://github.com/Ed94/gencpp)\n\n";
|
"(See: https://github.com/Ed94/gencpp)\n\n";
|
||||||
|
|
||||||
|
#include <cstdlib> // for system()
|
||||||
|
|
||||||
void format_file( char const* path )
|
void format_file( char const* path )
|
||||||
{
|
{
|
||||||
String resolved_path = String::make(GlobalAllocator, to_str(path));
|
String resolved_path = String::make(GlobalAllocator, to_str(path));
|
||||||
|
@ -3,10 +3,10 @@ cls
|
|||||||
$build = Join-Path $PSScriptRoot 'build.ci.ps1'
|
$build = Join-Path $PSScriptRoot 'build.ci.ps1'
|
||||||
|
|
||||||
if ( $IsWindows ) {
|
if ( $IsWindows ) {
|
||||||
& $build release msvc bootstrap singleheader unreal
|
& $build release msvc bootstrap singleheader unreal msvc debug
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
& $build release clang bootstrap singleheader unreal
|
& $build release clang bootstrap singleheader unreal msvc debug
|
||||||
}
|
}
|
||||||
|
|
||||||
$path_root = git rev-parse --show-toplevel
|
$path_root = git rev-parse --show-toplevel
|
||||||
@ -24,9 +24,9 @@ if ( -not(Test-Path $path_release) ) {
|
|||||||
New-Item -ItemType Directory -Path $path_release
|
New-Item -ItemType Directory -Path $path_release
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( -not(Test-Path $path_release_content) ) {
|
function prep-ReleaseContent()
|
||||||
|
{
|
||||||
New-Item -ItemType Directory -Path $path_release_content
|
New-Item -ItemType Directory -Path $path_release_content
|
||||||
}
|
|
||||||
|
|
||||||
$license = Join-Path $path_root LICENSE
|
$license = Join-Path $path_root LICENSE
|
||||||
$readme_root = Join-Path $path_root Readme.md
|
$readme_root = Join-Path $path_root Readme.md
|
||||||
@ -43,50 +43,49 @@ Copy-Item $readme_ast_design -Destination (Join-Path $path_release_content "AST
|
|||||||
Copy-Item $readme_ast_types -Destination (Join-Path $path_release_content "AST_Types.md")
|
Copy-Item $readme_ast_types -Destination (Join-Path $path_release_content "AST_Types.md")
|
||||||
Copy-Item $readme_parsing -Destination (Join-Path $path_release_content "Parsing.md")
|
Copy-Item $readme_parsing -Destination (Join-Path $path_release_content "Parsing.md")
|
||||||
Copy-Item $readme_parser_algo -Destination (Join-Path $path_release_content "Parser_Algo.md")
|
Copy-Item $readme_parser_algo -Destination (Join-Path $path_release_content "Parser_Algo.md")
|
||||||
|
}
|
||||||
|
|
||||||
# Singleheader
|
# Singleheader
|
||||||
|
prep-ReleaseContent
|
||||||
Copy-Item -Path $path_singleheader_gen\gen.hpp -Destination $path_release_content\gen.hpp
|
Copy-Item -Path $path_singleheader_gen\gen.hpp -Destination $path_release_content\gen.hpp
|
||||||
Compress-Archive -Path $path_release_content\* -DestinationPath $path_release\gencpp_singleheader.zip -Force
|
Compress-Archive -Path $path_release_content\* -DestinationPath $path_release\gencpp_singleheader.zip -Force
|
||||||
Remove-Item -Path $path_release_content\gen.hpp
|
Remove-Item -Path $path_release_content -Recurse
|
||||||
|
|
||||||
# Segmented
|
# Segmented
|
||||||
|
prep-ReleaseContent
|
||||||
Copy-Item -Path $path_project_gen\* -Destination $path_release_content
|
Copy-Item -Path $path_project_gen\* -Destination $path_release_content
|
||||||
Compress-Archive -Path $path_release_content\* -DestinationPath $path_release\gencpp_segmented.zip -Force
|
Compress-Archive -Path $path_release_content\* -DestinationPath $path_release\gencpp_segmented.zip -Force
|
||||||
Remove-Item -Path $path_release_content\gen.dep.hpp
|
Remove-Item -Path $path_release_content -Recurse
|
||||||
Remove-Item -Path $path_release_content\gen.dep.cpp
|
|
||||||
Remove-Item -Path $path_release_content\gen.hpp
|
|
||||||
Remove-Item -Path $path_release_content\gen.cpp
|
|
||||||
Remove-Item -Path $path_release_content\gen.builder.hpp
|
|
||||||
Remove-Item -Path $path_release_content\gen.builder.cpp
|
|
||||||
Remove-Item -Path $path_release_content\gen.scanner.hpp
|
|
||||||
Remove-Item -Path $path_release_content\gen.scanner.cpp
|
|
||||||
|
|
||||||
# Unreal
|
# Unreal
|
||||||
|
prep-ReleaseContent
|
||||||
Copy-Item -Path $path_unreal_gen\* -Destination $path_release_content
|
Copy-Item -Path $path_unreal_gen\* -Destination $path_release_content
|
||||||
Compress-Archive -Path $path_release_content\* -DestinationPath $path_release\gencpp_unreal.zip -Force
|
Compress-Archive -Path $path_release_content\* -DestinationPath $path_release\gencpp_unreal.zip -Force
|
||||||
Remove-Item -Path $path_release_content\gen.dep.hpp
|
Remove-Item -Path $path_release_content -Recurse
|
||||||
Remove-Item -Path $path_release_content\gen.dep.cpp
|
|
||||||
Remove-Item -Path $path_release_content\gen.hpp
|
|
||||||
Remove-Item -Path $path_release_content\gen.cpp
|
|
||||||
Remove-Item -Path $path_release_content\gen.builder.hpp
|
|
||||||
Remove-Item -Path $path_release_content\gen.builder.cpp
|
|
||||||
Remove-Item -Path $path_release_content\gen.scanner.hpp
|
|
||||||
Remove-Item -Path $path_release_content\gen.scanner.cpp
|
|
||||||
|
|
||||||
# As Is
|
# As Is
|
||||||
|
|
||||||
Copy-Item -Path $path_project\gen.hpp -Destination $path_release_content
|
prep-ReleaseContent
|
||||||
Copy-Item -Path $path_project\gen.cpp -Destination $path_release_content
|
Copy-Item -Verbose -Path $path_project\gen.hpp -Destination $path_release_content
|
||||||
Copy-Item -Path $path_project\gen.dep.hpp -Destination $path_release_content
|
Copy-Item -Verbose -Path $path_project\gen.cpp -Destination $path_release_content
|
||||||
Copy-Item -Path $path_project\gen.dep.cpp -Destination $path_release_content
|
Copy-Item -Verbose -Path $path_project\gen.dep.hpp -Destination $path_release_content
|
||||||
Copy-Item -Path $path_project\auxillary\builder.hpp -Destination $path_release_content
|
Copy-Item -Verbose -Path $path_project\gen.dep.cpp -Destination $path_release_content
|
||||||
Copy-Item -Path $path_project\auxillary\builder.cpp -Destination $path_release_content
|
Copy-Item -Verbose -Path $path_project\auxillary\builder.hpp -Destination $path_release_content\auxillary
|
||||||
Copy-Item -Path $path_project\auxillary\scanner.hpp -Destination $path_release_content
|
Copy-Item -Verbose -Path $path_project\auxillary\builder.cpp -Destination $path_release_content\auxillary
|
||||||
Copy-Item -Path $path_project\auxillary\scanner.cpp -Destination $path_release_content
|
Copy-Item -Verbose -Path $path_project\auxillary\scanner.hpp -Destination $path_release_content\auxillary
|
||||||
Copy-Item -Path $path_project\components\* -Destination $path_release_content\components
|
Copy-Item -Verbose -Path $path_project\auxillary\scanner.cpp -Destination $path_release_content\auxillary
|
||||||
Copy-Item -Path $path_project\dependencies\* -Destination $path_release_content\dependencies
|
|
||||||
Copy-Item -Path $path_project\enums\* -Destination $path_release_content\dependencies
|
|
||||||
Copy-Item -Path $path_project\helpers\* -Destination $path_release_content\dependencies
|
|
||||||
Compress-Archive -Path $path_release_content\* -DestinationPath $path_release\gencpp_as_is.zip -Force
|
|
||||||
|
|
||||||
|
New-Item -ItemType Directory -Force -Path "$path_release_content\components"
|
||||||
|
New-Item -ItemType Directory -Force -Path "$path_release_content\components\gen"
|
||||||
|
New-Item -ItemType Directory -Force -Path "$path_release_content\dependencies"
|
||||||
|
New-Item -ItemType Directory -Force -Path "$path_release_content\enums"
|
||||||
|
New-Item -ItemType Directory -Force -Path "$path_release_content\helpers"
|
||||||
|
|
||||||
|
Get-ChildItem -Verbose -Path "$path_project\components\*" -Include *.cpp,*.hpp | Copy-Item -Destination "$path_release_content\components"
|
||||||
|
Get-ChildItem -Verbose -Path "$path_project\components\gen\*" -Include *.cpp,*.hpp | Copy-Item -Destination "$path_release_content\components\gen"
|
||||||
|
Get-ChildItem -Verbose -Path "$path_project\dependencies\*" -Include *.cpp,*.hpp | Copy-Item -Destination "$path_release_content\dependencies"
|
||||||
|
Get-ChildItem -Verbose -Path "$path_project\enums\*" -Include *.csv | Copy-Item -Destination "$path_release_content\enums"
|
||||||
|
Get-ChildItem -Verbose -Path "$path_project\helpers\*" -Include *.cpp,*.hpp | Copy-Item -Destination "$path_release_content\helpers"
|
||||||
|
|
||||||
|
Compress-Archive -Path $path_release_content\** -DestinationPath $path_release\gencpp_as_is.zip -Force
|
||||||
Remove-Item -Path $path_release_content -Recurse
|
Remove-Item -Path $path_release_content -Recurse
|
||||||
|
@ -14,6 +14,8 @@ GEN_NS_END
|
|||||||
#include "auxillary/builder.cpp"
|
#include "auxillary/builder.cpp"
|
||||||
#include "auxillary/scanner.hpp"
|
#include "auxillary/scanner.hpp"
|
||||||
|
|
||||||
|
#include <cstdlib> // for system()
|
||||||
|
|
||||||
using namespace gen;
|
using namespace gen;
|
||||||
|
|
||||||
constexpr char const* generation_notice =
|
constexpr char const* generation_notice =
|
||||||
|
@ -14,6 +14,8 @@ GEN_NS_END
|
|||||||
#include "auxillary/builder.cpp"
|
#include "auxillary/builder.cpp"
|
||||||
#include "auxillary/scanner.hpp"
|
#include "auxillary/scanner.hpp"
|
||||||
|
|
||||||
|
#include <cstdlib> // for system()
|
||||||
|
|
||||||
using namespace gen;
|
using namespace gen;
|
||||||
|
|
||||||
constexpr char const* generation_notice =
|
constexpr char const* generation_notice =
|
||||||
|
Loading…
Reference in New Issue
Block a user