Compare commits

...

3 Commits
master ... lmdb

  1. 3
      .gitmodules
  2. 1
      3rdparty/lmdb-safe
  3. 15
      libpkg/CMakeLists.txt
  4. 1
      libpkg/lmdb-safe

3
.gitmodules

@ -1,3 +1,6 @@
[submodule "3rdparty/tabulate"]
path = 3rdparty/tabulate
url = git@github.com:p-ranav/tabulate.git
[submodule "3rdparty/lmdb-safe"]
path = 3rdparty/lmdb-safe
url = git@github.com:ahupowerdns/lmdb-safe.git

1
3rdparty/lmdb-safe

@ -0,0 +1 @@
Subproject commit 469de3c0e2d0d125a39bd78d4564150c0c7e0d1d

15
libpkg/CMakeLists.txt

@ -12,7 +12,9 @@ set(HEADER_FILES
parser/database.h
parser/config.h
parser/utils.h
parser/binary.h)
parser/binary.h
lmdb-safe/lmdb-safe.hh
lmdb-safe/lmdb-typed.hh)
set(SRC_FILES
data/package.cpp
data/database.cpp
@ -27,7 +29,9 @@ set(SRC_FILES
parser/config.cpp
parser/utils.cpp
parser/binary.cpp
parser/siglevel.cpp)
parser/siglevel.cpp
lmdb-safe/lmdb-safe.cc
lmdb-safe/lmdb-typed.cc)
set(TEST_HEADER_FILES tests/parser_helper.h)
set(TEST_SRC_FILES tests/cppunit.cpp tests/parser.cpp tests/parser_binary.cpp tests/parser_helper.cpp tests/data.cpp
tests/utils.cpp)
@ -41,6 +45,7 @@ set(META_APP_DESCRIPTION "C++ library to parse Arch Linux packages and databases
set(META_VERSION_MAJOR 0)
set(META_VERSION_MINOR 0)
set(META_VERSION_PATCH 1)
set(META_TIDY_EXCLUDE_REGEX "lmdb-safe/.*")
# find c++utilities
set(CONFIGURATION_PACKAGE_SUFFIX
@ -57,6 +62,12 @@ use_standard_filesystem(VISIBILITY PUBLIC)
find_package(reflective_rapidjson${CONFIGURATION_PACKAGE_SUFFIX} REQUIRED)
use_reflective_rapidjson(VISIBILITY PUBLIC)
# find lmdb
use_pkg_config_module(PKG_CONFIG_MODULES "lmdb" VISIBILITY PUBLIC)
# configure lmdb-safe
set_source_files_properties(lmdb-safe/lmdb-safe.cc lmdb-safe/lmdb-typed.cc PROPERTIES COMPILE_FLAGS "-Wno-error")
# find 3rd party libraries zlib
use_zlib()
# libarchive

1
libpkg/lmdb-safe

@ -0,0 +1 @@
../3rdparty/lmdb-safe
Loading…
Cancel
Save