mirror of
https://github.com/Ed94/gencpp.git
synced 2024-11-14 04:34:52 -08:00
Ed_
2e5e31ed3b
Mostly just cleanup and renaming of certain stuff (mostly in dependencies). * Changed uw and sw to usize and ssize. * Removed zpl_cast usage throughout dependencies * No longer using GEN_DEF_INLINE & GEN_IMPL_INLINE * header_start.hpp renamed to platform.hpp for depdendencies header.
93 lines
4.9 KiB
PowerShell
93 lines
4.9 KiB
PowerShell
cls
|
|
|
|
$build = Join-Path $PSScriptRoot 'build.ci.ps1'
|
|
|
|
if ( $IsWindows ) {
|
|
& $build release msvc bootstrap singleheader unreal
|
|
}
|
|
else {
|
|
& $build release clang bootstrap singleheader unreal
|
|
}
|
|
|
|
$path_root = git rev-parse --show-toplevel
|
|
$path_docs = Join-Path $path_root docs
|
|
$path_project = Join-Path $path_root project
|
|
$path_project_gen = Join-Path $path_project gen
|
|
$path_singleheader = Join-Path $path_root singleheader
|
|
$path_singleheader_gen = Join-Path $path_singleheader gen
|
|
$path_unreal = Join-Path $path_root unreal_engine
|
|
$path_unreal_gen = Join-Path $path_unreal gen
|
|
$path_release = Join-Path $path_root release
|
|
$path_release_content = Join-Path $path_release content
|
|
|
|
if ( -not(Test-Path $path_release) ) {
|
|
New-Item -ItemType Directory -Path $path_release
|
|
}
|
|
|
|
if ( -not(Test-Path $path_release_content) ) {
|
|
New-Item -ItemType Directory -Path $path_release_content
|
|
}
|
|
|
|
$license = Join-Path $path_root LICENSE
|
|
$readme_root = Join-Path $path_root Readme.md
|
|
$readme_docs = Join-Path $path_docs Readme.md
|
|
$readme_ast_design = Join-Path $path_docs AST_Design.md
|
|
$readme_ast_types = Join-Path $path_docs AST_Types.md
|
|
$readme_parsing = Join-Path $path_docs Parsing.md
|
|
$readme_parser_algo = Join-Path $path_docs Parser_Algo.md
|
|
|
|
Copy-Item $license -Destination (Join-Path $path_release_content "LICENSE")
|
|
Copy-Item $readme_root -Destination (Join-Path $path_release_content "Readme.md")
|
|
Copy-Item $readme_docs -Destination (Join-Path $path_release_content "Readme_Docs.md")
|
|
Copy-Item $readme_ast_design -Destination (Join-Path $path_release_content "AST_Design.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_parser_algo -Destination (Join-Path $path_release_content "Parser_Algo.md")
|
|
|
|
# Singleheader
|
|
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
|
|
Remove-Item -Path $path_release_content\gen.hpp
|
|
|
|
# Segmented
|
|
Copy-Item -Path $path_project_gen\* -Destination $path_release_content
|
|
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\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
|
|
Copy-Item -Path $path_unreal_gen\* -Destination $path_release_content
|
|
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\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
|
|
|
|
Copy-Item -Path $path_project\gen.hpp -Destination $path_release_content
|
|
Copy-Item -Path $path_project\gen.cpp -Destination $path_release_content
|
|
Copy-Item -Path $path_project\gen.dep.hpp -Destination $path_release_content
|
|
Copy-Item -Path $path_project\gen.dep.cpp -Destination $path_release_content
|
|
Copy-Item -Path $path_project\auxillary\builder.hpp -Destination $path_release_content
|
|
Copy-Item -Path $path_project\auxillary\builder.cpp -Destination $path_release_content
|
|
Copy-Item -Path $path_project\auxillary\scanner.hpp -Destination $path_release_content
|
|
Copy-Item -Path $path_project\auxillary\scanner.cpp -Destination $path_release_content
|
|
Copy-Item -Path $path_project\components\* -Destination $path_release_content\components
|
|
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
|
|
|
|
Remove-Item -Path $path_release_content -Recurse
|