mirror of
https://github.com/Ed94/gencpp.git
synced 2024-12-22 15:54:45 -08:00
Fixes + more setup, added more directories to clean script.
This commit is contained in:
parent
b5cad6e8a1
commit
4a87a42db0
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
using namespace gen;
|
using namespace gen;
|
||||||
|
|
||||||
void gen_main()
|
int gen_main()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ includes = include_directories(
|
|||||||
|
|
||||||
sources = [ 'gen.bootstrap.cpp' ]
|
sources = [ 'gen.bootstrap.cpp' ]
|
||||||
|
|
||||||
if get_option('buildtype').sartswith('debug')
|
if get_option('buildtype').startswith('debug')
|
||||||
|
|
||||||
add_project_arguments('-DBuild_Debug', language : ['c', 'cpp'])
|
add_project_arguments('-DBuild_Debug', language : ['c', 'cpp'])
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ foreach ( $arg in $args )
|
|||||||
|
|
||||||
$path_root = git rev-parse --show-toplevel
|
$path_root = git rev-parse --show-toplevel
|
||||||
$path_project = Join-Path $path_root project
|
$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"
|
write-host "`n`nBuilding gencpp bootstrap`n"
|
||||||
|
|
||||||
|
@ -1,13 +1,21 @@
|
|||||||
$path_root = git rev-parse --show-toplevel
|
$path_root = git rev-parse --show-toplevel
|
||||||
$path_build = Join-Path $path_root build
|
$path_project = Join-Path $path_root project
|
||||||
$path_test = Join-Path $path_root test
|
$path_singleheader = Join-Path $path_root singleheader
|
||||||
$path_gen = Join-Path $path_test gen
|
$path_test = Join-Path $path_root test
|
||||||
$path_test_build = Join-Path $path_test build
|
$path_gen = Join-Path $path_test gen
|
||||||
$path_gen_build = Join-Path $path_gen build
|
$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 )
|
if ( Test-Path $path_test_build )
|
||||||
|
@ -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;
|
||||||
|
}
|
@ -7,7 +7,7 @@ includes = include_directories(
|
|||||||
|
|
||||||
sources = [ 'gen.singleheader.cpp' ]
|
sources = [ 'gen.singleheader.cpp' ]
|
||||||
|
|
||||||
if get_option('buildtype').sartswith('debug')
|
if get_option('buildtype').startswith('debug')
|
||||||
|
|
||||||
add_project_arguments('-DBuild_Debug', language : ['c', 'cpp'])
|
add_project_arguments('-DBuild_Debug', language : ['c', 'cpp'])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user