[libadwaita/msvc: 73/79] examples/meson.build: Fix linking on Visual Studio-like compilers
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/msvc: 73/79] examples/meson.build: Fix linking on Visual Studio-like compilers
- Date: Thu, 30 Dec 2021 03:19:50 +0000 (UTC)
commit 8b48ed9e7076de6c8b93efd8403a6dd55ee9b049
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Jul 26 18:56:55 2021 +0800
examples/meson.build: Fix linking on Visual Studio-like compilers
We must pass in /entry:mainCRTStartup so that we can build the demo program
with 'gui_app: true'.
demo/meson.build | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/demo/meson.build b/demo/meson.build
index 6af941fe..1159ccc2 100644
--- a/demo/meson.build
+++ b/demo/meson.build
@@ -36,6 +36,12 @@ adwaita_demo_sources = [
libadwaita_generated_headers,
]
+linker_args = []
+
+if cc.get_argument_syntax() == 'msvc'
+ linker_args += '/entry:mainCRTStartup'
+endif
+
adwaita_demo = executable('adwaita-@0@-demo'.format(apiversion),
adwaita_demo_sources,
dependencies: libadwaita_dep,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]