Do not build a dynamic lib for each node.

main
Ben Niemann 1 year ago
parent eb3b00f98f
commit edf3864f60

@ -27,7 +27,7 @@ def build(ctx):
ctx.cpp_flatbuffer('graph_mutation.fbs')
ctx.shlib(
target='noisicaa-engine-core',
target='noisicaa-engine',
source=[
'engine_impl.cpp',
'buffers.cpp',
@ -49,16 +49,11 @@ def build(ctx):
'AVUTIL',
'FLATBUFFERS',
'noisicaa-core',
'noisicaa-node_lib'
],
vnum='1',
)
ctx.shlib(
target='noisicaa-engine',
features='cxx cxxshlib',
use=['noisicaa-engine-core', 'noisicaa-node_lib'],
)
ctx.py_module('__init__.py')
ctx.py_flatbuffer('engine_notification.fbs')
ctx.py_flatbuffer('backend_settings.fbs')

@ -152,15 +152,14 @@ def build(ctx):
cpp_env = ctx.env.derive()
cpp_env.append_value('INCLUDES', [os.path.join(str(ctx.path), 'src'), str(ctx.path)])
cpp_env.append_value('CXXFLAGS', ['-fpermissive'])
ctx.shlib(
ctx.objects(
target='noisicaa-node-swh-' + name,
source=[cpp],
use=['noisicaa-engine-core'],
cxxflags=['-fPIC'],
env=cpp_env,
)
ctx.shlib(
features="cxx cxxshlib",
ctx.objects(
target='noisicaa-node-swh',
use=['noisicaa-node-swh-' + name for name in plugins],
)

@ -59,10 +59,10 @@ def noise_node(
ctx.py_flatbuffer('node_message.fbs')
if has_audio:
ctx.shlib(
ctx.objects(
target='noisicaa-node-' + name,
source=['audio.cpp'] + audio_source,
use=['noisicaa-engine-core'],
cxxflags=['-fPIC'],
)
if has_model:
@ -218,9 +218,8 @@ def build(ctx):
for node in nodes:
ctx.recurse(node)
ctx.shlib(
ctx.objects(
target='noisicaa-node_lib',
features='cxx cxxshlib',
use=['noisicaa-node-' + node for node in nodes],
)

Loading…
Cancel
Save