meson.build (3b08e40b7abfe8be6020c4c27c93ad85590b9213) | meson.build (1f2146f7ca0f04afc62c4a170ec78bd030f3e72f) |
---|---|
1if not have_ga 2 if get_option('guest_agent_msi').enabled() 3 error('Guest agent MSI requested, but the guest agent is not being built') 4 endif 5 have_qga_vss = false 6 subdir_done() 7endif 8 --- 71 unchanged lines hidden (view full) --- 80)) 81qga_ss.add(when: 'CONFIG_WIN32', if_true: files( 82 'channel-win32.c', 83 'commands-win32.c', 84 'service-win32.c', 85 'vss-win32.c' 86)) 87 | 1if not have_ga 2 if get_option('guest_agent_msi').enabled() 3 error('Guest agent MSI requested, but the guest agent is not being built') 4 endif 5 have_qga_vss = false 6 subdir_done() 7endif 8 --- 71 unchanged lines hidden (view full) --- 80)) 81qga_ss.add(when: 'CONFIG_WIN32', if_true: files( 82 'channel-win32.c', 83 'commands-win32.c', 84 'service-win32.c', 85 'vss-win32.c' 86)) 87 |
88qga_ss = qga_ss.apply(config_host, strict: false) | 88qga_ss = qga_ss.apply(config_targetos, strict: false) |
89 90gen_tlb = [] 91qga_libs = [] 92if targetos == 'windows' 93 qga_libs += ['-lws2_32', '-lwinmm', '-lpowrprof', '-lwtsapi32', '-lwininet', '-liphlpapi', '-lnetapi32', 94 '-lsetupapi', '-lcfgmgr32'] 95 if have_qga_vss 96 qga_libs += ['-lole32', '-loleaut32', '-lshlwapi', '-lstdc++', '-Wl,--enable-stdcall-fixup'] --- 78 unchanged lines hidden (view full) --- 175test_env = environment() 176test_env.set('G_TEST_SRCDIR', meson.current_source_dir()) 177test_env.set('G_TEST_BUILDDIR', meson.current_build_dir()) 178 179# disable qga-ssh-test for now. glib's G_TEST_OPTION_ISOLATE_DIRS triggers 180# the leak detector in build-oss-fuzz Gitlab CI test. we should re-enable 181# this when an alternative is implemented or when the underlying glib 182# issue is identified/fix | 89 90gen_tlb = [] 91qga_libs = [] 92if targetos == 'windows' 93 qga_libs += ['-lws2_32', '-lwinmm', '-lpowrprof', '-lwtsapi32', '-lwininet', '-liphlpapi', '-lnetapi32', 94 '-lsetupapi', '-lcfgmgr32'] 95 if have_qga_vss 96 qga_libs += ['-lole32', '-loleaut32', '-lshlwapi', '-lstdc++', '-Wl,--enable-stdcall-fixup'] --- 78 unchanged lines hidden (view full) --- 175test_env = environment() 176test_env.set('G_TEST_SRCDIR', meson.current_source_dir()) 177test_env.set('G_TEST_BUILDDIR', meson.current_build_dir()) 178 179# disable qga-ssh-test for now. glib's G_TEST_OPTION_ISOLATE_DIRS triggers 180# the leak detector in build-oss-fuzz Gitlab CI test. we should re-enable 181# this when an alternative is implemented or when the underlying glib 182# issue is identified/fix |
183#if 'CONFIG_POSIX' in config_host | 183#if targetos != 'windows' |
184if false 185 srcs = [files('commands-posix-ssh.c')] 186 i = 0 187 foreach output: qga_qapi_outputs 188 if output.startswith('qga-qapi-types') or output.startswith('qga-qapi-visit') 189 srcs += qga_qapi_files[i] 190 endif 191 i = i + 1 192 endforeach 193 qga_ssh_test = executable('qga-ssh-test', srcs, 194 dependencies: [qemuutil], 195 c_args: ['-DQGA_BUILD_UNIT_TEST']) 196 197 test('qga-ssh-test', 198 qga_ssh_test, 199 env: test_env, 200 suite: ['unit', 'qga']) 201endif | 184if false 185 srcs = [files('commands-posix-ssh.c')] 186 i = 0 187 foreach output: qga_qapi_outputs 188 if output.startswith('qga-qapi-types') or output.startswith('qga-qapi-visit') 189 srcs += qga_qapi_files[i] 190 endif 191 i = i + 1 192 endforeach 193 qga_ssh_test = executable('qga-ssh-test', srcs, 194 dependencies: [qemuutil], 195 c_args: ['-DQGA_BUILD_UNIT_TEST']) 196 197 test('qga-ssh-test', 198 qga_ssh_test, 199 env: test_env, 200 suite: ['unit', 'qga']) 201endif |