Initial SConstruct build script

This commit is contained in:
David Allen 2024-07-14 21:26:43 -06:00
parent 5819c76289
commit defbc079cd
No known key found for this signature in database
GPG key ID: 1D2A29322FBB6FCB

24
SConstruct Normal file
View file

@ -0,0 +1,24 @@
# set up variables and glob files
env = Environment(
CPPPATH = Glob('include/*.hpp'),
CPPDEFINES = [],
LIBS = []
)
base_name = "gdpm"
include_files = Glob('include/*.hpp')
source_files = Glob('src/*.cpp')
test_files = Glob('tests/*.cpp')
# build the main executable and tests
env.Program(f'{base_name}', source_files)
env.Program(f'{base_name}.tests', test_files)
# build the static library
StaticLibrary(f'{base_name}-static')
# build the shared libraries
SharedLibrary(f'{base_name}-shared')
SharedLibrary(f'{base_name}-static')
SharedLibrary(f'{base_name}-http')
SharedLibrary(f'{base_name}-restapi')