build(meson.build): updates src build to seperate module meson files
This commit is contained in:
22
src/dobj/meson.build
Normal file
22
src/dobj/meson.build
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# Define the library
|
||||||
|
dobj_sources = files(
|
||||||
|
'private/Metadata.cpp',
|
||||||
|
'private/DObject.cpp',
|
||||||
|
'private/LockableDObject.cpp'
|
||||||
|
)
|
||||||
|
|
||||||
|
dobj_headers = files(
|
||||||
|
'public/Metadata.h',
|
||||||
|
'public/DObject.h',
|
||||||
|
'public/LockableDObject.h'
|
||||||
|
)
|
||||||
|
|
||||||
|
# Define the libdobj library so it can be linked against by other parts of the build system
|
||||||
|
libdobj = library('dobj',
|
||||||
|
dobj_sources,
|
||||||
|
include_directories: include_directories('public'),
|
||||||
|
cpp_args: ['-fvisibility=default'],
|
||||||
|
install : true)
|
||||||
|
|
||||||
|
# Make headers accessible
|
||||||
|
install_headers(dobj_headers, subdir : '4DSSE/dobj')
|
||||||
@@ -1,22 +1 @@
|
|||||||
# Define the library
|
subdir('dobj')
|
||||||
dobj_sources = files(
|
|
||||||
'dobj/private/Metadata.cpp',
|
|
||||||
'dobj/private/DObject.cpp',
|
|
||||||
'dobj/private/LockableDObject.cpp'
|
|
||||||
)
|
|
||||||
|
|
||||||
dobj_headers = files(
|
|
||||||
'dobj/public/Metadata.h',
|
|
||||||
'dobj/public/DObject.h',
|
|
||||||
'dobj/public/LockableDObject.h'
|
|
||||||
)
|
|
||||||
|
|
||||||
# Define the libdobj library so it can be linked against by other parts of the build system
|
|
||||||
libdobj = library('dobj',
|
|
||||||
dobj_sources,
|
|
||||||
include_directories: include_directories('dobj/public'),
|
|
||||||
cpp_args: ['-fvisibility=default'],
|
|
||||||
install : true)
|
|
||||||
|
|
||||||
# Make headers accessible
|
|
||||||
install_headers(dobj_headers, subdir : '4DSSE/dobj')
|
|
||||||
Reference in New Issue
Block a user