bliss: Fix monolithic build
authorTobias Brunner <tobias@strongswan.org>
Fri, 5 Dec 2014 15:36:13 +0000 (16:36 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 12 Dec 2014 11:00:20 +0000 (12:00 +0100)
commit700df2388670a7d374f58c2005001d277deb1618
tree82a5c2686a625c69c19eac4776617de7440636fd
parentf55a03a2de5d95389ef2417ad6ca393e1921f9ba
bliss: Fix monolithic build

This requires moving test files so that the Makefile for the tests can be
included after building libstrongswan, which requires the plugin when
building monolithically.  Due to this a static helper library is required
as directly referring to object files (or source files) is not possible.

It's also necessary to avoid any link-time dependency on libstrongswan in
bliss_huffman, to avoid circular dependencies (bliss_huffman -> libstrongswan
-> bliss -> bliss_huffman).
19 files changed:
configure.ac
src/libstrongswan/Makefile.am
src/libstrongswan/plugins/bliss/.gitignore
src/libstrongswan/plugins/bliss/Makefile.am
src/libstrongswan/plugins/bliss/bliss_huffman.c
src/libstrongswan/plugins/bliss/bliss_tests.c [deleted file]
src/libstrongswan/plugins/bliss/bliss_tests.h [deleted file]
src/libstrongswan/plugins/bliss/suites/test_bliss_bitpacker.c [deleted file]
src/libstrongswan/plugins/bliss/suites/test_bliss_fft.c [deleted file]
src/libstrongswan/plugins/bliss/suites/test_bliss_sampler.c [deleted file]
src/libstrongswan/plugins/bliss/suites/test_bliss_sign.c [deleted file]
src/libstrongswan/plugins/bliss/tests/.gitignore [new file with mode: 0644]
src/libstrongswan/plugins/bliss/tests/Makefile.am [new file with mode: 0644]
src/libstrongswan/plugins/bliss/tests/bliss_tests.c [new file with mode: 0644]
src/libstrongswan/plugins/bliss/tests/bliss_tests.h [new file with mode: 0644]
src/libstrongswan/plugins/bliss/tests/suites/test_bliss_bitpacker.c [new file with mode: 0644]
src/libstrongswan/plugins/bliss/tests/suites/test_bliss_fft.c [new file with mode: 0644]
src/libstrongswan/plugins/bliss/tests/suites/test_bliss_sampler.c [new file with mode: 0644]
src/libstrongswan/plugins/bliss/tests/suites/test_bliss_sign.c [new file with mode: 0644]