Skip to content

Commit c94a7b8

Browse files
kraxelbonzini
authored andcommitted
accel: build qtest modular
Allow building accelerators as module. Start with qtest as first user. Signed-off-by: Gerd Hoffmann <[email protected]> Reviewed-by: Jose R. Ziviani <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent a05ca2d commit c94a7b8

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

accel/qtest/meson.build

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
qtest_ss = ss.source_set()
2-
qtest_ss.add(files(
3-
'qtest.c',
4-
))
5-
6-
specific_ss.add_all(when: ['CONFIG_SOFTMMU', 'CONFIG_POSIX'], if_true: qtest_ss)
1+
qtest_module_ss.add(when: ['CONFIG_SOFTMMU', 'CONFIG_POSIX'],
2+
if_true: files('qtest.c'))

meson.build

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2000,6 +2000,9 @@ trace_ss = ss.source_set()
20002000
user_ss = ss.source_set()
20012001
util_ss = ss.source_set()
20022002

2003+
# accel modules
2004+
qtest_module_ss = ss.source_set()
2005+
20032006
modules = {}
20042007
target_modules = {}
20052008
hw_arch = {}
@@ -2238,6 +2241,9 @@ specific_ss.add_all(when: 'CONFIG_LINUX_USER', if_true: linux_user_ss)
22382241
subdir('tests/qtest/libqos')
22392242
subdir('tests/qtest/fuzz')
22402243

2244+
# accel modules
2245+
target_modules += { 'accel' : { 'qtest': qtest_module_ss }}
2246+
22412247
########################
22422248
# Library dependencies #
22432249
########################

0 commit comments

Comments
 (0)