Skip to content

Commit 4b28c8a

Browse files
authored
Merge pull request #41 from moechofe/main
Allow to set --libpath
2 parents e44b4c2 + 2bce382 commit 4b28c8a

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

package.json

+8
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,14 @@
170170
"type": "boolean",
171171
"description": "Skip unrecognized files instead of copying them to the pdx folder",
172172
"default": false
173+
},
174+
"libPath": {
175+
"type": "array",
176+
"description": "List of paths to additional libraries to include in the build",
177+
"items": {
178+
"type": "string"
179+
},
180+
"default": []
173181
}
174182
}
175183
},

src/pdc/PDCExecutionFactory.ts

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export class PDCExecutionFactory implements TaskExecutionFactory {
4444
verbose,
4545
quiet,
4646
skipUnknown,
47+
libPath,
4748
sdkPath: sdkPathDef,
4849
sourcePath: sourcePathDef,
4950
gamePath: gamePathDef,
@@ -65,6 +66,7 @@ export class PDCExecutionFactory implements TaskExecutionFactory {
6566
verbose,
6667
quiet,
6768
skipUnknown,
69+
libPath,
6870
incrementBuildNumber,
6971
sdkVersion,
7072
});

src/pdc/PDCTaskRunner.ts

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export interface PDCTaskRunnerOptions {
2525
skipUnknown?: boolean;
2626
incrementBuildNumber?: boolean;
2727
sdkVersion: string;
28+
libPath?: string[];
2829
}
2930

3031
/**
@@ -65,6 +66,7 @@ export class PDCTaskRunner implements TaskRunner {
6566
verbose,
6667
quiet,
6768
skipUnknown,
69+
libPath,
6870
sdkVersion,
6971
} = this.options;
7072

@@ -77,6 +79,7 @@ export class PDCTaskRunner implements TaskRunner {
7779
verbose,
7880
quiet,
7981
skipUnknown,
82+
libPath,
8083
sdkVersion,
8184
};
8285
}

src/pdc/getPDCCommand.ts

+7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export interface GetPDCCommandOptions {
1212
verbose?: boolean;
1313
quiet?: boolean;
1414
skipUnknown?: boolean;
15+
libPath?: string[];
1516
sdkVersion: string;
1617
}
1718

@@ -25,6 +26,7 @@ export function getPDCCommand(options: GetPDCCommandOptions) {
2526
verbose,
2627
quiet,
2728
skipUnknown,
29+
libPath,
2830
sdkVersion,
2931
} = options;
3032

@@ -55,6 +57,11 @@ export function getPDCCommand(options: GetPDCCommandOptions) {
5557
if (skipUnknown) {
5658
optionalArgs.push("--skip-unknown");
5759
}
60+
if (libPath) {
61+
libPath.forEach((lib) => {
62+
optionalArgs.push("--libpath", quote(lib));
63+
});
64+
}
5865

5966
const requiredArgs = [
6067
"-sdkpath",

0 commit comments

Comments
 (0)