Fixes + more setup, added more directories to clean script.

This commit is contained in:
Edward R. Gonzalez 2023-07-24 18:56:15 -04:00
parent b5cad6e8a1
commit 4a87a42db0
6 changed files with 31 additions and 12 deletions

View File

@ -5,7 +5,7 @@
using namespace gen;
void gen_main()
int gen_main()
{

View File

@ -7,7 +7,7 @@ includes = include_directories(
sources = [ 'gen.bootstrap.cpp' ]
if get_option('buildtype').sartswith('debug')
if get_option('buildtype').startswith('debug')
add_project_arguments('-DBuild_Debug', language : ['c', 'cpp'])

View File

@ -15,7 +15,7 @@ foreach ( $arg in $args )
$path_root = git rev-parse --show-toplevel
$path_project = Join-Path $path_root project
$path_project_build = Join-Path $path_bootstrap build
$path_project_build = Join-Path $path_project build
write-host "`n`nBuilding gencpp bootstrap`n"

View File

@ -1,13 +1,21 @@
$path_root = git rev-parse --show-toplevel
$path_build = Join-Path $path_root build
$path_test = Join-Path $path_root test
$path_gen = Join-Path $path_test gen
$path_test_build = Join-Path $path_test build
$path_gen_build = Join-Path $path_gen build
$path_root = git rev-parse --show-toplevel
$path_project = Join-Path $path_root project
$path_singleheader = Join-Path $path_root singleheader
$path_test = Join-Path $path_root test
$path_gen = Join-Path $path_test gen
$path_gen_build = Join-Path $path_gen build
$path_test_build = Join-Path $path_test build
$path_project_build = Join-Path $path_project build
$path_singleheader_build = Join-Path $path_singleheader build
if ( Test-Path $path_build )
if ( Test-Path $path_project_build)
{
Remove-Item $path_build -Recurse
Remove-Item $path_project_build -Recurse
}
if ( Test-Path $path_singleheader_build)
{
Remove-Item $path_singleheader_build -Recurse
}
if ( Test-Path $path_test_build )

View File

@ -0,0 +1,11 @@
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
#define GEN_ENFORCE_STRONG_CODE_TYPES
#define GEN_EXPOSE_BACKEND
#include "gen.cpp"
using namespace gen;
int gen_main()
{
return 0;
}

View File

@ -7,7 +7,7 @@ includes = include_directories(
sources = [ 'gen.singleheader.cpp' ]
if get_option('buildtype').sartswith('debug')
if get_option('buildtype').startswith('debug')
add_project_arguments('-DBuild_Debug', language : ['c', 'cpp'])