This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 100
/
Copy pathmain.bit
109 lines (95 loc) · 2.71 KB
/
main.bit
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
/*
main.bit -- Main Bit File for Appweb
*/
Bit.load({
blend: [
"${BITS}/embedthis.bit",
"src/deps/mpr/mpr.bit",
"src/deps/pcre/pcre.bit",
"src/deps/http/http.bit",
"src/deps/sqlite/sqlite.bit",
"src/libappweb.bit",
"src/esp/esp.bit",
"?src/deps/ejs/ejs.bit",
"src/modules/modules.bit",
"src/utils/utils.bit",
"src/server/server.bit",
"test/test.bit",
"package/package.bit",
"doc/doc.bit",
],
customize: [
/* Optionally load this if present. Feel free to create and customize */
'custom.bit',
],
'+modules': [
'bits/appweb.es',
],
settings: {
product: 'appweb',
title: 'Embedthis Appweb',
company: 'Embedthis',
version: '4.1.0',
buildNumber: '0',
http_port: 80,
ssl_port: 443,
mdb: true,
sdb: false,
manager: 'appman',
pam: true,
packs: [ 'bits/packs' ]
/* Must build locally to build tools */
platforms: [ 'local' ],
sync: ['http', 'mpr', 'pcre', 'sqlite'],
minimal: ['doxygen', 'dsi', 'ejs', 'man', 'man2html', 'pmaker', 'ssl', 'ejscript', 'php', 'matrixssl', 'openssl' ],
_minimal: ['doxygen', 'dsi', 'ejs', 'man', 'man2html', 'pmaker', ],
'+required': [ 'pcre'],
'+optional': [ 'cgi', 'dir', 'doxygen', 'dsi', 'ejs', 'ejscript', 'esp', 'man', 'man2html', 'openssl',
'matrixssl', 'pmaker', 'php', 'sqlite', 'ssl', 'utest', 'zip', 'zlib' ],
},
usage: {
assert: 'Enable program assertions (true|false)',
tune: 'Optimize (size|speed|balanced)',
},
profiles: {
debug: { settings: {
debug: true,
assert: true,
}, },
release: { settings: {
debug: false,
assert: false,
} },
},
packs: {
http: {
enable: true,
path: '${BIN}/http',
},
},
targets: {
install: {
depends: ['build'],
action: "installBinary()",
},
package: {
enable: "'${OS}' == 'linux' || '${OS}' == 'macosx' || '${OS}' == 'windows'",
depends: ['packageBinary', 'packageSource', 'packageCombo'],
},
packageBinary: {
depends: ['build'],
action: "packageBinaryFiles()",
},
packageSource: {
depends: ['build'],
action: "packageSourceFiles()",
},
packageCombo: {
depends: ['build'],
action: "packageComboFiles()",
},
uninstall: {
action: "uninstallBinary()"
},
},
})