Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (3)
advice from upstream
· ee7d2502
Michael R. Crusoe
authored
Oct 04, 2019
ee7d2502
build the header only tests
· ec131276
Michael R. Crusoe
authored
Oct 04, 2019
ec131276
try meson
· ade24af1
Michael R. Crusoe
authored
Oct 04, 2019
ade24af1
Show whitespace changes
Inline
Side-by-side
debian/control
View file @
ade24af1
...
...
@@ -5,6 +5,7 @@ Section: libdevel
Priority: optional
Build-Depends: debhelper-compat (= 12),
cmake,
meson,
pkg-config,
libfmt-dev,
libsystemd-dev
...
...
debian/rules
View file @
ade24af1
...
...
@@ -7,15 +7,19 @@ endif
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
%:
dh $@
dh $@
--buildsystem=meson
override_dh_auto_configure:
dh_auto_configure -- -DSPDLOG_BUILD_EXAMPLE=ON \
-DSPDLOG_BUILD_EXAMPLE_HO=ON \
-DSPDLOG_BUILD_BENCH=OFF \
-DSPDLOG_BUILD_TESTS=ON \
-DSPDLOG_BUILD_SHARED=ON \
-DSPDLOG_FMT_EXTERNAL=ON
dh_auto_configure -- -Denable_tests=true -Dexternal_fmt=true -Dlibrary_type=shared
# override_dh_auto_configure:
# dh_auto_configure -- -DSPDLOG_BUILD_EXAMPLE=ON \
# -DSPDLOG_BUILD_EXAMPLE_HO=ON \
# -DSPDLOG_BUILD_BENCH=OFF \
# -DSPDLOG_BUILD_TESTS=ON \
# -DSPDLOG_BUILD_TESTS_HO=ON \
# -DSPDLOG_BUILD_SHARED=ON \
# -DSPDLOG_FMT_EXTERNAL=ON
override_dh_auto_install:
rm -f example/logs/.gitignore
...
...
debian/tests/run-tests
View file @
ade24af1
#!/bin/sh
#!/bin/
ba
sh
#
set -x
#
set -e
set
-x
set
-e
pkg
=
libspdlog-dev
if
[
"
$AUTOPKGTEST_TMP
"
=
""
]
;
then
...
...
@@ -15,6 +15,6 @@ mkdir cmake
cp
/usr/share/doc/libspdlog-dev/utils.cmake cmake/
cd
tests
for
file
in
*
.gz
;
do
gunzip
${
file
}
;
done
cmake
-DSPDLOG_BUILD_TESTS
=
ON
-DSPDLOG_BUILD_TESTS_HO
=
ON
.
make
CFLAGS
=
-DSPDLOG_FMT_EXTERNAL
cmake
-DSPDLOG_BUILD_TESTS
=
ON
-DSPDLOG_BUILD_TESTS_HO
=
ON
-DSPDLOG_FMT_EXTERNAL
=
ON
.
make
CFLAGS
=
-DSPDLOG_FMT_EXTERNAL
spdlog-utests-ho spdlog-utests
make
test