Comparison

squishy @ 491:edf078a58f25

squishy: Update for prosody.* namespace
author Matthew Wild <mwild1@gmail.com>
date Tue, 20 Jun 2023 12:59:24 +0100
parent 490:6b2f31da9610
child 492:22844ac3be4e
comparison
equal deleted inserted replaced
490:6b2f31da9610 491:edf078a58f25
1 Output "verse.lua" 1 Output "verse.lua"
2 2
3 -- Verse-specific versions of libraries 3 local VerseModule = Module
4 Module "util.encodings" "libs/encodings.lua" 4 local function ProsodyModule(s)
5 Module "util.hashes" "libs/hashes.lua" 5 return VerseModule("prosody."..s)
6 Module "lib.adhoc" "libs/adhoc.lib.lua"
7 Module "util.table" "libs/table.lua"
8
9 -- Prosody libraries
10 if not GetOption("prosody") then
11 AutoFetchURL "http://hg.prosody.im/0.10/raw-file/tip/?"
12 else
13 AutoFetchURL(GetOption("prosody").."/?")
14 end 6 end
15 7
16 Module "util.sha1" "util/sha1.lua" 8 function ProsodyModules()
17 Module "util.bit" "libs/bit.lua" 9 local Module = ProsodyModule;
10 -- Verse-specific versions of libraries
11 Module "util.encodings" "libs/encodings.lua"
12 Module "util.hashes" "libs/hashes.lua"
13 Module "lib.adhoc" "libs/adhoc.lib.lua"
14 Module "util.table" "libs/table.lua"
18 15
19 Module "util.stanza" "util/stanza.lua" 16 -- Prosody libraries
20 Module "util.timer" "util/timer.lua" 17 if not GetOption("prosody") then
21 Module "util.termcolours" "util/termcolours.lua" 18 AutoFetchURL "http://hg.prosody.im/0.10/raw-file/tip/?"
22 Module "util.uuid" "util/uuid.lua" 19 else
23 Module "util.time" "libs/time.lua" 20 AutoFetchURL(GetOption("prosody").."/?")
24 Module "util.envload" "util/envload.lua" 21 end
25 Module "util.id" "util/id.lua"
26 Module "util.serialization" "util/serialization.lua"
27 Module "util.indexedbheap" "util/indexedbheap.lua"
28 Module "util.xpcall" "util/xpcall.lua"
29 Module "util.array" "util/array.lua"
30 Module "util.format" "util/format.lua"
31 Module "util.promise" "util/promise.lua"
32 Module "net.adns" "net/unbound.lua"
33 Module "util.dns" "util/dns.lua"
34 Module "net.server_select" "net/server_select.lua"
35 Module "util.xmppstream" "util/xmppstream.lua"
36 Module "util.jid" "util/jid.lua"
37 Module "util.events" "util/events.lua"
38 Module "util.dataforms" "util/dataforms.lua"
39 Module "util.caps" "util/caps.lua"
40 Module "util.vcard" "util/vcard.lua"
41 Module "util.logger" "util/logger.lua"
42 Module "util.datetime" "util/datetime.lua"
43 Module "util.json" "util/json.lua"
44 Module "util.xml" "util/xml.lua"
45 Module "util.rsm" "util/rsm.lua"
46 Module "util.random" "util/random.lua"
47 Module "util.ip" "util/ip.lua"
48 Module "util.hex" "util/hex.lua"
49 Module "util.net" "libs/net.lua"
50 Module "util.sslconfig" "util/sslconfig.lua"
51 Module "util.paths" "util/paths.lua"
52 Module "util.mathcompat" "util/mathcompat.lua"
53 Module "util.dnsregistry" "util/dnsregistry.lua"
54 Module "net.tls_luasec" "net/tls_luasec.lua"
55 22
56 Module "util.sasl.scram" "util/sasl/scram.lua" 23 Module "util.sha1" "util/sha1.lua"
57 Module "util.sasl.plain" "util/sasl/plain.lua" 24 Module "util.bit" "libs/bit.lua"
58 Module "util.sasl.anonymous" "util/sasl/anonymous.lua" 25
59 Module "util.sasl.oauthbearer" "util/sasl/oauthbearer.lua" 26 Module "util.stanza" "util/stanza.lua"
27 Module "util.timer" "util/timer.lua"
28 Module "util.termcolours" "util/termcolours.lua"
29 Module "util.uuid" "util/uuid.lua"
30 Module "util.time" "libs/time.lua"
31 Module "util.envload" "util/envload.lua"
32 Module "util.id" "util/id.lua"
33 Module "util.serialization" "util/serialization.lua"
34 Module "util.indexedbheap" "util/indexedbheap.lua"
35 Module "util.xpcall" "util/xpcall.lua"
36 Module "util.array" "util/array.lua"
37 Module "util.format" "util/format.lua"
38 Module "util.promise" "util/promise.lua"
39 Module "net.adns" "net/unbound.lua"
40 Module "util.dns" "util/dns.lua"
41 Module "net.server_select" "net/server_select.lua"
42 Module "util.xmppstream" "util/xmppstream.lua"
43 Module "util.jid" "util/jid.lua"
44 Module "util.events" "util/events.lua"
45 Module "util.dataforms" "util/dataforms.lua"
46 Module "util.caps" "util/caps.lua"
47 Module "util.vcard" "util/vcard.lua"
48 Module "util.logger" "util/logger.lua"
49 Module "util.datetime" "util/datetime.lua"
50 Module "util.json" "util/json.lua"
51 Module "util.xml" "util/xml.lua"
52 Module "util.rsm" "util/rsm.lua"
53 Module "util.random" "util/random.lua"
54 Module "util.ip" "util/ip.lua"
55 Module "util.hex" "util/hex.lua"
56 Module "util.net" "libs/net.lua"
57 Module "util.sslconfig" "util/sslconfig.lua"
58 Module "util.paths" "util/paths.lua"
59 Module "util.mathcompat" "util/mathcompat.lua"
60 Module "util.dnsregistry" "util/dnsregistry.lua"
61 Module "net.tls_luasec" "net/tls_luasec.lua"
62
63 Module "util.http" "util/http.lua"
64 Module "net.http.parser" "net/http/parser.lua"
65 Module "net.http" "net/http.lua"
66 Module "util.x509" "util/x509.lua"
67
68 if GetOption "internal-bit-module" then
69 Module "bit" "libs/bit.lua"
70 end
71 end
72
73 ProsodyModules()
60 74
61 -- Verse plugins 75 -- Verse plugins
62 plugins = { 76 plugins = {
63 -- Login 77 -- Login
64 "tls", "sasl", "bind", -- "session", "legacy", "compression"; 78 "tls", "sasl", "bind", -- "session", "legacy", "compression";
86 "archive"; 100 "archive";
87 "browsing"; 101 "browsing";
88 } 102 }
89 103
90 for _, plugin in ipairs(plugins) do 104 for _, plugin in ipairs(plugins) do
91 Module("verse.plugins."..plugin)("plugins/"..plugin..".lua") 105 VerseModule("verse.plugins."..plugin)("plugins/"..plugin..".lua")
92 end
93
94 Module "util.http" "util/http.lua"
95 Module "net.http.parser" "net/http/parser.lua"
96 Module "net.http" "net/http.lua"
97 Module "util.x509" "util/x509.lua"
98
99 Module "verse.bosh" "bosh.lua"
100
101 if GetOption "internal-bit-module" then
102 Module "bit" "libs/bit.lua"
103 end 106 end
104 107
105 Module "verse.client" "client.lua" 108 -- SASL client mechanisms
106 Module "verse.component" "component.lua" 109 VerseModule "verse.util.sasl.scram" "util/sasl/scram.lua"
110 VerseModule "verse.util.sasl.plain" "util/sasl/plain.lua"
111 VerseModule "verse.util.sasl.anonymous" "util/sasl/anonymous.lua"
112 VerseModule "verse.util.sasl.oauthbearer" "util/sasl/oauthbearer.lua"
113
114 VerseModule "verse.client" "client.lua"
115 VerseModule "verse.component" "component.lua"
116 VerseModule "verse.bosh" "bosh.lua"
107 117
108 -- Main verse file 118 -- Main verse file
109 Main "init.lua" 119 Main "init.lua"