2023-02-08 17:15:19 +01:00
|
|
|
let project = new Project('plugins');
|
|
|
|
|
|
2024-07-22 00:14:37 +02:00
|
|
|
project.addFile('sources/**');
|
2023-02-08 17:15:19 +01:00
|
|
|
|
|
|
|
|
project.addDefine('WITH_PLUGIN_EMBED');
|
|
|
|
|
|
|
|
|
|
if (platform === Platform.Windows) {
|
2024-07-22 00:14:37 +02:00
|
|
|
project.addLib('sources/proc_texsynth/win32/texsynth');
|
2023-02-08 17:15:19 +01:00
|
|
|
}
|
|
|
|
|
else if (platform === Platform.Linux) {
|
2024-07-22 00:14:37 +02:00
|
|
|
process.env.LIBRARY_PATH = project.basedir + "/sources/proc_texsynth/linux";
|
2023-02-08 17:15:19 +01:00
|
|
|
project.addLib('texsynth');
|
|
|
|
|
}
|
|
|
|
|
else if (platform === Platform.OSX) {
|
2024-07-22 00:14:37 +02:00
|
|
|
project.addLib('sources/proc_texsynth/macos/libtexsynth.a');
|
2023-02-08 17:15:19 +01:00
|
|
|
}
|
|
|
|
|
|
2024-05-19 23:36:33 +02:00
|
|
|
return project;
|
2023-02-08 17:15:19 +01:00
|
|
|
|