Skip to content

Commit

Permalink
chore: 增加debian打包相关文件
Browse files Browse the repository at this point in the history
  • Loading branch information
mhduiy committed Jun 29, 2024
1 parent 001d981 commit 400f22d
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@ build*
CMakeLists.txt.user*
.idea
.vscode
cmake-*
cmake-*
debian/*
!debian/source/*
!debian/changelog
!debian/control
!debian/rules
obj-*-linux-gnu
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mfloat (0.0.1) unstable; urgency=medium

* chore: init

-- zhangkun <[email protected]> Sat, 29 Jun 2024 21:14:35 +0800
25 changes: 25 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -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.
7 changes: 7 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/make -f

%:
dh $@

override_dh_auto_configure:
dh_auto_configure
6 changes: 6 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 400f22d

Please sign in to comment.