Skip to content

Commit

Permalink
Also pass the graphics-API to the shader-compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Aug 20, 2023
1 parent 99f8928 commit 54afb07
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion kmake/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,14 +361,16 @@ function compileKong(project: Project, from: string, to: string, platform: strin
}

if (compilerPath !== '') {
to = path.join(to, 'Kong-' + platform);
to = path.join(to, 'Kong-' + platform + '-' + Options.graphicsApi);
fs.ensureDirSync(to);

project.addFile(to + '/**', undefined);

let params: string[] = [];
params.push('-p');
params.push(platform);
params.push('-a');
params.push(Options.graphicsApi);
for (const dir of dirs) {
params.push('-i');
params.push(dir);
Expand Down
4 changes: 3 additions & 1 deletion lib/kmake/main.js

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

Loading

0 comments on commit 54afb07

Please sign in to comment.