@@ -250,6 +250,7 @@ iokit = []
250
250
emulator_link_args = []
251
251
nvmm = not_found
252
252
hvf = not_found
253
+ host_dsosuf = ' .so'
253
254
if targetos == ' windows'
254
255
socket = cc.find_library (' ws2_32' )
255
256
winmm = cc.find_library (' winmm' )
@@ -258,9 +259,11 @@ if targetos == 'windows'
258
259
version_res = win.compile_resources(' version.rc' ,
259
260
depend_files : files (' pc-bios/qemu-nsis.ico' ),
260
261
include_directories : include_directories (' .' ))
262
+ host_dsosuf = ' .dll'
261
263
elif targetos == ' darwin'
262
264
coref = dependency (' appleframeworks' , modules : ' CoreFoundation' )
263
265
iokit = dependency (' appleframeworks' , modules : ' IOKit' , required : false )
266
+ host_dsosuf = ' .dylib'
264
267
elif targetos == ' sunos'
265
268
socket = [cc.find_library (' socket' ),
266
269
cc.find_library (' nsl' ),
@@ -1458,6 +1461,7 @@ config_host_data.set('QEMU_VERSION_MAJOR', meson.project_version().split('.')[0]
1458
1461
config_host_data.set(' QEMU_VERSION_MINOR' , meson .project_version().split(' .' )[1 ])
1459
1462
config_host_data.set(' QEMU_VERSION_MICRO' , meson .project_version().split(' .' )[2 ])
1460
1463
1464
+ config_host_data.set_quoted(' CONFIG_HOST_DSOSUF' , host_dsosuf)
1461
1465
config_host_data.set(' HAVE_HOST_BLOCK_DEVICE' , have_host_block_device)
1462
1466
1463
1467
# has_header
@@ -1603,10 +1607,9 @@ config_host_data.set('HAVE_BROKEN_SIZE_MAX', not cc.compiles('''
1603
1607
return printf("%zu", SIZE_MAX);
1604
1608
}''' , args : [' -Werror' ]))
1605
1609
1606
-
1607
1610
ignored = [' CONFIG_QEMU_INTERP_PREFIX' ] # actually per-target
1608
1611
arrays = [' CONFIG_BDRV_RW_WHITELIST' , ' CONFIG_BDRV_RO_WHITELIST' ]
1609
- strings = [' HOST_DSOSUF ' , ' CONFIG_IASL' ]
1612
+ strings = [' CONFIG_IASL' ]
1610
1613
foreach k, v : config_host
1611
1614
if ignored.contains(k)
1612
1615
# do nothing
@@ -1618,9 +1621,6 @@ foreach k, v: config_host
1618
1621
elif k == ' ARCH'
1619
1622
config_host_data.set(' HOST_' + v.to_upper(), 1 )
1620
1623
elif strings.contains(k)
1621
- if not k.startswith(' CONFIG_' )
1622
- k = ' CONFIG_' + k.to_upper()
1623
- endif
1624
1624
config_host_data.set_quoted(k, v)
1625
1625
elif k.startswith(' CONFIG_' ) or k.startswith(' HAVE_' ) or k.startswith(' HOST_' )
1626
1626
config_host_data.set(k, v == ' y' ? 1 : v)
0 commit comments