mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
meson: Introduce top-level libuser_ss and libsystem_ss
We already have two subdirectories for which we need to build files twice, for user vs system modes. Move this handling to the top level. This cannot be combined with user_ss or system_ss, because the formulation has not been extended to support configuration symbols. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
d4c9cab37f
commit
5983a20a0b
3 changed files with 32 additions and 45 deletions
|
@ -4,32 +4,16 @@
|
|||
# types such as hwaddr.
|
||||
#
|
||||
|
||||
# We need to build the core gdb code via a library to be able to tweak
|
||||
# cflags so:
|
||||
|
||||
gdb_user_ss = ss.source_set()
|
||||
gdb_system_ss = ss.source_set()
|
||||
|
||||
# We build two versions of gdbstub, one for each mode
|
||||
gdb_user_ss.add(files('gdbstub.c', 'user.c'))
|
||||
gdb_system_ss.add(files('gdbstub.c', 'system.c'))
|
||||
libuser_ss.add(files(
|
||||
'gdbstub.c',
|
||||
'user.c'
|
||||
))
|
||||
|
||||
gdb_user_ss = gdb_user_ss.apply({})
|
||||
gdb_system_ss = gdb_system_ss.apply({})
|
||||
|
||||
libgdb_user = static_library('gdb_user',
|
||||
gdb_user_ss.sources() + genh,
|
||||
c_args: '-DCONFIG_USER_ONLY',
|
||||
build_by_default: false)
|
||||
|
||||
libgdb_system = static_library('gdb_system',
|
||||
gdb_system_ss.sources() + genh,
|
||||
build_by_default: false)
|
||||
|
||||
gdb_user = declare_dependency(objects: libgdb_user.extract_all_objects(recursive: false))
|
||||
user_ss.add(gdb_user)
|
||||
gdb_system = declare_dependency(objects: libgdb_system.extract_all_objects(recursive: false))
|
||||
system_ss.add(gdb_system)
|
||||
libsystem_ss.add(files(
|
||||
'gdbstub.c',
|
||||
'system.c'
|
||||
))
|
||||
|
||||
common_ss.add(files('syscalls.c'))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue