[libadwaita/msvc: 1/5] 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: 1/5] examples/meson.build: Fix linking on Visual Studio-like compilers
- Date: Tue, 12 Oct 2021 08:14:29 +0000 (UTC)
commit e89fc7444733b0171f8a5c9a3b64a92e634e984e
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'.
examples/meson.build | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/examples/meson.build b/examples/meson.build
index 798b23cf..d2b06cb5 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -18,10 +18,17 @@ 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,
gui_app: true,
+ link_args: linker_args,
install: true,
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]