Skip to content

Commit ea00777

Browse files
committed
Problem: out of date
Solution: regenerate
1 parent c161f94 commit ea00777

File tree

6 files changed

+38
-46
lines changed

6 files changed

+38
-46
lines changed

CMakeLists.txt

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
########################################################################
77
# Project setup
88
########################################################################
9-
cmake_minimum_required(VERSION 2.8.12)
9+
cmake_minimum_required(VERSION 2.8...4.0)
1010
project(zproject)
1111
enable_language(C)
1212
enable_testing()
1313

14-
set(SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
14+
include(GNUInstallDirs)
15+
1516
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
1617
# Select flags
1718
if(MSVC)
@@ -51,7 +52,7 @@ if (NOT HAVE_NET_IF_H)
5152
CHECK_INCLUDE_FILE("net/if.h" HAVE_NET_IF_H)
5253
endif()
5354

54-
file(REMOVE "${SOURCE_DIR}/src/platform.h")
55+
file(REMOVE "${PROJECT_SOURCE_DIR}/src/platform.h")
5556

5657
file(WRITE "${PROJECT_BINARY_DIR}/platform.h.in" "
5758
#cmakedefine HAVE_LINUX_WIRELESS_H
@@ -68,7 +69,7 @@ if (WIN32)
6869
#so the sources have to be compiled as c++
6970
if (MSVC AND NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
7071
enable_language(CXX)
71-
file(GLOB sources "${SOURCE_DIR}/src/*.c")
72+
file(GLOB sources "${PROJECT_SOURCE_DIR}/src/*.c")
7273
set_source_files_properties(
7374
${sources}
7475
PROPERTIES LANGUAGE CXX
@@ -94,7 +95,7 @@ if (CYGWIN)
9495
set(MORE_LIBRARIES)
9596
endif()
9697

97-
list(APPEND CMAKE_MODULE_PATH "${SOURCE_DIR}")
98+
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}")
9899
set(OPTIONAL_LIBRARIES)
99100
set(OPTIONAL_LIBRARIES_STATIC)
100101

@@ -126,7 +127,7 @@ set (zproject_headers
126127
)
127128

128129
source_group ("Header Files" FILES ${zproject_headers})
129-
install(FILES ${zproject_headers} DESTINATION include)
130+
install(FILES ${zproject_headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
130131

131132
########################################################################
132133
# executables
@@ -197,31 +198,30 @@ include(CTest)
197198
# cleanup
198199
########################################################################
199200
if (NOT TARGET distclean)
200-
add_custom_target (distclean @echo Cleaning for source distribution)
201+
if (CMAKE_VERSION VERSION_LESS 3.17)
202+
set(rm_command rm -rf)
203+
else()
204+
set(rm_command ${CMAKE_COMMAND} -E rm -rf --)
205+
endif()
206+
set(cmake_generated ${PROJECT_BINARY_DIR}/CMakeCache.txt
207+
${PROJECT_BINARY_DIR}/cmake_install.cmake
208+
${PROJECT_BINARY_DIR}/Makefile
209+
${PROJECT_BINARY_DIR}/CMakeFiles
210+
${PROJECT_BINARY_DIR}/CTestTestfile.cmake
211+
${PROJECT_BINARY_DIR}/DartConfiguration.tcl
212+
${PROJECT_BINARY_DIR}/Testing
213+
${PROJECT_BINARY_DIR}/compile_commands.json
214+
${PROJECT_BINARY_DIR}/platform.h
215+
${PROJECT_BINARY_DIR}/src/libzproject.pc
216+
${PROJECT_BINARY_DIR}/src/libzproject.so
217+
${PROJECT_BINARY_DIR}/src/zproject_selftest
218+
)
219+
add_custom_target(distclean
220+
COMMAND ${rm_command} CMakeTmp ${cmake_generated}
221+
COMMENT Cleaning for source distribution
222+
)
201223
endif()
202224

203-
set(cmake_generated ${PROJECT_BINARY_DIR}/CMakeCache.txt
204-
${PROJECT_BINARY_DIR}/cmake_install.cmake
205-
${PROJECT_BINARY_DIR}/Makefile
206-
${PROJECT_BINARY_DIR}/CMakeFiles
207-
${PROJECT_BINARY_DIR}/CTestTestfile.cmake
208-
${PROJECT_BINARY_DIR}/DartConfiguration.tcl
209-
${PROJECT_BINARY_DIR}/Testing
210-
${PROJECT_BINARY_DIR}/compile_commands.json
211-
${PROJECT_BINARY_DIR}/platform.h
212-
${PROJECT_BINARY_DIR}/src/libzproject.pc
213-
${PROJECT_BINARY_DIR}/src/libzproject.so
214-
${PROJECT_BINARY_DIR}/src/zproject_selftest
215-
)
216-
217-
add_custom_command(
218-
DEPENDS clean
219-
COMMENT "distribution clean"
220-
COMMAND rm
221-
ARGS -rf CMakeTmp ${cmake_generated}
222-
TARGET distclean
223-
)
224-
225225
include(ClangFormat OPTIONAL)
226226

227227
########################################################################

configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ AC_ARG_WITH(gcov, [AS_HELP_STRING([--with-gcov=yes/no],
7575
[With GCC Code Coverage reporting])],
7676
[ZPROJECT_GCOV="$withval"])
7777

78-
if test "x${ZPROJECT_GCOV}" = "xyes"; then
78+
if test "x${ZPROJECT_GCOV}" == "xyes"; then
7979
CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
8080

8181
if test "x${ZPROJECT_ORIG_CFLAGS}" != "xnone"; then
@@ -94,7 +94,7 @@ AC_ARG_ENABLE(address-sanitizer, [AS_HELP_STRING([--enable-address-sanitizer=yes
9494
[Build with GCC Address Sanitizer instrumentation])],
9595
[ZPROJECT_ASAN="$enableval"])
9696

97-
if test "x${ZPROJECT_ASAN}" = "xyes"; then
97+
if test "x${ZPROJECT_ASAN}" == "xyes"; then
9898
CFLAGS="${CFLAGS} -fsanitize=address"
9999
CXXFLAGS="${CXXFLAGS} -fsanitize=address"
100100

@@ -114,7 +114,7 @@ AC_ARG_ENABLE([bindings-python],
114114
[ZPROJECT_BINDINGS_PYTHON=$enableval],
115115
[ZPROJECT_BINDINGS_PYTHON=no])
116116

117-
if test "x$ZPROJECT_BINDINGS_PYTHON" = "xyes"; then
117+
if test "x$ZPROJECT_BINDINGS_PYTHON" == "xyes"; then
118118
AM_CONDITIONAL(ENABLE_BINDINGS_PYTHON, true)
119119
AC_MSG_RESULT([yes])
120120
else

packaging/debian/compat

Lines changed: 0 additions & 1 deletion
This file was deleted.

packaging/debian/control

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ Section: net
1414
Priority: optional
1515
Maintainer: zproject Developers <[email protected]>
1616
Standards-Version: 4.0.1.0
17-
Build-Depends: debhelper (>= 9),
18-
pkg-config,
17+
Build-Depends: debhelper-compat (= 12),
18+
pkgconf | pkg-config,
1919
generator-scripting-language,
20-
asciidoc-base | asciidoc, xmlto,
21-
dh-autoreconf
20+
asciidoc-base <!nodoc>, xmlto <!nodoc>,
2221

2322
Package: zproject
2423
Architecture: any

packaging/debian/zproject.dsc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ Source: zproject
44
Version: 1.1.0-0.1
55
Maintainer: zproject Developers <[email protected]>
66
Architecture: any
7-
Build-Depends: debhelper (>= 9),
8-
pkg-config,
7+
Build-Depends: debhelper-compat (= 12),
8+
pkgconf | pkg-config,
99
generator-scripting-language,
10-
asciidoc-base | asciidoc, xmlto,
11-
dh-autoreconf
10+
asciidoc-base <!nodoc>, xmlto <!nodoc>,
1211

1312
Files:
1413
7697688bf65a35bc33ae2db51ebb0e3b 818110 zproject.tar.gz

packaging/obs/_service

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@
2323
<param name="files">*/packaging/debian/changelog</param>
2424
<param name="outfilename">debian.changelog</param>
2525
</service>
26-
<service name="extract_file" mode="buildtime">
27-
<param name="archive">*.tar</param>
28-
<param name="files">*/packaging/debian/compat</param>
29-
<param name="outfilename">debian.compat</param>
30-
</service>
3126
<service name="extract_file" mode="buildtime">
3227
<param name="archive">*.tar</param>
3328
<param name="files">*/packaging/debian/control</param>

0 commit comments

Comments
 (0)