changeset 6174:cf7adc238c0c

* installer-files/cmdshell.bat, installer-files/octave-firsttime.vbs, installer-files/octave-launch.c, installer-files/octave.bat, installer-files/octave.vbs: add pkg config path env
author John Donoghue <john.donoghue@ieee.org>
date Tue, 19 Apr 2022 09:26:38 -0400
parents 5216d9e6fa2a
children bee5e6740778
files installer-files/cmdshell.bat installer-files/octave-firsttime.vbs installer-files/octave-launch.c installer-files/octave.bat installer-files/octave.vbs
diffstat 5 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/installer-files/cmdshell.bat	Mon Apr 18 09:40:31 2022 -0400
+++ b/installer-files/cmdshell.bat	Tue Apr 19 09:26:38 2022 -0400
@@ -25,6 +25,9 @@
 if EXIST "%OCTAVE_HOME%mingw32\bin\octave-cli.exe" set OCTAVE_HOME=%OCTAVE_HOME%mingw32\
 if EXIST "%OCTAVE_HOME%mingw64\bin\octave-cli.exe" set OCTAVE_HOME=%OCTAVE_HOME%mingw64\
 
+Rem pkgconfig .pc path
+set PKG_CONFIG_PATH=%OCTAVE_HOME%\lib\pkgconfig
+
 Rem   Set up PATH. Make sure the octave bin dir
 Rem   comes first.
 set PATH=%OCTAVE_HOME%qt5\bin;%OCTAVE_HOME%bin;%OCTAVE_HOME%python;%PATH%
--- a/installer-files/octave-firsttime.vbs	Mon Apr 18 09:40:31 2022 -0400
+++ b/installer-files/octave-firsttime.vbs	Tue Apr 19 09:26:38 2022 -0400
@@ -55,6 +55,9 @@
   wshSystemEnv("QT_PLUGIN_PATH") = OctavePath & "\plugins"
 End If
 
+' pkg config pc path
+wshSystemEnv("PKG_CONFIG_PATH") = OctavePath & "\lib\pkgconfig"
+
 ' set directory to users
 startpath = wshShell.ExpandEnvironmentStrings("%UserProfile%")
 wshShell.CurrentDirectory = startpath
--- a/installer-files/octave-launch.c	Mon Apr 18 09:40:31 2022 -0400
+++ b/installer-files/octave-launch.c	Tue Apr 19 09:26:38 2022 -0400
@@ -217,6 +217,13 @@
     SetEnvironmentVariableW (L"PATH", newpathbuffer);
   }
 
+  /* pkg config pc path */
+  nSize = lstrlenW (path);
+  StringCchCatW (path, PATH_SZ, L"\\lib\\pkgconfig");
+  SetEnvironmentVariableW (L"PKG_CONFIG_PATH", path);
+
+  path[nSize] = L'\0';
+
   /* other env */
   SetEnvironmentVariableW (L"TERM", L"cygwin");
   SetEnvironmentVariableW (L"GNUTERM", L"wxt");
--- a/installer-files/octave.bat	Mon Apr 18 09:40:31 2022 -0400
+++ b/installer-files/octave.bat	Tue Apr 19 09:26:38 2022 -0400
@@ -41,6 +41,9 @@
   set QT_PLUGIN_PATH=%OCT_HOME%\plugins
 )
 
+Rem pkgconfig .pc path
+set PKG_CONFIG_PATH=%OCT_HOME%\lib\pkgconfig
+
 Rem set home if not already set
 if "%HOME%"=="" set HOME=%USERPROFILE%
 if "%HOME%"=="" set HOME=%HOMEDRIVE%%HOMEPATH%
--- a/installer-files/octave.vbs	Mon Apr 18 09:40:31 2022 -0400
+++ b/installer-files/octave.vbs	Tue Apr 19 09:26:38 2022 -0400
@@ -56,6 +56,9 @@
   wshSystemEnv("QT_PLUGIN_PATH") = OctavePath & "\plugins"
 End If
 
+' pkg config pc path
+wshSystemEnv("PKG_CONFIG_PATH") = OctavePath & "\lib\pkgconfig"
+
 ' check args to see if told to run gui or command line
 ' and build other args to use
 GUI_MODE=1