forked from ni-webtech/appweb-4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.me
180 lines (152 loc) · 5.75 KB
/
main.me
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
/*
main.me -- Main MakeMe File for Appweb
*/
Me.load({
blend: [
"src/paks/*/*.me",
"src/libappweb.me",
"src/modules/modules.me",
"src/utils/utils.me",
"src/server/server.me",
"test/test.me",
"samples/samples.me",
"package/package.me",
"doc/doc.me",
"?local.me",
],
modules: [
'package/service.es',
],
configure: {
requires: [ 'osdep', 'http', 'mpr', 'pcre'],
discovers: [ 'cgi', 'dir', 'esp', 'est', 'mdb', 'ssl', ],
extras: [ 'ejs', 'php', 'sqlite', 'zlib', ],
},
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: {
me: '>=0.8.2',
/*
Installation prefix set
*/
prefixes: 'package-prefixes',
manifest: 'package/manifest.me',
/*
Name and path of the appweb config file. Defaults to "./appweb.conf" if empty.
*/
configFile: 'appweb.conf',
/* Must build locally to build tools */
platforms: [ 'local' ],
/*
Set to true for a static (non-shared library) build
*/
static: false,
http: {
/* Use PAM (Plugable Authentication Module) to store passwords */
pam: true,
webSockets: true,
},
ejs: {
db: true,
mail: true,
mapper: true,
shell: true,
tar: true,
template: true,
web: true,
zlib: true,
},
esp: {
legacy: false,
},
/*
EST SSL stack configuration
*/
est: {
camellia: false,
des: false,
genPrime: false,
padlock: false,
romTables: false,
sslClient: false,
testCerts: false,
xtea: false,
},
mpr: {
/*
Enable logging via mprLog to the log file
The default is to enable logging for both debug and release builds.
*/
logging: true,
manager: 'appman',
alloc: {
// quota: 204800, /* Amount of memory to allocate before a GC */
// cache: 0, /* Amount of memory to buffer for fast allocations */
// check: false, /* Memory allocation debug and stats (slow) */
},
ssl: {
renegotiate: true, /* Enable/Disable SSL renegotiation (defaults to true) */
},
},
/*
Tailor the optimization for size|balanced|speed
*/
tune: 'size',
/*
Initial home directory for the server
*/
serverRoot: '.',
},
usage: {
'ejs.db': 'Enable database support, ejs.db (true|false)',
'ejs.mail': 'Enable mail support, ejs.mail (true|false)',
'ejs.mapper': 'Enable database mapper support, ejs.mapper (true|false)',
'ejs.tar': 'Enable tar support, ejs.tar (true|false)',
'ejs.template': 'Enable template support, ejs.template (true|false)',
'ejs.web': 'Enable web support, ejs.web (true|false)',
'ejs.zlib': 'Enable zlib support, ejs.zlib (true|false)',
'est.camellia': 'Enable the Camellia cipher (true|false)',
'est.des': 'Enable the 3DES cipher (true|false)',
'est.genPrime': 'Enable generation of primes (true|false)',
'est.padlock': 'Enable VIA Padlock acceleration (true|false)',
'est.romTables': 'Enable ROM tables (true|false)',
'est.sslClient': 'Enable SSL/TLS client side (true|false)',
'est.testCerts': 'Enable generation of test certificates (true|false)',
'est.xtea': 'Enable XTEA (true|false)',
'http.pam': 'Enable Unix Pluggable Auth Module (true|false)',
'http.webSockets': 'Enable WebSockets (true|false)',
'mpr.logging': 'Enable application logging (true|false)',
'mpr.debug': 'Enable debug logging (true|false)',
'configFile': 'Path of the appweb.conf file',
'serverRoot': 'Home directory for the server ',
},
targets: {
cgi: {
configurable: true,
description: 'Common Gateway Interface Module',
path: 'src/modules/cgiHandler.c',
depends: [ 'libmod_cgi' ],
},
dir: {
configurable: true,
description: 'Directory Listing Module',
path: 'src/dirHandler.c',
},
/*
See src/server/server.me for the appweb targets
See src/libappweb.me for the appweb library target
See package/package.me for the install/package targets
*/
projects: {
action: "genProjects('-with est')",
},
mine: {
action: "genProjects('-with ejs -with sqlite', 'mine', Config.OS + '-' + Config.CPU)",
},
},
})