diff options
author | Alexey Melnichuk <mimir@newmail.ru> | 2014-02-11 17:53:08 +0400 |
---|---|---|
committer | Alexey Melnichuk <mimir@newmail.ru> | 2014-02-11 17:53:08 +0400 |
commit | 717ea9b9368d062e431f4e7a7f2c7cc0bcfd3ad0 (patch) | |
tree | dccafc1576e22a4041dc86e4b02bf2ea33c3164d | |
parent | d13929706a3b45bd64e0a87e0afc3d45625e888d (diff) | |
download | lua-llthreads2-717ea9b9368d062e431f4e7a7f2c7cc0bcfd3ad0.tar.gz lua-llthreads2-717ea9b9368d062e431f4e7a7f2c7cc0bcfd3ad0.tar.bz2 lua-llthreads2-717ea9b9368d062e431f4e7a7f2c7cc0bcfd3ad0.zip |
Init LuaDist for llthreads2-compat module.
-rw-r--r-- | .travis.yml | 4 | ||||
-rw-r--r-- | CMakeLists.txt | 6 | ||||
-rw-r--r-- | dist.info | 10 |
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 |
57 | branches: | 57 | branches: |
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 |
62 | notifications: | 62 | notifications: |
diff --git a/CMakeLists.txt b/CMakeLists.txt index 596e496..8b98adc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -1,6 +1,6 @@ | |||
1 | cmake_minimum_required ( VERSION 2.8 ) | 1 | cmake_minimum_required ( VERSION 2.8 ) |
2 | 2 | ||
3 | project ( lua-llthreads2 C ) | 3 | project ( lua-llthreads2-compat C ) |
4 | include ( cmake/dist.cmake ) | 4 | include ( cmake/dist.cmake ) |
5 | include ( lua ) | 5 | include ( lua ) |
6 | 6 | ||
@@ -11,7 +11,9 @@ include_directories ( ${CMAKE_CURRENT_SOURCE_DIR}/llthreads2/src ) | |||
11 | 11 | ||
12 | set ( LUA_LLTHREADS_SRC llthreads2/src/l52util.c llthreads2/src/llthread.c ) | 12 | set ( LUA_LLTHREADS_SRC llthreads2/src/l52util.c llthreads2/src/llthread.c ) |
13 | 13 | ||
14 | install_lua_module ( llthreads2 ${LUA_LLTHREADS_SRC} LINK ${CMAKE_THREAD_LIBS_INIT} ) | 14 | install_lua_module ( llthreads ${LUA_LLTHREADS_SRC} LINK ${CMAKE_THREAD_LIBS_INIT} ) |
15 | |||
16 | set_target_properties ( llthreads PROPERTIES COMPILE_DEFINITIONS "LLTHREAD_MODULE_NAME=llthreads" ) | ||
15 | 17 | ||
16 | install_data ( llthreads2/COPYRIGHT.llthreads llthreads2/README.md llthreads2/LICENSE ) | 18 | install_data ( llthreads2/COPYRIGHT.llthreads llthreads2/README.md llthreads2/LICENSE ) |
17 | install_test ( llthreads2/test/ ) | 19 | install_test ( llthreads2/test/ ) |
@@ -1,4 +1,4 @@ | |||
1 | name = "lua-llthreads2" | 1 | name = "lua-llthreads2-compat" |
2 | version = "0.1.1" | 2 | version = "0.1.1" |
3 | 3 | ||
4 | desc = "A simple Lua wrapper for pthreads & WIN32 threads." | 4 | desc = "A simple Lua wrapper for pthreads & WIN32 threads." |
@@ -9,4 +9,10 @@ maintainer = "Alexey Melnichuk" | |||
9 | 9 | ||
10 | depends = { | 10 | depends = { |
11 | "lua > 5.1" | 11 | "lua > 5.1" |
12 | } \ No newline at end of file | 12 | } |
13 | |||
14 | -- Same modules names | ||
15 | conflicts = { | ||
16 | "lua-llthreads" | ||
17 | } | ||
18 | |||