28 lines
911 B
Python
28 lines
911 B
Python
#!python
|
|
|
|
# Create the environment and create a Compilation Database for use in VSCodium
|
|
env = DefaultEnvironment(tools=['default', 'compilation_db'])
|
|
env.CompilationDatabase()
|
|
|
|
env.Append(CCFLAGS=["-Wall", "-Wextra", "-Werror", "-pedantic"])
|
|
env.Append(CPPPATH=['.', 'include'])
|
|
|
|
# Build the library
|
|
env.SharedLibrary('lib/ged', Glob('cpp/*.cpp'))
|
|
|
|
# Build the test libraries
|
|
testEnv = DefaultEnvironment(tools=['default', 'compilation_db'])
|
|
testEnv.CompilationDatabase()
|
|
|
|
testEnv.Append(CCFLAGS=["-Wall", "-Wextra", "-Werror", "-pedantic"])
|
|
testEnv.Append(CPPPATH=['test/', 'include/'])
|
|
testEnv.Append(LIBPATH=['lib/'])
|
|
testEnv.Append(LIBS=['ged'])
|
|
|
|
testEnv.Append(CCFLAGS=["-Wall", "-Wextra", "-Werror", "-pedantic"])
|
|
testEnv.Append(CPPPATH=['.', 'include'])
|
|
|
|
# Build the test programs
|
|
catch_cpp = "test/catch_amalgamated.cpp"
|
|
testEnv.Program('test/bin/vector-test.out', [catch_cpp, 'test/vector-test.cpp'])
|