Thanks for the help! I really appreciate it. Making a static
lib worked well and did not increase the size of the executables,
perhaps because of -Wl,--as-needed. On a 6-core workstation,
meson+ninja builds 3x faster than autotools, and 2x faster if I
don't let ninja use 2 processes per core.
I have two more questions that I was wondering if people could
perhaps help me out with:
4. I have an external unit test suite, and I'm not sure how to integrate this with meson. I was able to get meson to run a test (below), but (a) it doesn't show any test output and (b) it fails because the test takes too long. Is there an example of how to include an external test suite somewhere?
Also, I'm not sure if the code below uses the "correct" way of
finding uninstalled components so that they can be used for
testing the uninstalled binary. Here 'builtins' assumes that some
uninstalled *.so files are in the directory that they were built
in, and I run python using 'find_program'. But perhaps there is a
better way.
python = find_program('python')
tests = join_paths(meson.source_root(),'tests')
run_tests = files('tests/run-tests.py')
baliphyexe = join_paths(meson.build_root(),'src/bali-phy')
builtins = join_paths(meson.build_root(),'src/builtins')
test('internal testsuite', python,
args: [run_tests, baliphyexe,
'--package-path=@0@:@1@'.format(builtins,meson.source_root())],
workdir: tests)