initial commit

This commit is contained in:
Jeff Becker 2020-06-02 09:46:51 -04:00
commit 00f442618d
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
6 changed files with 68 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*~
*\#*
build/

8
.gitmodules vendored Normal file
View File

@ -0,0 +1,8 @@
[submodule "external/pybind11"]
path = external/pybind11
url = https://github.com/pybind/pybind11
branch = stable
[submodule "external/loki-mq"]
path = external/loki-mq
url = https://github.com/loki-project/loki-mq
branch = dev

39
CMakeLists.txt Normal file
View File

@ -0,0 +1,39 @@
cmake_minimum_required(VERSION 3.10) # bionic's cmake version
# Has to be set before `project()`, and ignored on non-macos:
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.13 CACHE STRING "macOS deployment target (Apple clang only)")
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
endif()
set(PROJECT_NAME pylokimq)
project(${PROJECT_NAME}
VERSION 0.0.1
DESCRIPTION "pybind layer for lokimq"
LANGUAGES CXX)
option(SUBMODULE_CHECK "Enables checking that vendored library submodules are up to date" ON)
if(SUBMODULE_CHECK)
find_package(Git)
if(GIT_FOUND)
function(check_submodule relative_path)
execute_process(COMMAND git rev-parse "HEAD" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${relative_path} OUTPUT_VARIABLE localHead)
execute_process(COMMAND git rev-parse "HEAD:${relative_path}" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE checkedHead)
string(COMPARE EQUAL "${localHead}" "${checkedHead}" upToDate)
if (upToDate)
message(STATUS "Submodule '${relative_path}' is up-to-date")
else()
message(FATAL_ERROR "Submodule '${relative_path}' is not up-to-date. Please update with\ngit submodule update --init --recursive\nor run cmake with -DSUBMODULE_CHECK=OFF")
endif()
endfunction ()
check_submodule(external/pybind11)
check_submodule(external/loki-mq)
endif()
endif()
add_subdirectory(external/pybind11)
add_subdirectory(external/loki-mq)

16
README.md Normal file
View File

@ -0,0 +1,16 @@
# pylokimq
pybind layer for lokimq
## building
check the source out:
$ git clone --recursive https://github.com/loki-project/pylokimq
$ cd pylokimq
and build with cmake:
$ mkdir build
$ cd build && cmake ..
$ make

1
external/loki-mq vendored Submodule

@ -0,0 +1 @@
Subproject commit d28e39ffeb6de59e80c78aa6db0b221386ab8f0b

1
external/pybind11 vendored Submodule

@ -0,0 +1 @@
Subproject commit 3b1dbebabc801c9cf6f0953a4c20b904d444f879