Kore Update
This commit is contained in:
15
kfile.js
15
kfile.js
@ -11,6 +11,7 @@ let flags = {
|
||||
with_networking: true,
|
||||
with_viewport: true,
|
||||
with_uws: false,
|
||||
with_ssl: true,
|
||||
debug_network: true
|
||||
};
|
||||
|
||||
@ -27,10 +28,11 @@ let root = __dirname;
|
||||
const libdir = root + '/v8/libraries/' + system + '/' + build + '/';
|
||||
|
||||
let project = new Project(flags.name);
|
||||
await project.addProject('Kinc');
|
||||
project.cppStd = "c++17";
|
||||
project.setDebugDir('Deployment');
|
||||
|
||||
await project.addProject('Kore');
|
||||
|
||||
if (fs.existsSync(process.cwd() + '/icon.png')) {
|
||||
project.icon = path.relative(__dirname, process.cwd()) + '/icon.png';
|
||||
}
|
||||
@ -140,11 +142,14 @@ else if (platform === Platform.Linux) {
|
||||
}
|
||||
}
|
||||
else if (platform === Platform.OSX) {
|
||||
project.addLib('v8/libraries/macos/release/libv8_monolith.a');
|
||||
project.addLib('v8_monolith -L' + libdir);
|
||||
if (flags.with_networking) {
|
||||
project.addLib('-framework Foundation');
|
||||
project.addLib('-framework Security');
|
||||
project.addLib('-framework SystemConfiguration');
|
||||
project.addIncludeDir('apple-libressl-sdk/include');
|
||||
project.addLinkerFlag('-L' + root + '/apple-libressl-sdk/lib');
|
||||
project.addLinkerFlag('-lssl');
|
||||
project.addLinkerFlag('-lcrypto');
|
||||
project.addLinkerFlag('-framework Security');
|
||||
project.addLinkerFlag('-framework SystemConfiguration');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user