2021-03-04 19:37:40 +01:00
|
|
|
#!python
|
|
|
|
|
|
|
|
# Create the environment and create a Compilation Database for use in VSCodium
|
|
|
|
env = DefaultEnvironment(tools=['default', 'compilation_db'])
|
|
|
|
env.CompilationDatabase()
|
|
|
|
|
2021-03-15 13:50:07 +01:00
|
|
|
env.Append(CCFLAGS=["-Wall", "-Wextra", "-Werror", "-pedantic"])
|
2021-03-16 14:55:54 +01:00
|
|
|
env.Append(CPPPATH=['.', 'include'])
|
2021-03-15 13:50:07 +01:00
|
|
|
|
2021-03-16 14:55:54 +01:00
|
|
|
# Build the test programs
|
|
|
|
catch_cpp = "test/catch_amalgamated.cpp"
|
|
|
|
Program('vector-test.out', [catch_cpp, 'test/vector-test.cpp'])
|
|
|
|
|
|
|
|
# Build the library
|
|
|
|
SharedLibrary('ged', Glob('cpp/*.cpp'))
|