[gjs/meson.msvc: 5/8] meson.build: Don't do 'ln -s ...' on MSVC builds



commit e0b7562829286cce8f60490f4bc058ff8503d0d3
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Oct 25 13:06:00 2019 +0800

    meson.build: Don't do 'ln -s ...' on MSVC builds
    
    This is only applicable on *NIX builds.

 meson.build | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 7263fbe3..329a8c35 100644
--- a/meson.build
+++ b/meson.build
@@ -547,9 +547,11 @@ gjs_console = executable('gjs-console', gjs_console_srcs,
     cpp_args: extra_libgjs_cpp_args,
     dependencies: libgjs_dep, install: true)
 
-meson.add_install_script('sh', '-c',
-    'ln -sf gjs-console ${DESTDIR}/${MESON_INSTALL_PREFIX}/@0@/gjs'.format(
-        get_option('bindir')))
+if cxx.get_id() != 'msvc'
+    meson.add_install_script('sh', '-c',
+        'ln -sf gjs-console ${DESTDIR}/${MESON_INSTALL_PREFIX}/@0@/gjs'.format(
+            get_option('bindir')))
+endif
 
 ### Install data files #########################################################
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]