target/s390x: Fix R[NOX]SBG with T=1
[qemu/ar7.git] / gdbstub / meson.build
blobbd5c5cd67d1fd7037bfa8d2c5776eae316155bef
2 # The main gdbstub still relies on per-build definitions of various
3 # types. The bits pushed to softmmu/user.c try to use guest agnostic
4 # types such as hwaddr.
7 # We need to build the core gdb code via a library to be able to tweak
8 # cflags so:
10 gdb_user_ss = ss.source_set()
11 gdb_softmmu_ss = ss.source_set()
13 # We build two versions of gdbstub, one for each mode
14 gdb_user_ss.add(files('gdbstub.c', 'user.c'))
15 gdb_softmmu_ss.add(files('gdbstub.c', 'softmmu.c'))
17 gdb_user_ss = gdb_user_ss.apply(config_host, strict: false)
18 gdb_softmmu_ss = gdb_softmmu_ss.apply(config_host, strict: false)
20 libgdb_user = static_library('gdb_user',
21                              gdb_user_ss.sources() + genh,
22                              name_suffix: 'fa',
23                              c_args: '-DCONFIG_USER_ONLY')
25 libgdb_softmmu = static_library('gdb_softmmu',
26                                 gdb_softmmu_ss.sources() + genh,
27                                 name_suffix: 'fa')
29 gdb_user = declare_dependency(link_whole: libgdb_user)
30 user_ss.add(gdb_user)
31 gdb_softmmu = declare_dependency(link_whole: libgdb_softmmu)
32 softmmu_ss.add(gdb_softmmu)
34 common_ss.add(files('syscalls.c'))
36 # The user-target is specialised by the guest
37 specific_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user-target.c'))