-
Notifications
You must be signed in to change notification settings - Fork 3
/
lakefile
37 lines (29 loc) · 810 Bytes
/
lakefile
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
PROJECT = 'AesFileEncrypt'
INITLAKEFILE()
DEFINES = L{DEFINES, 'USE_SHA1'}
AesFileEncrypt = c.shared{PROJECT,
base = 'src',
src = {'fileenc/*.c', '*.c'},
needs = {LUA_NEED},
defines = DEFINES,
dynamic = DYNAMIC,
strip = true,
}
AesFileEncryptTest = c.program{'test',
base = J('src', 'fileenc');
src = '*.c';
defines = L{DEFINES, 'TEST'};
dynamic = DYNAMIC;
strip = true;
}
target('build', {AesFileEncrypt, AesFileEncryptTest})
install = target('install', {
file.group{odir = LIBDIR; src = AesFileEncrypt };
file.group{odir = TESTDIR; src = AesFileEncryptTest };
file.group{odir = TESTDIR; src = J('test', '*') };
})
target('test', install, function()
exec_test(AesFileEncryptTest.name)
run_test("test.lua")
end)
default('build')