aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Melnichuk <mimir@newmail.ru>2014-02-11 17:53:08 +0400
committerAlexey Melnichuk <mimir@newmail.ru>2014-02-11 17:53:08 +0400
commit717ea9b9368d062e431f4e7a7f2c7cc0bcfd3ad0 (patch)
treedccafc1576e22a4041dc86e4b02bf2ea33c3164d
parentd13929706a3b45bd64e0a87e0afc3d45625e888d (diff)
downloadlua-llthreads2-717ea9b9368d062e431f4e7a7f2c7cc0bcfd3ad0.tar.gz
lua-llthreads2-717ea9b9368d062e431f4e7a7f2c7cc0bcfd3ad0.tar.bz2
lua-llthreads2-717ea9b9368d062e431f4e7a7f2c7cc0bcfd3ad0.zip
Init LuaDist for llthreads2-compat module.
-rw-r--r--.travis.yml4
-rw-r--r--CMakeLists.txt6
-rw-r--r--dist.info10
3 files changed, 14 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index 3bb3efa..4a3f495 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -34,7 +34,7 @@ script:
34 # - ~/_tools/travis/travis build 34 # - ~/_tools/travis/travis build
35 - ~/luadist _test install lua-5.1.5 -binary=false -verbose -DCMAKE_TOOLCHAIN_FILE=$TOOLFILE 35 - ~/luadist _test install lua-5.1.5 -binary=false -verbose -DCMAKE_TOOLCHAIN_FILE=$TOOLFILE
36 - ~/luadist _test make . -binary=false -verbose -DCMAKE_TOOLCHAIN_FILE=$TOOLFILE 36 - ~/luadist _test make . -binary=false -verbose -DCMAKE_TOOLCHAIN_FILE=$TOOLFILE
37 - cd _test/share/lua-llthreads2/test 37 - cd _test/share/lua-llthreads2-compat/test
38 - $TRAVIS_BUILD_DIR/_test/bin/lua test_table_copy.lua 38 - $TRAVIS_BUILD_DIR/_test/bin/lua test_table_copy.lua
39 - $TRAVIS_BUILD_DIR/_test/bin/lua test_threads.lua 39 - $TRAVIS_BUILD_DIR/_test/bin/lua test_threads.lua
40 - $TRAVIS_BUILD_DIR/_test/bin/lua test_llthreads.lua 40 - $TRAVIS_BUILD_DIR/_test/bin/lua test_llthreads.lua
@@ -56,7 +56,7 @@ after_script:
56# Only watch the master branch 56# Only watch the master branch
57branches: 57branches:
58 only: 58 only:
59 - dist-llthreads2 59 - dist-llthreads2-compat
60 60
61# Notify the LuaDist Dev group if needed 61# Notify the LuaDist Dev group if needed
62notifications: 62notifications:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 596e496..8b98adc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,6 @@
1cmake_minimum_required ( VERSION 2.8 ) 1cmake_minimum_required ( VERSION 2.8 )
2 2
3project ( lua-llthreads2 C ) 3project ( lua-llthreads2-compat C )
4include ( cmake/dist.cmake ) 4include ( cmake/dist.cmake )
5include ( lua ) 5include ( lua )
6 6
@@ -11,7 +11,9 @@ include_directories ( ${CMAKE_CURRENT_SOURCE_DIR}/llthreads2/src )
11 11
12set ( LUA_LLTHREADS_SRC llthreads2/src/l52util.c llthreads2/src/llthread.c ) 12set ( LUA_LLTHREADS_SRC llthreads2/src/l52util.c llthreads2/src/llthread.c )
13 13
14install_lua_module ( llthreads2 ${LUA_LLTHREADS_SRC} LINK ${CMAKE_THREAD_LIBS_INIT} ) 14install_lua_module ( llthreads ${LUA_LLTHREADS_SRC} LINK ${CMAKE_THREAD_LIBS_INIT} )
15
16set_target_properties ( llthreads PROPERTIES COMPILE_DEFINITIONS "LLTHREAD_MODULE_NAME=llthreads" )
15 17
16install_data ( llthreads2/COPYRIGHT.llthreads llthreads2/README.md llthreads2/LICENSE ) 18install_data ( llthreads2/COPYRIGHT.llthreads llthreads2/README.md llthreads2/LICENSE )
17install_test ( llthreads2/test/ ) 19install_test ( llthreads2/test/ )
diff --git a/dist.info b/dist.info
index 5dfdbaa..efcc861 100644
--- a/dist.info
+++ b/dist.info
@@ -1,4 +1,4 @@
1name = "lua-llthreads2" 1name = "lua-llthreads2-compat"
2version = "0.1.1" 2version = "0.1.1"
3 3
4desc = "A simple Lua wrapper for pthreads & WIN32 threads." 4desc = "A simple Lua wrapper for pthreads & WIN32 threads."
@@ -9,4 +9,10 @@ maintainer = "Alexey Melnichuk"
9 9
10depends = { 10depends = {
11 "lua > 5.1" 11 "lua > 5.1"
12} \ No newline at end of file 12}
13
14-- Same modules names
15conflicts = {
16 "lua-llthreads"
17}
18