meson.build (c1ec49415c300cc539efdb88bb3f72078fb43c24) | meson.build (77c05b0b746119a78bffb595b0313d39ac6b20fc) |
---|---|
1project('qemu', ['c'], meson_version: '>=0.55.0', 2 default_options: ['warning_level=1', 'c_std=gnu99', 'cpp_std=gnu++11', 'b_colorout=auto'] + 3 (meson.version().version_compare('>=0.56.0') ? [ 'b_staticpic=false' ] : []), 4 version: run_command('head', meson.source_root() / 'VERSION').stdout().strip()) 5 6not_found = dependency('', required: false) 7if meson.version().version_compare('>=0.56.0') 8 keyval = import('keyval') --- 155 unchanged lines hidden (view full) --- 164m = cc.find_library('m', required: false) 165util = cc.find_library('util', required: false) 166winmm = [] 167socket = [] 168version_res = [] 169coref = [] 170iokit = [] 171emulator_link_args = [] | 1project('qemu', ['c'], meson_version: '>=0.55.0', 2 default_options: ['warning_level=1', 'c_std=gnu99', 'cpp_std=gnu++11', 'b_colorout=auto'] + 3 (meson.version().version_compare('>=0.56.0') ? [ 'b_staticpic=false' ] : []), 4 version: run_command('head', meson.source_root() / 'VERSION').stdout().strip()) 5 6not_found = dependency('', required: false) 7if meson.version().version_compare('>=0.56.0') 8 keyval = import('keyval') --- 155 unchanged lines hidden (view full) --- 164m = cc.find_library('m', required: false) 165util = cc.find_library('util', required: false) 166winmm = [] 167socket = [] 168version_res = [] 169coref = [] 170iokit = [] 171emulator_link_args = [] |
172cocoa = not_found |
|
172hvf = not_found 173if targetos == 'windows' 174 socket = cc.find_library('ws2_32') 175 winmm = cc.find_library('winmm') 176 177 win = import('windows') 178 version_res = win.compile_resources('version.rc', 179 depend_files: files('pc-bios/qemu-nsis.ico'), 180 include_directories: include_directories('.')) 181elif targetos == 'darwin' 182 coref = dependency('appleframeworks', modules: 'CoreFoundation') 183 iokit = dependency('appleframeworks', modules: 'IOKit') | 173hvf = not_found 174if targetos == 'windows' 175 socket = cc.find_library('ws2_32') 176 winmm = cc.find_library('winmm') 177 178 win = import('windows') 179 version_res = win.compile_resources('version.rc', 180 depend_files: files('pc-bios/qemu-nsis.ico'), 181 include_directories: include_directories('.')) 182elif targetos == 'darwin' 183 coref = dependency('appleframeworks', modules: 'CoreFoundation') 184 iokit = dependency('appleframeworks', modules: 'IOKit') |
185 cocoa = dependency('appleframeworks', modules: 'Cocoa', required: get_option('cocoa')) |
|
184elif targetos == 'sunos' 185 socket = [cc.find_library('socket'), 186 cc.find_library('nsl'), 187 cc.find_library('resolv')] 188elif targetos == 'haiku' 189 socket = [cc.find_library('posix_error_mapper'), 190 cc.find_library('network'), 191 cc.find_library('bsd')] --- 57 unchanged lines hidden (view full) --- 249endif 250if not have_xen_pci_passthrough and get_option('xen_pci_passthrough').enabled() 251 if 'CONFIG_XEN' in accelerators 252 error('Xen PCI passthrough not available on this platform') 253 else 254 error('Xen PCI passthrough requested but Xen not enabled') 255 endif 256endif | 186elif targetos == 'sunos' 187 socket = [cc.find_library('socket'), 188 cc.find_library('nsl'), 189 cc.find_library('resolv')] 190elif targetos == 'haiku' 191 socket = [cc.find_library('posix_error_mapper'), 192 cc.find_library('network'), 193 cc.find_library('bsd')] --- 57 unchanged lines hidden (view full) --- 251endif 252if not have_xen_pci_passthrough and get_option('xen_pci_passthrough').enabled() 253 if 'CONFIG_XEN' in accelerators 254 error('Xen PCI passthrough not available on this platform') 255 else 256 error('Xen PCI passthrough requested but Xen not enabled') 257 endif 258endif |
259if not cocoa.found() and get_option('cocoa').enabled() 260 error('Cocoa not available on this platform') 261endif |
|
257 258################ 259# Dependencies # 260################ 261 262# The path to glib.h is added to all compilation commands. This was 263# grandfathered in from the QEMU Makefiles. 264add_project_arguments(config_host['GLIB_CFLAGS'].split(), --- 87 unchanged lines hidden (view full) --- 352 warning('could not link libattr, disabling') 353 endif 354 else 355 have_old_libattr = libattr.found() 356 endif 357 endif 358endif 359 | 262 263################ 264# Dependencies # 265################ 266 267# The path to glib.h is added to all compilation commands. This was 268# grandfathered in from the QEMU Makefiles. 269add_project_arguments(config_host['GLIB_CFLAGS'].split(), --- 87 unchanged lines hidden (view full) --- 357 warning('could not link libattr, disabling') 358 endif 359 else 360 have_old_libattr = libattr.found() 361 endif 362 endif 363endif 364 |
360cocoa = dependency('appleframeworks', modules: 'Cocoa', required: get_option('cocoa')) 361if cocoa.found() and get_option('sdl').enabled() 362 error('Cocoa and SDL cannot be enabled at the same time') 363endif 364if cocoa.found() and get_option('gtk').enabled() 365 error('Cocoa and GTK+ cannot be enabled at the same time') 366endif 367 | |
368seccomp = not_found 369if not get_option('seccomp').auto() or have_system or have_tools 370 seccomp = dependency('libseccomp', version: '>=2.3.0', 371 required: get_option('seccomp'), 372 method: 'pkg-config', static: enable_static) 373endif 374 375libcap_ng = not_found --- 269 unchanged lines hidden (view full) --- 645 error('could not link brlapi') 646 else 647 warning('could not link brlapi, disabling') 648 endif 649 endif 650endif 651 652sdl = not_found | 365seccomp = not_found 366if not get_option('seccomp').auto() or have_system or have_tools 367 seccomp = dependency('libseccomp', version: '>=2.3.0', 368 required: get_option('seccomp'), 369 method: 'pkg-config', static: enable_static) 370endif 371 372libcap_ng = not_found --- 269 unchanged lines hidden (view full) --- 642 error('could not link brlapi') 643 else 644 warning('could not link brlapi, disabling') 645 endif 646 endif 647endif 648 649sdl = not_found |
653if not get_option('sdl').auto() or (have_system and not cocoa.found()) | 650if have_system |
654 sdl = dependency('sdl2', required: get_option('sdl'), static: enable_static) 655 sdl_image = not_found 656endif 657if sdl.found() 658 # work around 2.0.8 bug 659 sdl = declare_dependency(compile_args: '-Wno-undef', 660 dependencies: sdl) 661 sdl_image = dependency('SDL2_image', required: get_option('sdl_image'), --- 112 unchanged lines hidden (view full) --- 774if 'CONFIG_AUDIO_COREAUDIO' in config_host 775 coreaudio = declare_dependency(link_args: config_host['COREAUDIO_LIBS'].split()) 776endif 777opengl = not_found 778if 'CONFIG_OPENGL' in config_host 779 opengl = declare_dependency(compile_args: config_host['OPENGL_CFLAGS'].split(), 780 link_args: config_host['OPENGL_LIBS'].split()) 781endif | 651 sdl = dependency('sdl2', required: get_option('sdl'), static: enable_static) 652 sdl_image = not_found 653endif 654if sdl.found() 655 # work around 2.0.8 bug 656 sdl = declare_dependency(compile_args: '-Wno-undef', 657 dependencies: sdl) 658 sdl_image = dependency('SDL2_image', required: get_option('sdl_image'), --- 112 unchanged lines hidden (view full) --- 771if 'CONFIG_AUDIO_COREAUDIO' in config_host 772 coreaudio = declare_dependency(link_args: config_host['COREAUDIO_LIBS'].split()) 773endif 774opengl = not_found 775if 'CONFIG_OPENGL' in config_host 776 opengl = declare_dependency(compile_args: config_host['OPENGL_CFLAGS'].split(), 777 link_args: config_host['OPENGL_LIBS'].split()) 778endif |
782 | |
783gtk = not_found | 779gtk = not_found |
784gtkx11 = not_found 785if not get_option('gtk').auto() or (have_system and not cocoa.found()) 786 gtk = dependency('gtk+-3.0', version: '>=3.22.0', 787 method: 'pkg-config', 788 required: get_option('gtk'), 789 static: enable_static) 790 if gtk.found() 791 gtkx11 = dependency('gtk+-x11-3.0', version: '>=3.22.0', 792 method: 'pkg-config', 793 required: false, 794 static: enable_static) 795 gtk = declare_dependency(dependencies: [gtk, gtkx11]) 796 endif | 780if 'CONFIG_GTK' in config_host 781 gtk = declare_dependency(compile_args: config_host['GTK_CFLAGS'].split(), 782 link_args: config_host['GTK_LIBS'].split()) |
797endif | 783endif |
798 | |
799vte = not_found 800if 'CONFIG_VTE' in config_host 801 vte = declare_dependency(compile_args: config_host['VTE_CFLAGS'].split(), 802 link_args: config_host['VTE_LIBS'].split()) 803endif 804x11 = not_found | 784vte = not_found 785if 'CONFIG_VTE' in config_host 786 vte = declare_dependency(compile_args: config_host['VTE_CFLAGS'].split(), 787 link_args: config_host['VTE_LIBS'].split()) 788endif 789x11 = not_found |
805if gtkx11.found() or 'lm32-softmmu' in target_dirs 806 x11 = dependency('x11', method: 'pkg-config', required: gtkx11.found(), 807 static: enable_static) | 790if 'CONFIG_X11' in config_host 791 x11 = declare_dependency(compile_args: config_host['X11_CFLAGS'].split(), 792 link_args: config_host['X11_LIBS'].split()) |
808endif 809vnc = not_found 810png = not_found 811jpeg = not_found 812sasl = not_found 813if get_option('vnc').enabled() 814 vnc = declare_dependency() # dummy dependency 815 png = dependency('libpng', required: get_option('vnc_png'), --- 256 unchanged lines hidden (view full) --- 1072if glusterfs.found() 1073 config_host_data.set('CONFIG_GLUSTERFS_XLATOR_OPT', glusterfs.version().version_compare('>=4')) 1074 config_host_data.set('CONFIG_GLUSTERFS_DISCARD', glusterfs.version().version_compare('>=5')) 1075 config_host_data.set('CONFIG_GLUSTERFS_FALLOCATE', glusterfs.version().version_compare('>=6')) 1076 config_host_data.set('CONFIG_GLUSTERFS_ZEROFILL', glusterfs.version().version_compare('>=6')) 1077 config_host_data.set('CONFIG_GLUSTERFS_FTRUNCATE_HAS_STAT', glusterfs_ftruncate_has_stat) 1078 config_host_data.set('CONFIG_GLUSTERFS_IOCB_HAS_STAT', glusterfs_iocb_has_stat) 1079endif | 793endif 794vnc = not_found 795png = not_found 796jpeg = not_found 797sasl = not_found 798if get_option('vnc').enabled() 799 vnc = declare_dependency() # dummy dependency 800 png = dependency('libpng', required: get_option('vnc_png'), --- 256 unchanged lines hidden (view full) --- 1057if glusterfs.found() 1058 config_host_data.set('CONFIG_GLUSTERFS_XLATOR_OPT', glusterfs.version().version_compare('>=4')) 1059 config_host_data.set('CONFIG_GLUSTERFS_DISCARD', glusterfs.version().version_compare('>=5')) 1060 config_host_data.set('CONFIG_GLUSTERFS_FALLOCATE', glusterfs.version().version_compare('>=6')) 1061 config_host_data.set('CONFIG_GLUSTERFS_ZEROFILL', glusterfs.version().version_compare('>=6')) 1062 config_host_data.set('CONFIG_GLUSTERFS_FTRUNCATE_HAS_STAT', glusterfs_ftruncate_has_stat) 1063 config_host_data.set('CONFIG_GLUSTERFS_IOCB_HAS_STAT', glusterfs_iocb_has_stat) 1064endif |
1080config_host_data.set('CONFIG_GTK', gtk.found()) | |
1081config_host_data.set('CONFIG_LIBATTR', have_old_libattr) 1082config_host_data.set('CONFIG_LIBCAP_NG', libcap_ng.found()) 1083config_host_data.set('CONFIG_LIBISCSI', libiscsi.found()) 1084config_host_data.set('CONFIG_LIBNFS', libnfs.found()) 1085config_host_data.set('CONFIG_RBD', rbd.found()) 1086config_host_data.set('CONFIG_SDL', sdl.found()) 1087config_host_data.set('CONFIG_SDL_IMAGE', sdl_image.found()) 1088config_host_data.set('CONFIG_SECCOMP', seccomp.found()) --- 7 unchanged lines hidden (view full) --- 1096config_host_data.set('CONFIG_XKBCOMMON', xkbcommon.found()) 1097config_host_data.set('CONFIG_KEYUTILS', keyutils.found()) 1098config_host_data.set('CONFIG_GETTID', has_gettid) 1099config_host_data.set('CONFIG_MALLOC_TRIM', has_malloc_trim) 1100config_host_data.set('CONFIG_STATX', has_statx) 1101config_host_data.set('CONFIG_ZSTD', zstd.found()) 1102config_host_data.set('CONFIG_FUSE', fuse.found()) 1103config_host_data.set('CONFIG_FUSE_LSEEK', fuse_lseek.found()) | 1065config_host_data.set('CONFIG_LIBATTR', have_old_libattr) 1066config_host_data.set('CONFIG_LIBCAP_NG', libcap_ng.found()) 1067config_host_data.set('CONFIG_LIBISCSI', libiscsi.found()) 1068config_host_data.set('CONFIG_LIBNFS', libnfs.found()) 1069config_host_data.set('CONFIG_RBD', rbd.found()) 1070config_host_data.set('CONFIG_SDL', sdl.found()) 1071config_host_data.set('CONFIG_SDL_IMAGE', sdl_image.found()) 1072config_host_data.set('CONFIG_SECCOMP', seccomp.found()) --- 7 unchanged lines hidden (view full) --- 1080config_host_data.set('CONFIG_XKBCOMMON', xkbcommon.found()) 1081config_host_data.set('CONFIG_KEYUTILS', keyutils.found()) 1082config_host_data.set('CONFIG_GETTID', has_gettid) 1083config_host_data.set('CONFIG_MALLOC_TRIM', has_malloc_trim) 1084config_host_data.set('CONFIG_STATX', has_statx) 1085config_host_data.set('CONFIG_ZSTD', zstd.found()) 1086config_host_data.set('CONFIG_FUSE', fuse.found()) 1087config_host_data.set('CONFIG_FUSE_LSEEK', fuse_lseek.found()) |
1104config_host_data.set('CONFIG_X11', x11.found()) | |
1105config_host_data.set('CONFIG_CFI', get_option('cfi')) 1106config_host_data.set('QEMU_VERSION', '"@0@"'.format(meson.project_version())) 1107config_host_data.set('QEMU_VERSION_MAJOR', meson.project_version().split('.')[0]) 1108config_host_data.set('QEMU_VERSION_MINOR', meson.project_version().split('.')[1]) 1109config_host_data.set('QEMU_VERSION_MICRO', meson.project_version().split('.')[2]) 1110 1111config_host_data.set('HAVE_BTRFS_H', cc.has_header('linux/btrfs.h')) 1112config_host_data.set('HAVE_DRM_H', cc.has_header('libdrm/drm.h')) --- 70 unchanged lines hidden (view full) --- 1183 } 1184endif 1185 1186host_kconfig = \ 1187 ('CONFIG_TPM' in config_host ? ['CONFIG_TPM=y'] : []) + \ 1188 ('CONFIG_SPICE' in config_host ? ['CONFIG_SPICE=y'] : []) + \ 1189 ('CONFIG_IVSHMEM' in config_host ? ['CONFIG_IVSHMEM=y'] : []) + \ 1190 ('CONFIG_OPENGL' in config_host ? ['CONFIG_OPENGL=y'] : []) + \ | 1088config_host_data.set('CONFIG_CFI', get_option('cfi')) 1089config_host_data.set('QEMU_VERSION', '"@0@"'.format(meson.project_version())) 1090config_host_data.set('QEMU_VERSION_MAJOR', meson.project_version().split('.')[0]) 1091config_host_data.set('QEMU_VERSION_MINOR', meson.project_version().split('.')[1]) 1092config_host_data.set('QEMU_VERSION_MICRO', meson.project_version().split('.')[2]) 1093 1094config_host_data.set('HAVE_BTRFS_H', cc.has_header('linux/btrfs.h')) 1095config_host_data.set('HAVE_DRM_H', cc.has_header('libdrm/drm.h')) --- 70 unchanged lines hidden (view full) --- 1166 } 1167endif 1168 1169host_kconfig = \ 1170 ('CONFIG_TPM' in config_host ? ['CONFIG_TPM=y'] : []) + \ 1171 ('CONFIG_SPICE' in config_host ? ['CONFIG_SPICE=y'] : []) + \ 1172 ('CONFIG_IVSHMEM' in config_host ? ['CONFIG_IVSHMEM=y'] : []) + \ 1173 ('CONFIG_OPENGL' in config_host ? ['CONFIG_OPENGL=y'] : []) + \ |
1191 (x11.found() ? ['CONFIG_X11=y'] : []) + \ | 1174 ('CONFIG_X11' in config_host ? ['CONFIG_X11=y'] : []) + \ |
1192 ('CONFIG_VHOST_USER' in config_host ? ['CONFIG_VHOST_USER=y'] : []) + \ 1193 ('CONFIG_VHOST_VDPA' in config_host ? ['CONFIG_VHOST_VDPA=y'] : []) + \ 1194 ('CONFIG_VHOST_KERNEL' in config_host ? ['CONFIG_VHOST_KERNEL=y'] : []) + \ 1195 (have_virtfs ? ['CONFIG_VIRTFS=y'] : []) + \ 1196 ('CONFIG_LINUX' in config_host ? ['CONFIG_LINUX=y'] : []) + \ 1197 ('CONFIG_PVRDMA' in config_host ? ['CONFIG_PVRDMA=y'] : []) 1198 1199ignored = [ 'TARGET_XML_FILES', 'TARGET_ABI_DIR', 'TARGET_ARCH' ] --- 499 unchanged lines hidden (view full) --- 1699if have_system 1700 trace_events_subdirs += [ 1701 'audio', 1702 'backends', 1703 'backends/tpm', 1704 'chardev', 1705 'hw/9pfs', 1706 'hw/acpi', | 1175 ('CONFIG_VHOST_USER' in config_host ? ['CONFIG_VHOST_USER=y'] : []) + \ 1176 ('CONFIG_VHOST_VDPA' in config_host ? ['CONFIG_VHOST_VDPA=y'] : []) + \ 1177 ('CONFIG_VHOST_KERNEL' in config_host ? ['CONFIG_VHOST_KERNEL=y'] : []) + \ 1178 (have_virtfs ? ['CONFIG_VIRTFS=y'] : []) + \ 1179 ('CONFIG_LINUX' in config_host ? ['CONFIG_LINUX=y'] : []) + \ 1180 ('CONFIG_PVRDMA' in config_host ? ['CONFIG_PVRDMA=y'] : []) 1181 1182ignored = [ 'TARGET_XML_FILES', 'TARGET_ABI_DIR', 'TARGET_ARCH' ] --- 499 unchanged lines hidden (view full) --- 1682if have_system 1683 trace_events_subdirs += [ 1684 'audio', 1685 'backends', 1686 'backends/tpm', 1687 'chardev', 1688 'hw/9pfs', 1689 'hw/acpi', |
1690 'hw/adc', |
|
1707 'hw/alpha', 1708 'hw/arm', 1709 'hw/audio', 1710 'hw/block', 1711 'hw/block/dataplane', 1712 'hw/char', 1713 'hw/display', 1714 'hw/dma', --- 111 unchanged lines hidden (view full) --- 1826subdir('scsi') 1827subdir('block') 1828 1829blockdev_ss.add(files( 1830 'blockdev.c', 1831 'blockdev-nbd.c', 1832 'iothread.c', 1833 'job-qmp.c', | 1691 'hw/alpha', 1692 'hw/arm', 1693 'hw/audio', 1694 'hw/block', 1695 'hw/block/dataplane', 1696 'hw/char', 1697 'hw/display', 1698 'hw/dma', --- 111 unchanged lines hidden (view full) --- 1810subdir('scsi') 1811subdir('block') 1812 1813blockdev_ss.add(files( 1814 'blockdev.c', 1815 'blockdev-nbd.c', 1816 'iothread.c', 1817 'job-qmp.c', |
1834), gnutls) | 1818)) |
1835 1836# os-posix.c contains POSIX-specific functions used by qemu-storage-daemon, 1837# os-win32.c does not 1838blockdev_ss.add(when: 'CONFIG_POSIX', if_true: files('os-posix.c')) 1839softmmu_ss.add(when: 'CONFIG_WIN32', if_true: [files('os-win32.c')]) 1840 1841common_ss.add(files('cpus-common.c')) 1842 --- 139 unchanged lines hidden (view full) --- 1982 dependencies: qmp_ss.dependencies(), 1983 name_suffix: 'fa', 1984 build_by_default: false) 1985 1986qmp = declare_dependency(link_whole: [libqmp]) 1987 1988libchardev = static_library('chardev', chardev_ss.sources() + genh, 1989 name_suffix: 'fa', | 1819 1820# os-posix.c contains POSIX-specific functions used by qemu-storage-daemon, 1821# os-win32.c does not 1822blockdev_ss.add(when: 'CONFIG_POSIX', if_true: files('os-posix.c')) 1823softmmu_ss.add(when: 'CONFIG_WIN32', if_true: [files('os-win32.c')]) 1824 1825common_ss.add(files('cpus-common.c')) 1826 --- 139 unchanged lines hidden (view full) --- 1966 dependencies: qmp_ss.dependencies(), 1967 name_suffix: 'fa', 1968 build_by_default: false) 1969 1970qmp = declare_dependency(link_whole: [libqmp]) 1971 1972libchardev = static_library('chardev', chardev_ss.sources() + genh, 1973 name_suffix: 'fa', |
1990 dependencies: [gnutls], | |
1991 build_by_default: false) 1992 1993chardev = declare_dependency(link_whole: libchardev) 1994 1995libhwcore = static_library('hwcore', sources: hwcore_files + genh, 1996 name_suffix: 'fa', 1997 build_by_default: false) 1998hwcore = declare_dependency(link_whole: libhwcore) --- 202 unchanged lines hidden (view full) --- 2201endif 2202 2203if have_tools 2204 qemu_img = executable('qemu-img', [files('qemu-img.c'), hxdep], 2205 dependencies: [authz, block, crypto, io, qom, qemuutil], install: true) 2206 qemu_io = executable('qemu-io', files('qemu-io.c'), 2207 dependencies: [block, qemuutil], install: true) 2208 qemu_nbd = executable('qemu-nbd', files('qemu-nbd.c'), | 1974 build_by_default: false) 1975 1976chardev = declare_dependency(link_whole: libchardev) 1977 1978libhwcore = static_library('hwcore', sources: hwcore_files + genh, 1979 name_suffix: 'fa', 1980 build_by_default: false) 1981hwcore = declare_dependency(link_whole: libhwcore) --- 202 unchanged lines hidden (view full) --- 2184endif 2185 2186if have_tools 2187 qemu_img = executable('qemu-img', [files('qemu-img.c'), hxdep], 2188 dependencies: [authz, block, crypto, io, qom, qemuutil], install: true) 2189 qemu_io = executable('qemu-io', files('qemu-io.c'), 2190 dependencies: [block, qemuutil], install: true) 2191 qemu_nbd = executable('qemu-nbd', files('qemu-nbd.c'), |
2209 dependencies: [blockdev, qemuutil, gnutls], install: true) | 2192 dependencies: [blockdev, qemuutil], install: true) |
2210 2211 subdir('storage-daemon') 2212 subdir('contrib/rdmacm-mux') 2213 subdir('contrib/elf2dmp') 2214 2215 executable('qemu-edid', files('qemu-edid.c', 'hw/display/edid-generate.c'), 2216 dependencies: qemuutil, 2217 install: true) --- 23 unchanged lines hidden (view full) --- 2241 endif 2242endif 2243 2244subdir('scripts') 2245subdir('tools') 2246subdir('pc-bios') 2247subdir('docs') 2248subdir('tests') | 2193 2194 subdir('storage-daemon') 2195 subdir('contrib/rdmacm-mux') 2196 subdir('contrib/elf2dmp') 2197 2198 executable('qemu-edid', files('qemu-edid.c', 'hw/display/edid-generate.c'), 2199 dependencies: qemuutil, 2200 install: true) --- 23 unchanged lines hidden (view full) --- 2224 endif 2225endif 2226 2227subdir('scripts') 2228subdir('tools') 2229subdir('pc-bios') 2230subdir('docs') 2231subdir('tests') |
2249if gtk.found() | 2232if 'CONFIG_GTK' in config_host |
2250 subdir('po') 2251endif 2252 2253if host_machine.system() == 'windows' 2254 nsis_cmd = [ 2255 find_program('scripts/nsis.py'), 2256 '@OUTPUT@', 2257 get_option('prefix'), 2258 meson.current_source_dir(), 2259 host_machine.cpu(), 2260 '--', 2261 '-DDISPLAYVERSION=' + meson.project_version(), 2262 ] 2263 if build_docs 2264 nsis_cmd += '-DCONFIG_DOCUMENTATION=y' 2265 endif | 2233 subdir('po') 2234endif 2235 2236if host_machine.system() == 'windows' 2237 nsis_cmd = [ 2238 find_program('scripts/nsis.py'), 2239 '@OUTPUT@', 2240 get_option('prefix'), 2241 meson.current_source_dir(), 2242 host_machine.cpu(), 2243 '--', 2244 '-DDISPLAYVERSION=' + meson.project_version(), 2245 ] 2246 if build_docs 2247 nsis_cmd += '-DCONFIG_DOCUMENTATION=y' 2248 endif |
2266 if gtk.found() | 2249 if 'CONFIG_GTK' in config_host |
2267 nsis_cmd += '-DCONFIG_GTK=y' 2268 endif 2269 2270 nsis = custom_target('nsis', 2271 output: 'qemu-setup-' + meson.project_version() + '.exe', 2272 input: files('qemu.nsi'), 2273 build_always_stale: true, 2274 command: nsis_cmd + ['@INPUT@']) --- 68 unchanged lines hidden (view full) --- 2343summary_info += {'target list': ' '.join(target_dirs)} 2344summary_info += {'gprof enabled': config_host.has_key('CONFIG_GPROF')} 2345summary_info += {'sparse enabled': sparse.found()} 2346summary_info += {'strip binaries': get_option('strip')} 2347summary_info += {'profiler': config_host.has_key('CONFIG_PROFILER')} 2348summary_info += {'link-time optimization (LTO)': get_option('b_lto')} 2349summary_info += {'static build': config_host.has_key('CONFIG_STATIC')} 2350if targetos == 'darwin' | 2250 nsis_cmd += '-DCONFIG_GTK=y' 2251 endif 2252 2253 nsis = custom_target('nsis', 2254 output: 'qemu-setup-' + meson.project_version() + '.exe', 2255 input: files('qemu.nsi'), 2256 build_always_stale: true, 2257 command: nsis_cmd + ['@INPUT@']) --- 68 unchanged lines hidden (view full) --- 2326summary_info += {'target list': ' '.join(target_dirs)} 2327summary_info += {'gprof enabled': config_host.has_key('CONFIG_GPROF')} 2328summary_info += {'sparse enabled': sparse.found()} 2329summary_info += {'strip binaries': get_option('strip')} 2330summary_info += {'profiler': config_host.has_key('CONFIG_PROFILER')} 2331summary_info += {'link-time optimization (LTO)': get_option('b_lto')} 2332summary_info += {'static build': config_host.has_key('CONFIG_STATIC')} 2333if targetos == 'darwin' |
2351 summary_info += {'Cocoa support': cocoa.found()} | 2334 summary_info += {'Cocoa support': config_host.has_key('CONFIG_COCOA')} |
2352endif 2353# TODO: add back version 2354summary_info += {'SDL support': sdl.found()} 2355summary_info += {'SDL image support': sdl_image.found()} 2356# TODO: add back version | 2335endif 2336# TODO: add back version 2337summary_info += {'SDL support': sdl.found()} 2338summary_info += {'SDL image support': sdl_image.found()} 2339# TODO: add back version |
2357summary_info += {'GTK support': gtk.found()} | 2340summary_info += {'GTK support': config_host.has_key('CONFIG_GTK')} 2341summary_info += {'GTK GL support': config_host.has_key('CONFIG_GTK_GL')} |
2358summary_info += {'pixman': pixman.found()} 2359# TODO: add back version 2360summary_info += {'VTE support': config_host.has_key('CONFIG_VTE')} 2361summary_info += {'TLS priority': config_host['CONFIG_TLS_PRIORITY']} 2362summary_info += {'GNUTLS support': config_host.has_key('CONFIG_GNUTLS')} 2363# TODO: add back version 2364summary_info += {'libgcrypt': config_host.has_key('CONFIG_GCRYPT')} 2365if config_host.has_key('CONFIG_GCRYPT') --- 171 unchanged lines hidden --- | 2342summary_info += {'pixman': pixman.found()} 2343# TODO: add back version 2344summary_info += {'VTE support': config_host.has_key('CONFIG_VTE')} 2345summary_info += {'TLS priority': config_host['CONFIG_TLS_PRIORITY']} 2346summary_info += {'GNUTLS support': config_host.has_key('CONFIG_GNUTLS')} 2347# TODO: add back version 2348summary_info += {'libgcrypt': config_host.has_key('CONFIG_GCRYPT')} 2349if config_host.has_key('CONFIG_GCRYPT') --- 171 unchanged lines hidden --- |