mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-14 18:07:31 +00:00
Merge pull request #8127 from keymanapp/chore/developer/kmcmpdll-src-path
chore(developer): kmcmpdll debug src path
This commit is contained in:
commit
afbb118a33
1 changed files with 9 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue