diff options
author | Alex Auvolat <alex@adnab.me> | 2016-07-30 23:17:12 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2016-07-30 23:17:12 +0200 |
commit | f58f65c30de315d4419f69a92a708cbed797ff37 (patch) | |
tree | efaaa82089523dc0f7a3b9a6ab4c963550f9b241 /res/keymaps | |
parent | fa5327d4cc5e47656326b8c0c55d23cd71b04462 (diff) | |
download | kogata-f58f65c30de315d4419f69a92a708cbed797ff37.tar.gz kogata-f58f65c30de315d4419f69a92a708cbed797ff37.zip |
Release mode (enables some optimizations) ; fix tests.
Diffstat (limited to 'res/keymaps')
-rw-r--r-- | res/keymaps/bam.lua | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/res/keymaps/bam.lua b/res/keymaps/bam.lua index 0657abc..7aef6c0 100644 --- a/res/keymaps/bam.lua +++ b/res/keymaps/bam.lua @@ -1,12 +1,18 @@ -keymaps = {} +return function(s) + local keymaps = {} -for _, file in pairs(Collect('res/keymaps/*.c')) do - local obj = Compile(host_settings, file) - local tgt = BuildOutput(host_settings, PathBase(file) .. '_tmp') - local bin = Link(host_settings, tgt, obj) + local BO = s.host_settings.cc.Output - local out = BuildOutput(host_settings, PathBase(file)) .. '.km' - AddJob(out, "call font " .. bin, "./" .. bin .. " > " .. out) - AddDependency(out, bin) - table.insert(keymaps, out) + for _, file in pairs(Collect('res/keymaps/*.c')) do + local obj = Compile(s.host_settings, file) + local tgt = BO(s.host_settings, PathBase(file) .. '_tmp') + local bin = Link(s.host_settings, tgt, obj) + + local out = BO(s.host_settings, PathBase(file)) .. '.km' + AddJob(out, "call font " .. bin, "./" .. bin .. " > " .. out) + AddDependency(out, bin) + table.insert(keymaps, out) + end + + return keymaps end |