build: Avoid building files multiple times

We don't have to build each source for every test, instead we could
create a static library link it with every test, which will be a lot
faster.
This commit is contained in:
Mohammed Sadiq
2021-05-17 18:51:54 +05:30
parent 1db1ba6ca9
commit b1278f6140
6 changed files with 20 additions and 12 deletions

View File

@@ -54,7 +54,7 @@ calls_ofono = shared_module(
src_include,
include_directories('.')
],
link_with: gdbofono_lib,
link_with: [gdbofono_lib, libcalls],
install: true,
install_dir: ofono_install_dir
)