Merge pull request #8127 from keymanapp/chore/developer/kmcmpdll-src-path

chore(developer): kmcmpdll debug src path
This commit is contained in:
Marc Durdin 2023-02-01 09:42:45 +11:00 • committed by GitHub
commit afbb118a33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,12 +139,17 @@ function GetDebugKMCmpDllPath: string;
var
root: string;
const
DevPlatform={$IFDEF WIN64}'x64'{$ELSE}'Win32'{$ENDIF};
DevConfig={$IFDEF DEBUG}'Debug'{$ELSE}'Release'{$ENDIF};
DevSrcCompilerPath = 'developer\src\kmcmpdll\bin\'+DevPlatform+'\'+DevConfig;
DevCompilerPath = 'developer\bin';
begin
if TKeymanPaths.RunningFromSource(root) and
FileExists(root + DevCompilerPath + '\kmcmpdll.dll')
then Result := root + DevCompilerPath
else Result := ExtractFilePath(ParamStr(0));
if TKeymanPaths.RunningFromSource(root) and FileExists(root + DevSrcCompilerPath + '\kmcmpdll.dll') then
Result := root + DevSrcCompilerPath
else if TKeymanPaths.RunningFromSource(root) and FileExists(root + DevCompilerPath + '\kmcmpdll.dll') then
Result := root + DevCompilerPath
else
Result := ExtractFilePath(ParamStr(0));
Result := GetDebugPath('Debug_KMCMPDLLPath', Result);
end;