feat: added PROJECTNAME define to build script

main
Sara 2024-11-15 13:30:30 +01:00
parent f32cc23afd
commit dbbed72fc9
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
*.o
game
.sconsign.dblite
.gdb_history

View File

@ -12,6 +12,6 @@ def glob_recurse(dir):
sources = glob_recurse(Path('src/'))
env = Environment(CCFLAGS=['-std=c++20', '-Wall', '-O0', '-g3'])
env = Environment(CCFLAGS=['-std=c++20', '-Wall', '-O0', '-g3', '-DPROJECTNAME=\\\"'+project+'\\\"'])
env.ParseConfig('sdl2-config --static-libs')
env.Program(project, sources)