File

squishy @ 164:fafdcde2e2eb

clix: Import Verse where needed In the olden days of `module()` this would have been a global, but that is no longer the convention nor the case.
author Kim Alvefur <zash@zash.se>
date Wed, 01 Dec 2021 17:25:25 +0100
parent 160:6c1953fbe0fa
line wrap: on
line source

local commands = {
	"send";
	"sendfilecontent";
	"receive";
	"version";
	"ping";
	"bounce";
	"mirror";
	"raw";
	"roster";
	"export";
	"vcard";
	"publish_atom";
	"sendfile";
	"archive";
	"presence";
	"watch_pep";
	"avatar";
	"moderate";
}

for _, cmd in ipairs(commands) do
	Module("clix."..cmd)("clix/"..cmd..".lua")
end

if GetOption "with-verse" then
	Module("verse")(GetOption "with-verse");
end

Main "clix.lua"

Option "executable"
Output "clix.bin"