...
 
......@@ -10,7 +10,7 @@ Uploaders: Mo Zhou <cdluminate@gmail.com>,
Build-Depends: debhelper (>= 12~), googletest, cmake,
Package: cpuinfo
Architecture: any
Architecture: amd64 arm64 armel armhf i386 x32 kfreebsd-i386 kfreebsd-amd64
Multi-Arch: no
Depends: ${shlibs:Depends}, ${misc:Depends}, libcpuinfo0 (= ${binary:Version}),
Description: CPU INFOrmation library (binary utilities)
......@@ -50,7 +50,7 @@ Description: CPU INFOrmation library (binary utilities)
Package: libcpuinfo-dev
Section: libdevel
Architecture: any
Architecture: amd64 arm64 armel armhf i386 x32 kfreebsd-i386 kfreebsd-amd64
Multi-Arch: same
Depends: ${shlibs:Depends}, ${misc:Depends}, libcpuinfo0 (= ${binary:Version}),
Description: CPU INFOrmation library (header file)
......@@ -90,7 +90,7 @@ Description: CPU INFOrmation library (header file)
Package: libcpuinfo0
Section: libs
Architecture: any
Architecture: amd64 arm64 armel armhf i386 x32 kfreebsd-i386 kfreebsd-amd64
Multi-Arch: same
Depends: ${shlibs:Depends}, ${misc:Depends},
Description: CPU INFOrmation library (shared object)
......
obj-*/cache-info usr/bin/
obj-*/cpuid-dump usr/bin/
obj-*/cpu-info usr/bin/
obj-*/isa-info usr/bin/
usr/bin/* usr/bin/
obj-*/cache-info usr/bin/
obj-*/cpuid-dump usr/bin/
obj-*/cpu-info usr/bin/
obj-*/isa-info usr/bin/
obj-*/auxv-dump usr/bin/
obj-*/cache-info usr/bin/
obj-*/cpu-info usr/bin/
obj-*/isa-info usr/bin/
obj-*/auxv-dump usr/bin/
obj-*/cache-info usr/bin/
obj-*/cpu-info usr/bin/
obj-*/isa-info usr/bin/
obj-*/auxv-dump usr/bin/
obj-*/cache-info usr/bin/
obj-*/cpu-info usr/bin/
obj-*/isa-info usr/bin/
obj-*/cache-info usr/bin/
obj-*/cpuid-dump usr/bin/
obj-*/cpu-info usr/bin/
obj-*/isa-info usr/bin/
From: Alexander Gerasiov <gq@debian.org>
Subject: Install various binaries tools with cmake
Install various binaries with common cmake tools to simplify debian/install
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -782,26 +782,31 @@
CPUINFO_TARGET_ENABLE_C99(isa-info)
CPUINFO_TARGET_RUNTIME_LIBRARY(isa-info)
TARGET_LINK_LIBRARIES(isa-info PRIVATE cpuinfo)
+ INSTALL(TARGETS isa-info RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
ADD_EXECUTABLE(cpu-info tools/cpu-info.c)
CPUINFO_TARGET_ENABLE_C99(cpu-info)
CPUINFO_TARGET_RUNTIME_LIBRARY(cpu-info)
TARGET_LINK_LIBRARIES(cpu-info PRIVATE cpuinfo)
+ INSTALL(TARGETS cpu-info RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
ADD_EXECUTABLE(cache-info tools/cache-info.c)
CPUINFO_TARGET_ENABLE_C99(cache-info)
CPUINFO_TARGET_RUNTIME_LIBRARY(cache-info)
TARGET_LINK_LIBRARIES(cache-info PRIVATE cpuinfo)
+ INSTALL(TARGETS cache-info RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
IF(CMAKE_SYSTEM_NAME MATCHES "^(Android|Linux)$" AND CMAKE_SYSTEM_PROCESSOR MATCHES "^(armv[5-8].*|aarch64)$")
ADD_EXECUTABLE(auxv-dump tools/auxv-dump.c)
CPUINFO_TARGET_ENABLE_C99(auxv-dump)
CPUINFO_TARGET_RUNTIME_LIBRARY(auxv-dump)
TARGET_LINK_LIBRARIES(auxv-dump PRIVATE ${CMAKE_DL_LIBS} cpuinfo)
+ INSTALL(TARGETS auxv-dump RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
ADD_EXECUTABLE(cpuinfo-dump tools/cpuinfo-dump.c)
CPUINFO_TARGET_ENABLE_C99(cpuinfo-dump)
CPUINFO_TARGET_RUNTIME_LIBRARY(cpuinfo-dump)
+ INSTALL(TARGETS cpuinfo-dump RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
ENDIF()
IF(CMAKE_SYSTEM_PROCESSOR MATCHES "^(i[3-6]86|AMD64|x86_64)$")
@@ -810,5 +815,6 @@
CPUINFO_TARGET_RUNTIME_LIBRARY(cpuid-dump)
TARGET_INCLUDE_DIRECTORIES(cpuid-dump BEFORE PRIVATE src)
TARGET_INCLUDE_DIRECTORIES(cpuid-dump BEFORE PRIVATE include)
+ INSTALL(TARGETS cpuid-dump RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
ENDIF()
ENDIF()
cmake-soversion
add-binaries-install.patch
......@@ -11,10 +11,6 @@ override_dh_auto_configure:
-DCPUINFO_LIBRARY_TYPE=shared \
-DCPUINFO_LOG_LEVEL=warning \
-DCMAKE_SKIP_RPATH=ON
# arch-specific install file
if [ -r debian/cpuinfo.install.$(DEB_HOST_ARCH) ]; then \
cp debian/cpuinfo.install.$(DEB_HOST_ARCH) debian/cpuinfo.install; \
fi
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
......