Skip to content

Commit

Permalink
accel: build qtest modular
Browse files Browse the repository at this point in the history
Allow building accelerators as module.
Start with qtest as first user.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Jose R. Ziviani <jziviani@suse.de>
Message-Id: <20210624103836.2382472-28-kraxel@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
kraxel authored and bonzini committed Jul 8, 2021
1 parent 0a832fa commit 6a038a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 2 additions & 6 deletions accel/qtest/meson.build
@@ -1,6 +1,2 @@
qtest_ss = ss.source_set()
qtest_ss.add(files(
'qtest.c',
))

specific_ss.add_all(when: ['CONFIG_SOFTMMU', 'CONFIG_POSIX'], if_true: qtest_ss)
qtest_module_ss.add(when: ['CONFIG_SOFTMMU', 'CONFIG_POSIX'],
if_true: files('qtest.c'))
6 changes: 6 additions & 0 deletions meson.build
Expand Up @@ -2000,6 +2000,9 @@ trace_ss = ss.source_set()
user_ss = ss.source_set()
util_ss = ss.source_set()

# accel modules
qtest_module_ss = ss.source_set()

modules = {}
target_modules = {}
hw_arch = {}
Expand Down Expand Up @@ -2238,6 +2241,9 @@ specific_ss.add_all(when: 'CONFIG_LINUX_USER', if_true: linux_user_ss)
subdir('tests/qtest/libqos')
subdir('tests/qtest/fuzz')

# accel modules
target_modules += { 'accel' : { 'qtest': qtest_module_ss }}

########################
# Library dependencies #
########################
Expand Down

0 comments on commit 6a038a8

Please sign in to comment.