-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathmain.me
More file actions
141 lines (124 loc) · 3.49 KB
/
main.me
File metadata and controls
141 lines (124 loc) · 3.49 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/*
main.me -- Main MakeMe file
*/
Me.load({
plugins: [ 'installs' ],
blend: [
'src/*/*.me',
'doc/doc.me',
],
configure: {
requires: [ 'osdep', 'ejs', 'mpr', 'http', 'pcre', 'zlib' ],
discovers: [ 'ssl' ],
},
customize: [
/*
The optional custom.me file is loaded after main.me is fully processed. It can
thus override any setting. Feel free to create and customize.
*/
'custom.me',
],
settings: {
platforms: [ 'local' ],
tune: 'size',
integrate: true,
ejscript: {
/*
Control if ejs.* is enabled or disabled
*/
db: true,
mail: true,
mapper: true,
shell: true,
tar: true,
template: true,
web: true,
zlib: true,
},
http: {
/* Use PAM (Plugable Authentication Module) to store passwords */
pam: false,
},
mpr: {
/*
Enable logging via mprLog to the log file. Error messages are always enabled.
The default is to enable logging for both debug and release builds.
*/
logging: true,
},
tune: 'speed',
prefixes: 'install-prefixes',
manifest: 'installs/manifest.me',
},
targets: {
init: {
first: true,
path: 'init',
'generate-make': `
if [ ! -d /usr/include/openssl ] ; then echo
echo Install libssl-dev to get /usr/include/openssl
exit 255
fi
`,
action: ' ',
enable: "me.platform.os == 'linux'",
},
'me.mod': {
path: '${BIN}/me.mod',
files: [
'src/Builder.es',
'src/Loader.es',
'src/MakeMe.es',
'src/Me.es',
'src/Script.es',
'src/Target.es',
'paks/ejs-version/Version.es'
],
precious: true,
build: `
run('"${LBIN}/ejsc" --debug --out "${BIN}/me.mod" --optimize 9 ${FILES}')
`,
message: 'Compile: me.mod',
depends: [ 'ejs.mod' ],
},
me: {
type: 'exe',
path: '${BIN}/me${EXE}',
sources: [ 'src/*.c' ],
active: true,
precious: true,
depends: [ 'libmpr', 'libhttp', 'libejs', 'me.mod', 'runtime' ],
},
pakrun: {
type: 'file',
path: '${BIN}/',
files: [ 'paks/me-*/**', '!**/*.md', '!**/package.json' ],
flatten: false,
precious: true,
},
extras: {
type: 'file',
path: '${BIN}/',
files: [ 'src/Configure.es', 'src/Generate.es' ],
flatten: true,
precious: true,
},
runtime: {
type: 'file',
path: '${BIN}/',
home: 'src',
files: '*.me',
precious: true,
depends: [ 'pakrun' ],
},
projects: {
action: `
genProjects('--with openssl', 'default', ['freebsd-x86', 'linux-x86', 'macosx-x64', 'windows-x86'])
`,
},
mine: {
action: `
genProjects('', 'mine', Config.OS + '-' + Config.CPU)`,
},
},
})