Distinguish between enabling the library and enabling shared libraries

Some tests for capsule-capture-libs will need to compile shared
libraries, even if libcapsule itself is not built.

Signed-off-by: Simon McVittie <smcv@collabora.com>
3 jobs for test-misc-fixes in 21 minutes and 19 seconds (queued for 1 second)
Status Name Job ID Coverage
  Test
passed build:bionic #15981

00:21:18

passed build:buster #15980

00:20:02

passed build:stretch #15979

00:21:13