-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathio.js.in
17 lines (17 loc) · 945 Bytes
/
io.js.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
if (ENVIRONMENT_IS_NODE) {
console.log('Mounting /working as NODEFS at current directory.');
FS.mkdir('/working');
FS.mount(NODEFS, {root: '.'}, '/working');
console.log('Mounting /source as NODEFS at %s', "@CMAKE_CURRENT_SOURCE_DIR@");
FS.mkdir('/source');
FS.mount(NODEFS, {root: '@CMAKE_CURRENT_SOURCE_DIR@'}, '/source');
console.log('Mounting /build as NODEFS at %s', "@CMAKE_CURRENT_BINARY_DIR@");
FS.mkdir('/build');
FS.mount(NODEFS, {root: '@CMAKE_CURRENT_BINARY_DIR@'}, '/build');
console.log('Mounting /clang-include/ as NODEFS at %s', "@CMAKE_SOURCE_DIR@/lib/clang/lib/Headers");
FS.mkdir('/clang-include');
FS.mount(NODEFS, {root: '@CMAKE_SOURCE_DIR@/lib/clang/lib/Headers'}, '/clang-include');
console.log('Mounting /include/ as NODEFS at %s', "@CMAKE_SOURCE_DIR@/compiler/crt/libc/include");
FS.mkdir('/include');
FS.mount(NODEFS, {root: '@CMAKE_SOURCE_DIR@/compiler/crt/libc/include'}, '/include');
}