mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-20 03:27:02 -07:00
Initial SConstruct build script
This commit is contained in:
parent
5819c76289
commit
defbc079cd
1 changed files with 24 additions and 0 deletions
24
SConstruct
Normal file
24
SConstruct
Normal 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')
|
||||
Loading…
Add table
Add a link
Reference in a new issue