[gimp] app: (meson) fix main executables linking when building for Windows.



commit aeaae6bff2beb358e4db3457d06a9c5ce1f7b5a5
Author: Jehan <jehan girinstud io>
Date:   Sat Sep 21 14:39:42 2019 +0200

    app: (meson) fix main executables linking when building for Windows.
    
    The psapi library had been forgotten.

 app/meson.build | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/app/meson.build b/app/meson.build
index f397a55943..0bf21255d6 100644
--- a/app/meson.build
+++ b/app/meson.build
@@ -160,9 +160,16 @@ if platform_windows
     ],
   )
 
+  # for GimpDashboard and GimpBacktrace
+  psapi_cflags = [ '-DPSAPI_VERSION=1' ]
+  link_args = [ '-lpsapi' ]
+
 else
   console_rc_file = []
   gui_rc_file = []
+
+  psapi_cflags = [ ]
+  link_args = []
 endif
 
 
@@ -174,12 +181,14 @@ gimpconsole_exe = executable('gimp-console-'+gimp_app_version,
     '-DG_LOG_DOMAIN="Gimp"',
     '-DGIMP_APP_GLUE_COMPILATION',
     '-DGIMP_CONSOLE_COMPILATION',
+    psapi_cflags,
   ],
   include_directories: rootInclude,
   dependencies: app_deps,
   link_with: [
     app_links,
   ],
+  link_args: link_args,
   install: true,
 )
 
@@ -190,6 +199,7 @@ gimpmain_exe = executable('gimp-'+gimp_app_version,
   c_args: [
     '-DG_LOG_DOMAIN="Gimp"',
     '-DGIMP_APP_GLUE_COMPILATION',
+    psapi_cflags,
   ],
   include_directories: rootInclude,
   dependencies: app_deps,
@@ -197,5 +207,6 @@ gimpmain_exe = executable('gimp-'+gimp_app_version,
     app_links,
     app_gui_links,
   ],
+  link_args: link_args,
   install: true,
 )


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