meson: also build gi-dump-types on Windows

This commit is contained in:
Christoph Reiter 2020-05-19 19:39:34 +02:00
parent 1b5c989202
commit 06c8219cee
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "gdump.c"
#ifdef G_OS_WIN32
#include <windows.h>
#include <io.h> /* For _get_osfhandle() */
#include <gio/gwin32outputstream.h>
#else

View File

@ -204,7 +204,7 @@ gthash_test = executable('gthash-test', 'gthash-test.c',
test('gthash-test', gthash_test)
if giounix_dep.found()
if giounix_dep.found() or giowin_dep.found()
executable('gi-dump-types', 'gi-dump-types.c',
dependencies: [girepo_dep, giounix_dep])
dependencies: [girepo_dep, giounix_dep, giowin_dep])
endif