build: Fix linking demos on Visual Studio
authorChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 28 Mar 2018 04:13:08 +0000 (12:13 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 2 Apr 2018 11:11:50 +0000 (19:11 +0800)
commit19ce520c2d8b37fd67bed3aaf8dbfa0e62df4454
treefcae8b20511d9d7cf325c1cd754b1efbfd520210
parentd0e46d257c876e2c663d90064faed371f7e6cd4f
build: Fix linking demos on Visual Studio

The demos are now built as GUI programs, which will require the presence
of WinMain() on Visual Studio builds, unless we specify the entry point.

Pass the /entry:mainCRTStartup linker flag on Visual Studio builds for
the demo programs so that they can link properly.

https://bugzilla.gnome.org/show_bug.cgi?id=773299
demos/gtk-demo/meson.build
demos/icon-browser/meson.build
demos/widget-factory/meson.build
meson.build