diff --git a/src/SConscript b/src/SConscript index 32c9d51a8..6af6d9838 100644 --- a/src/SConscript +++ b/src/SConscript @@ -123,7 +123,7 @@ if not GetOption('disable_shared') or GetOption('enable_static') or GetOption('e public_api_targets += [install_target] public_api_targets += symlinks - env.AddDistFile(env['ROC_SYSTEM_LIBDIR'], install_target) + env.AddDistFile(env['ROC_SYSTEM_LIBDIR'], libroc_shared[0]) if env.NeedsFixupSharedLibrary(): env.AddDistAction(env.FixupSharedLibrary( @@ -178,6 +178,8 @@ if not GetOption('disable_shared') or GetOption('enable_static') or GetOption('e url='https://roc-streaming.org', version=env['ROC_VERSION']) + public_api_targets += [pc_file] + env.AddDistFile(env['ROC_SYSTEM_PCDIR'], pc_file) all_targets += public_api_targets @@ -345,4 +347,11 @@ if env.get('ROC_CLANGDB', None): compile_commands = env['ROC_CLANGDB'] env.Artifact(compile_commands, all_targets) - env.Install('#', compile_commands) + target = env.Install('#', compile_commands) + + all_targets += [target] + +# +# ensure 'install' goes last +# +env.Depends('install', all_targets)