From 400f22de38ee6815ea3861ced761a4abbcbcfcdd Mon Sep 17 00:00:00 2001 From: zhangkun <2840441575@qq.com> Date: Sat, 29 Jun 2024 21:37:33 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=A2=9E=E5=8A=A0debian=E6=89=93?= =?UTF-8?q?=E5=8C=85=E7=9B=B8=E5=85=B3=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 8 +++++++- CMakeLists.txt | 2 +- debian/changelog | 5 +++++ debian/control | 25 +++++++++++++++++++++++++ debian/rules | 7 +++++++ src/CMakeLists.txt | 6 ++++++ 6 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100755 debian/rules diff --git a/.gitignore b/.gitignore index d8fafe7..2caf466 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,10 @@ build* CMakeLists.txt.user* .idea .vscode -cmake-* \ No newline at end of file +cmake-* +debian/* +!debian/source/* +!debian/changelog +!debian/control +!debian/rules +obj-*-linux-gnu \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 251c036..3972f3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.16) -project(MFloat VERSION 0.1 LANGUAGES CXX) +project(MFloat VERSION 0.1 DESCRIPTION "MFloat controls" LANGUAGES CXX) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOMOC ON) diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..8cc9684 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +mfloat (0.0.1) unstable; urgency=medium + + * chore: init + + -- zhangkun Sat, 29 Jun 2024 21:14:35 +0800 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3834a0b --- /dev/null +++ b/debian/control @@ -0,0 +1,25 @@ +Source: mfloat +Section: libs +Priority: optional +Maintainer: mhduiy +Build-Depends: + debhelper-compat ( =12), + cmake, + build-essential, + qt6-base-dev, + qt6-declarative-dev, + qt6-base-dev-tools, + qt6-tools-dev, + qml6-module-qtquick-layouts, + qml6-module-qtquick-window, + qml6-module-qt-labs-platform, + qml6-module-qtquick-controls2-styles-chameleon +Standards-Version: 0.0.1 + + +Package: mfloat +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Multi-Arch: same +Description: MFloat controls + Implemented a QML control containing exquisite animations. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..5aa1a3a --- /dev/null +++ b/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_configure: + dh_auto_configure diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3e8afdd..e862e29 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -58,6 +58,12 @@ qt_add_qml_module( ${LIB_NAME} OUTPUT_DIRECTORY "${PLUGIN_OUTPUT_DIR}/MFloat" ) +set_target_properties(${LIB_NAME} PROPERTIES + VERSION ${CMAKE_PROJECT_VERSION} + SOVERSION ${CMAKE_PROJECT_VERSION_MAJOR} + EXPORT_NAME MFloat +) + target_link_libraries(${LIB_NAME} PUBLIC Qt${QT_VERSION_MAJOR}::CorePrivate Qt${QT_VERSION_MAJOR}::QuickPrivate