Skip to content

Commit

Permalink
Add a findKinc function
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Feb 24, 2024
1 parent c1196f5 commit 7ea9609
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
8 changes: 7 additions & 1 deletion kmake/src/Project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ let scriptdir = '.';
// let lastScriptDir = '.';
let cppEnabled = false;

function findKinc() {
return Project.kincDir;
}

async function loadProject(directory: string, parent: Project, options: any = {}, korefile: string = null): Promise<Project> {
return new Promise<Project>((resolve, reject) => {
projectInProgress += 1;
Expand Down Expand Up @@ -134,6 +138,7 @@ async function loadProject(directory: string, parent: Project, options: any = {
'Options',
'targetDirectory',
'parentProject',
'findKinc',
file)
(
log,
Expand All @@ -155,7 +160,8 @@ async function loadProject(directory: string, parent: Project, options: any = {
directory,
options,
Project.to,
parent).catch(
parent,
findKinc).catch(
(error: any) => {
log.error(error);
reject();
Expand Down
5 changes: 4 additions & 1 deletion lib/kmake/Project.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7ea9609

Please sign in to comment.