diff options
| author | moteus <mimir@newmail.ru> | 2013-12-30 18:47:28 +0400 |
|---|---|---|
| committer | moteus <mimir@newmail.ru> | 2013-12-30 18:47:28 +0400 |
| commit | 3bae474eb5e23c44c77ea414b26aea58d00bdc49 (patch) | |
| tree | 6b2bdbae2172b3530918428fd2e9ee8ac90ca3f3 /lakefile | |
| parent | 07819f3f402709890194a19b0525df426a097e76 (diff) | |
| download | lua-llthreads2-3bae474eb5e23c44c77ea414b26aea58d00bdc49.tar.gz lua-llthreads2-3bae474eb5e23c44c77ea414b26aea58d00bdc49.tar.bz2 lua-llthreads2-3bae474eb5e23c44c77ea414b26aea58d00bdc49.zip | |
Add. lakefile
Diffstat (limited to 'lakefile')
| -rw-r--r-- | lakefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/lakefile b/lakefile new file mode 100644 index 0000000..95e5d8e --- /dev/null +++ b/lakefile | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | PROJECT = 'llthreads' | ||
| 2 | |||
| 3 | INITLAKEFILE() | ||
| 4 | |||
| 5 | DEFINES = L{DEFINES, | ||
| 6 | IF(WINDOWS, 'DLL_EXPORT', ''); | ||
| 7 | IF(not MSVC, 'USE_PTHREAD', ''); | ||
| 8 | } | ||
| 9 | |||
| 10 | core = c.shared{PROJECT, | ||
| 11 | base = 'src', | ||
| 12 | src = '*.c', | ||
| 13 | needs = LUA_NEED, | ||
| 14 | defines = DEFINES, | ||
| 15 | dynamic = DYNAMIC, | ||
| 16 | strip = true, | ||
| 17 | libs = IF(not MSVC, 'pthread'); | ||
| 18 | } | ||
| 19 | |||
| 20 | target('build', core) | ||
| 21 | |||
| 22 | install = target('install', { | ||
| 23 | file.group{odir=LIBDIR; src = core }; | ||
| 24 | file.group{odir=TESTDIR; src = J('test', '*'); recurse = true }; | ||
| 25 | }) | ||
| 26 | |||
| 27 | target('test', install, function() | ||
| 28 | run_test('test_register_llthreads.lua') | ||
| 29 | run_test('test_join_timeout.lua') | ||
| 30 | run_test('test_llthreads.lua') | ||
| 31 | run_test('test_table_copy.lua') | ||
| 32 | run_test('test_threads.lua') | ||
| 33 | run_test('test_join_timeout.lua') | ||
| 34 | run_test('test_join_detach.lua') | ||
| 35 | run_test('test_register_ffi.lua') | ||
| 36 | run_test('test_logger.lua') | ||
| 37 | run_test('test_pass_cfunction.lua') | ||
| 38 | |||
| 39 | if not test_summary() then | ||
| 40 | quit("test fail") | ||
| 41 | end | ||
| 42 | end) | ||
| 43 | |||
