]> git.proxmox.com Git - mirror_qemu.git/blame - gdbstub/meson.build
qdev: Rework array properties based on list visitor
[mirror_qemu.git] / gdbstub / meson.build
CommitLineData
ae7467b1
AB
1#
2# The main gdbstub still relies on per-build definitions of various
3f7d1bda 3# types. The bits pushed to system/user.c try to use guest agnostic
ae7467b1
AB
4# types such as hwaddr.
5#
6
61b2e136
AB
7# We need to build the core gdb code via a library to be able to tweak
8# cflags so:
9
10gdb_user_ss = ss.source_set()
de6cd759 11gdb_system_ss = ss.source_set()
61b2e136
AB
12
13# We build two versions of gdbstub, one for each mode
14gdb_user_ss.add(files('gdbstub.c', 'user.c'))
3f7d1bda 15gdb_system_ss.add(files('gdbstub.c', 'system.c'))
61b2e136 16
1f2146f7
PB
17gdb_user_ss = gdb_user_ss.apply(config_targetos, strict: false)
18gdb_system_ss = gdb_system_ss.apply(config_targetos, strict: false)
61b2e136
AB
19
20libgdb_user = static_library('gdb_user',
21 gdb_user_ss.sources() + genh,
22 name_suffix: 'fa',
b846ad62 23 c_args: '-DCONFIG_USER_ONLY',
4c545a05 24 build_by_default: false)
61b2e136 25
3f7d1bda 26libgdb_system = static_library('gdb_system',
de6cd759 27 gdb_system_ss.sources() + genh,
b846ad62 28 name_suffix: 'fa',
4c545a05 29 build_by_default: false)
61b2e136
AB
30
31gdb_user = declare_dependency(link_whole: libgdb_user)
32user_ss.add(gdb_user)
3f7d1bda
PMD
33gdb_system = declare_dependency(link_whole: libgdb_system)
34system_ss.add(gdb_system)
c566080c 35
2d3d2517 36common_ss.add(files('syscalls.c'))
c566080c 37
d96bf49b
AB
38# The user-target is specialised by the guest
39specific_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user-target.c'))