mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
meson: replace create-config with meson configure_file
Move the create-config logic to meson.build; create a configuration_data object and let meson handle the quoting and output. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
484e2cc730
commit
859aef026e
7 changed files with 81 additions and 168 deletions
|
@ -113,7 +113,7 @@ static int module_load_file(const char *fname)
|
|||
{
|
||||
GModule *g_module;
|
||||
void (*sym)(void);
|
||||
const char *dsosuf = HOST_DSOSUF;
|
||||
const char *dsosuf = CONFIG_HOST_DSOSUF;
|
||||
int len = strlen(fname);
|
||||
int suf_len = strlen(dsosuf);
|
||||
ModuleEntry *e, *next;
|
||||
|
@ -221,7 +221,7 @@ bool module_load_one(const char *prefix, const char *lib_name)
|
|||
|
||||
for (i = 0; i < n_dirs; i++) {
|
||||
fname = g_strdup_printf("%s/%s%s",
|
||||
dirs[i], module_name, HOST_DSOSUF);
|
||||
dirs[i], module_name, CONFIG_HOST_DSOSUF);
|
||||
ret = module_load_file(fname);
|
||||
g_free(fname);
|
||||
fname = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue