Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
Init LuaDist for llthreads2-compat module.
Browse files Browse the repository at this point in the history
  • Loading branch information
moteus committed Feb 11, 2014
1 parent d139297 commit 717ea9b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -34,7 +34,7 @@ script:
# - ~/_tools/travis/travis build
- ~/luadist _test install lua-5.1.5 -binary=false -verbose -DCMAKE_TOOLCHAIN_FILE=$TOOLFILE
- ~/luadist _test make . -binary=false -verbose -DCMAKE_TOOLCHAIN_FILE=$TOOLFILE
- cd _test/share/lua-llthreads2/test
- cd _test/share/lua-llthreads2-compat/test
- $TRAVIS_BUILD_DIR/_test/bin/lua test_table_copy.lua
- $TRAVIS_BUILD_DIR/_test/bin/lua test_threads.lua
- $TRAVIS_BUILD_DIR/_test/bin/lua test_llthreads.lua
Expand All @@ -56,7 +56,7 @@ after_script:
# Only watch the master branch
branches:
only:
- dist-llthreads2
- dist-llthreads2-compat

# Notify the LuaDist Dev group if needed
notifications:
Expand Down
6 changes: 4 additions & 2 deletions CMakeLists.txt
@@ -1,6 +1,6 @@
cmake_minimum_required ( VERSION 2.8 )

project ( lua-llthreads2 C )
project ( lua-llthreads2-compat C )
include ( cmake/dist.cmake )
include ( lua )

Expand All @@ -11,7 +11,9 @@ include_directories ( ${CMAKE_CURRENT_SOURCE_DIR}/llthreads2/src )

set ( LUA_LLTHREADS_SRC llthreads2/src/l52util.c llthreads2/src/llthread.c )

install_lua_module ( llthreads2 ${LUA_LLTHREADS_SRC} LINK ${CMAKE_THREAD_LIBS_INIT} )
install_lua_module ( llthreads ${LUA_LLTHREADS_SRC} LINK ${CMAKE_THREAD_LIBS_INIT} )

set_target_properties ( llthreads PROPERTIES COMPILE_DEFINITIONS "LLTHREAD_MODULE_NAME=llthreads" )

install_data ( llthreads2/COPYRIGHT.llthreads llthreads2/README.md llthreads2/LICENSE )
install_test ( llthreads2/test/ )
10 changes: 8 additions & 2 deletions dist.info
@@ -1,4 +1,4 @@
name = "lua-llthreads2"
name = "lua-llthreads2-compat"
version = "0.1.1"

desc = "A simple Lua wrapper for pthreads & WIN32 threads."
Expand All @@ -9,4 +9,10 @@ maintainer = "Alexey Melnichuk"

depends = {
"lua > 5.1"
}
}

-- Same modules names
conflicts = {
"lua-llthreads"
}

0 comments on commit 717ea9b

Please sign in to comment.