electron/spec/fixtures/native-addon/uv-dlopen/index.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
415 B
JavaScript
Raw Normal View History

const testLoadLibrary = require('./build/Release/test_module');
const lib = (() => {
switch (process.platform) {
case 'linux':
return `${__dirname}/build/Release/foo.so`;
case 'darwin':
return `${__dirname}/build/Release/foo.dylib`;
case 'win32':
return `${__dirname}/build/Release/libfoo.dll`;
default:
throw new Error('unsupported os');
}
})();
testLoadLibrary(lib);