-
Notifications
You must be signed in to change notification settings - Fork 126
/
Copy pathconfig.js
60 lines (55 loc) · 1.05 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
const libs = [
'lib/fs.js',
'lib/loop.js',
'lib/path.js',
'lib/process.js',
'lib/build.js',
'lib/repl.js',
'lib/configure.js',
'lib/acorn.js'
]
const version = just.version.just
const v8flags = '--stack-trace-limit=10 --use-strict --disallow-code-generation-from-strings'
const v8flagsFromCommandLine = true
const debug = false
const capabilities = [] // list of allowed internal modules, api calls etc. TBD
const modules = [{
name: 'sys',
obj: [
'modules/sys/sys.o'
],
lib: ['dl', 'rt']
}, {
name: 'fs',
obj: [
'modules/fs/fs.o'
]
}, {
name: 'net',
obj: [
'modules/net/net.o'
]
}, {
name: 'vm',
obj: [
'modules/vm/vm.o'
]
}, {
name: 'epoll',
obj: [
'modules/epoll/epoll.o'
]
}]
const embeds = [
'just.cc',
'Makefile',
'main.cc',
'just.h',
'just.js',
'config.js',
'lib/websocket.js',
'lib/inspector.js'
]
const target = 'just'
const main = 'just.js'
module.exports = { version, libs, modules, capabilities, target, main, v8flags, embeds, static: false, debug, v8flagsFromCommandLine }