build lokimq from pkg-config

This commit is contained in:
Jeff Becker 2020-11-09 08:32:10 -05:00
parent 626316e49c
commit fc1a85da79
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
5 changed files with 17 additions and 2 deletions

View File

@ -48,6 +48,8 @@ endif()
add_compile_options(-Wno-deprecated-declarations)
add_subdirectory(external/pybind11)
add_subdirectory(external/loki-mq)
include(FindPkgConfig)
pkg_check_modules(lokimq REQUIRED IMPORTED_TARGET GLOBAL liblokimq)
add_subdirectory(pylokimq)

View File

@ -0,0 +1,13 @@
[Unit]
Description=Lokinet Auth Server
Wants=network-online.target
After=network-online.target
[Service]
User=nobody
SyslogIdentifier=lokinet-auth
ExecStart=/usr/bin/python3 -m lokinet.auth --bind tcp://0.0.0.0:5555/ --cmd /usr/local/exit-provider/check.sh
[Install]
WantedBy=multi-user.target

0
lokinet/__init__.py Normal file
View File

View File

@ -5,6 +5,6 @@ pybind11_add_module(pylokimq MODULE
module.cpp
)
target_link_libraries(pylokimq PUBLIC lokimq::lokimq)
target_link_libraries(pylokimq PUBLIC PkgConfig::lokimq)