修改pc文件和动态库版本

This commit is contained in:
shaozhimin 2023-11-29 10:37:46 +08:00
parent c5afe06524
commit a7088b18d1
28 changed files with 31 additions and 58 deletions

27
.gitignore vendored
View File

@ -1,27 +0,0 @@
.vscode
build/
/lib/
bin/
obj-x86_64-linux-gnu/
debian/tmp/
debian/files/
debian/libkysdk-disk/
debian/libkysdk-disk-dev/
debian/libkysdk-filesystem/
debian/libkysdk-filesystem-dev/
debian/libkysdk-hardware/
debian/libkysdk-hardware-dev/
debian/libkysdk-package/
debian/libkysdk-package-dev/
debian/libkysdk-proc/
debian/libkysdk-proc-dev/
debian/libkysdk-sysinfo/
debian/libkysdk-sysinfo-dev/
debian/libkysdk-system/
debian/libkysdk-system-dev/
debian/libkysdk-systime/
debian/libkysdk-systime-dev/
debian/libkysdk-processmanage/
debian/libkysdk*.substvars
debian/libkysdk*.debhelper
debian/.debhelper

View File

@ -1,6 +1,6 @@
Name: libkysdk-disk
Description: kysdk system layer disk component
Requires: kysdk-log kysdk-utils libudev blkid
Version: 2.0.0
Version: 2.3.0
Libs: -lkydiskinfo
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -1,6 +1,6 @@
Name: libkysdk-filesystem
Description: kysdk system layer filesystem component
Requires: kysdk-log kysdk-config libsystemd Qt5Core
Version: 2.0.0
Version: 2.3.0
Libs: -lkyfilewatcher
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -1,6 +1,6 @@
Name: libkysdk-hardware
Description: kysdk system layer hardware component
Requires: kysdk-log kysdk-config libsystemd libudev
Version: 2.0.0
Version: 2.3.0
Libs: -lkyhw -lkybluetooth -lkyedid -lkyfan -lkyhwinfo
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -1,5 +1,5 @@
Name: libkysdk-imageproc
Description: kysdk system layer image processment component
Version: 2.0.0
Version: 2.3.0
Libs: -lkyimageproc
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -1,6 +1,6 @@
Name: libkysdk-location
Description: kysdk system layer location
Requires:glib-2.0
Version: 2.0.0
Version: 2.3.0
Libs: -lkylocation
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -1,5 +1,5 @@
Name: libkysdk-net
Description: kysdk system layer netinfo
Version: 2.0.0
Version: 2.3.0
Libs: -lkynetinfo
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -1,5 +1,5 @@
Name: libkysdk-ocr
Description: kysdk system ocr package component
Version: 2.0.0
Version: 2.3.0
Libs: -lkyocr
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -1,5 +1,5 @@
Name: libkysdk-package
Description: kysdk system layer package component
Version: 2.0.0
Version: 2.3.0
Libs: -lkypackage
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -1,6 +1,6 @@
Name: libkysdk-powermanagement
Description: kysdk system layer powermanagement component
Requires: kysdk-log
Version: 2.0.0
Version: 2.3.0
Libs: -lkypowermanagement
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -1,5 +1,5 @@
Name: libkysdk-proc
Description: kysdk system layer process component
Version: 2.0.0
Version: 2.3.0
Libs: -lkyrtinfo
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -1,5 +1,5 @@
Name: libkysdk-realtime
Description: kysdk system layer realtime
Version: 2.0.0
Version: 2.3.0
Libs: -lkyrealtime
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -1,6 +1,6 @@
Name: libkysdk-sysinfo
Description: kysdk system layer sysinfo component
Requires: kysdk-log kysdk-utils libsystemd dbus-1 dbus-glib-1 gio-2.0 gio-unix-2.0 glib-2.0 gmodule-2.0 gmodule-export-2.0 gmodule-no-export-2.0 gobject-2.0 gthread-2.0
Version: 2.0.0
Version: 2.3.0
Libs: -lkysysinfo
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -1,6 +1,6 @@
Name: libkysdk-system
Description: kysdk system layer
Requires: kysdk-disk kysdk-filesystem kysdk-hardware kysdk-package kysdk-proc kysdk-sysinfo kysdk-location kysdk-net kysdk-realtime kysdk-imageproc
Version: 2.0.0
Version: 2.3.0
Libs: -L/usr/lib/*/ -lkydiskinfo -lkyfilewatcher -lkyhw -lkypackage -lkysysinfo -lkyrtinfo -lkylocation -lkynetinfo -lkyrealtime -lkybluetooth -lkyedid -lkyfan -lkyhwinfo -lkyimageproc -Wl,-rpath=/usr/lib/*/
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -1,6 +1,6 @@
Name: libkysdk-systime
Description: kysdk system layer date component
Requires: kysdk-config glib-2.0
Version: 2.0.0
Version: 2.3.0
Libs: -lkydate
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -1,6 +1,6 @@
aux_source_directory(. SOURCESCODE)
add_library(kydiskinfo SHARED ${SOURCESCODE})
set_target_properties(kydiskinfo PROPERTIES VERSION 2.0.0 SOVERSION 1)
set_target_properties(kydiskinfo PROPERTIES VERSION 2.3.0 SOVERSION 1)
add_executable(test-getdiskinfo test/getdiskinfo.c)
add_executable(test-getdisklist test/getdisklist.c)
find_library(UDEV_LIB udev)

View File

@ -5,7 +5,7 @@ aux_source_directory(. SOURCECODE)
find_package(Qt5Core)
include_directories(${Qt5Core_INCLUDE_DIRS})
add_library(kyfilewatcher SHARED ${SOURCECODE})
set_target_properties(kyfilewatcher PROPERTIES VERSION 2.0.0 SOVERSION 1)
set_target_properties(kyfilewatcher PROPERTIES VERSION 2.3.0 SOVERSION 1)
add_executable(kyfilewatcher-test test/kyfilewatcher-test.cpp)
target_link_libraries(kyfilewatcher kylog kyconf systemd pthread ${Qt5Core_LIBRARIES})
target_link_libraries(kyfilewatcher-test kyfilewatcher)

View File

@ -43,19 +43,19 @@ set(hwinfocode
add_library(kyhw SHARED ${hwcode})
set_target_properties(kyhw PROPERTIES VERSION 2.0.0 SOVERSION 1)
set_target_properties(kyhw PROPERTIES VERSION 2.3.0 SOVERSION 1)
add_library(kybluetooth SHARED ${bluetoothcode})
set_target_properties(kybluetooth PROPERTIES VERSION 2.0.0 SOVERSION 1)
set_target_properties(kybluetooth PROPERTIES VERSION 2.3.0 SOVERSION 1)
add_library(kyedid SHARED ${edidcode})
set_target_properties(kyedid PROPERTIES VERSION 2.0.0 SOVERSION 1)
set_target_properties(kyedid PROPERTIES VERSION 2.3.0 SOVERSION 1)
add_library(kyfan SHARED ${fancode})
set_target_properties(kyfan PROPERTIES VERSION 2.0.0 SOVERSION 1)
set_target_properties(kyfan PROPERTIES VERSION 2.3.0 SOVERSION 1)
add_library(kyhwinfo SHARED ${hwinfocode})
set_target_properties(kyhwinfo PROPERTIES VERSION 2.0.0 SOVERSION 1)
set_target_properties(kyhwinfo PROPERTIES VERSION 2.3.0 SOVERSION 1)
add_executable(kync-test test/kync-test.c)
add_executable(kycpu-test test/kycpu-test.c)

View File

@ -2,7 +2,7 @@ project(kyimageproc)
aux_source_directory(. SOURCESCODE)
include_directories(.)
add_library(kyimageproc SHARED ${SOURCESCODE})
set_target_properties(kyimageproc PROPERTIES VERSION 2.0.0 SOVERSION 1)
set_target_properties(kyimageproc PROPERTIES VERSION 2.3.0 SOVERSION 1)
find_package(PkgConfig REQUIRED)
pkg_check_modules(KYSDKLOG kysdk-log)

View File

@ -199,7 +199,7 @@ else()
add_library(kyocr SHARED libkyocr.cpp ocr_main.cpp utility.cpp preprocess_op.cpp postprocess_op.cpp)
target_link_libraries(kyocr ${OpenCV_LIBS} ${DEPS})
endif()
set_target_properties(kyocr PROPERTIES VERSION 2.0.0 SOVERSION 1)
set_target_properties(kyocr PROPERTIES VERSION 2.3.0 SOVERSION 1)
#target_link_libraries(kdkOCR -lleptonica)

View File

@ -1,7 +1,7 @@
find_library(GLIBC_LIB glib-2.0)
include_directories("/usr/include/glib-2.0")
add_library(kylocation SHARED libkylocation.c)
set_target_properties(kylocation PROPERTIES VERSION 2.0.0 SOVERSION 1)
set_target_properties(kylocation PROPERTIES VERSION 2.3.0 SOVERSION 1)
target_link_libraries(kylocation -lglib-2.0 -lgio-2.0)
add_executable(kylocation-test test/kylocation-test.c)
target_link_libraries(kylocation-test kylocation)

View File

@ -1,6 +1,6 @@
aux_source_directory(. CODE)
add_library(kynetinfo SHARED ${CODE})
set_target_properties(kynetinfo PROPERTIES VERSION 2.0.0 SOVERSION 1)
set_target_properties(kynetinfo PROPERTIES VERSION 2.3.0 SOVERSION 1)
add_executable(kynet-test test/kynet-test.c)
target_link_libraries(kynet-test kynetinfo)

View File

@ -1,7 +1,7 @@
aux_source_directory(. SOURCESCODE)
include_directories(.)
add_library(kypackage SHARED ${SOURCESCODE})
set_target_properties(kypackage PROPERTIES VERSION 2.0.0 SOVERSION 1)
set_target_properties(kypackage PROPERTIES VERSION 2.3.0 SOVERSION 1)
add_executable(kypackage-test test/kypackage-test.c)
target_link_libraries(kypackage-test kypackage)

View File

@ -5,7 +5,7 @@ project(kypowermanagement LANGUAGES CXX)
set(POWERMANAGEMENT_TOP_DIR ${CMAKE_CURRENT_LIST_DIR})
add_library(${PROJECT_NAME} SHARED)
set_target_properties(kypowermanagement PROPERTIES VERSION 2.0.0 SOVERSION 1)
set_target_properties(kypowermanagement PROPERTIES VERSION 2.3.0 SOVERSION 1)
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -g)
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_11)

View File

@ -1,7 +1,7 @@
aux_source_directory(. SOURCESCODE)
include_directories(.)
add_library(kyrtinfo SHARED ${SOURCESCODE})
set_target_properties(kyrtinfo PROPERTIES VERSION 2.0.0 SOVERSION 1)
set_target_properties(kyrtinfo PROPERTIES VERSION 2.3.0 SOVERSION 1)
add_executable(kyrtinfo-test test/kyrtinfo-test.c)
add_executable(kyprocess-test test/kyprocess-test.c)
target_link_libraries(kyrtinfo kylog)

View File

@ -2,7 +2,7 @@ aux_source_directory(. CODE)
add_library(kyrealtime SHARED ${CODE})
set_target_properties(kyrealtime PROPERTIES VERSION 2.0.0 SOVERSION 1)
set_target_properties(kyrealtime PROPERTIES VERSION 2.3.0 SOVERSION 1)
add_executable(kyrealtime-test test/kyrealtime-test.c)
target_link_libraries(kyrealtime-test kyrealtime)

View File

@ -6,7 +6,7 @@ find_library(DBUS_LIB dbus-1)
find_library(DBUS_GLIB_LIB dbus-glib-1)
find_package(PkgConfig)
add_library(kysysinfo SHARED ${SOURCESCODE})
set_target_properties(kysysinfo PROPERTIES VERSION 2.0.0 SOVERSION 1)
set_target_properties(kysysinfo PROPERTIES VERSION 2.3.0 SOVERSION 1)
add_executable(kysysinfo-test test/kysysinfo_test.c)
target_link_libraries(kysysinfo dl kylog systemd kyconf X11 Xrandr libcjson.so pci kmod ${GLIBC_LIB} ${DBUS_LIB} ${DBUS_GLIB_LIB})
target_link_libraries(kysysinfo-test kysysinfo libcjson.so)

View File

@ -21,7 +21,7 @@ target_link_libraries(systime ${GLIBC_LIB} ${DBUS_LIB} ${DBUS_GLIB_LIB} ${THREAD
aux_source_directory(. SOURCESCODE)
include_directories(.)
add_library(kydate SHARED ./libkydate.c)
set_target_properties(kydate PROPERTIES VERSION 2.0.0 SOVERSION 1)
set_target_properties(kydate PROPERTIES VERSION 2.3.0 SOVERSION 1)
ADD_EXECUTABLE(kydate_test test/kydate_test.c)
target_link_libraries(kydate ${GLIBC_LIB} kyconf)
target_link_libraries(kydate_test kydate)