UNPKG

wasmux

Version:

WebAssembly toolchain for compiling libc and kernel into system-level WASM modules

28 lines (22 loc) 498 B
export default (mk) => { const headers = [ "include/dlfcn.h", ]; const sources = [ "src/dlfcn.cpp", ]; const includes = [ mk.SOURCE_DIR.join("include"), ]; const libraries = [ mk.target("wasmux"), ]; const dl = mk.addStaticLibrary("dl", headers, sources); dl.addPublicIncludes(includes); dl.addPublicLibraries(libraries); mk.install(headers, { destination: mk.INSTALL_INCLUDEDIR, baseDir: "include", }); mk.install(dl, mk.INSTALL_LIBDIR); }