This repository has been archived by the owner on Sep 13, 2024. It is now read-only.
forked from IchthysMaranatha/asterisk-chan-quectel
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpack: Reorganize variable definitions
Move some definitions of some CPACK-related variables from CMakePresets to CMakeLists.
- Loading branch information
Showing
2 changed files
with
9 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -296,9 +296,15 @@ IF(BUILD_CHAN_QUECTEL_BINARY) | |
IF(NOT DEFINED CPACK_PACKAGE_CONTACT) | ||
SET(CPACK_PACKAGE_CONTACT "[email protected]") | ||
ENDIF() | ||
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.md") | ||
SET(CPACK_SET_DESTDIR ON) | ||
SET(CPACK_STRIP_FILES ON) | ||
SET(CPACK_THREADS 0) | ||
SET(CPACK_ARCHIVE_THREADS 0) | ||
SET(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS_POLICY ">=") | ||
|
||
IF(NOT DEFINED CPACK_GENERATOR) | ||
SET(CPACK_GENERATOR "TGZ;DEB") | ||
SET(CPACK_GENERATOR TGZ DEB) | ||
ENDIF() | ||
SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${CPACK_PACKAGE_ARCHITECTURE}) | ||
SET(CPACK_DEBIAN_FILE_NAME "${CMAKE_PROJECT_NAME}_${CHAN_VER_FSTR}_${CPACK_PACKAGE_ARCHITECTURE}.deb") | ||
|
@@ -307,6 +313,7 @@ IF(BUILD_CHAN_QUECTEL_BINARY) | |
ELSE() | ||
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "${CPACK_PACKAGE_VENDOR} <${CPACK_PACKAGE_CONTACT}>") | ||
ENDIF() | ||
SET(CPACK_DEBIAN_PACKAGE_CONTROL_STRICT_PERMISSION ON) | ||
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libasound2, libsqlite3-0, asterisk") | ||
SET(CPACK_DEBIAN_PACKAGE_SECTION comm) | ||
SET(CPACK_DEBIAN_PACKAGE_PRIORITY optional) | ||
|
@@ -324,7 +331,7 @@ IF(BUILD_CHAN_QUECTEL_BINARY) | |
SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA ${PROJECT_BINARY_DIR}/cpack/deb/conffiles ${PROJECT_BINARY_DIR}/cpack/deb/postinst) | ||
|
||
IF(NOT DEFINED CPACK_SOURCE_GENERATOR) | ||
SET(CPACK_SOURCE_GENERATOR "TGZ") | ||
SET(CPACK_SOURCE_GENERATOR TGZ) | ||
ENDIF() | ||
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}_${CHAN_VER_FSTR}_src") | ||
SET(CPACK_SOURCE_IGNORE_FILES "/build/;/install/;/package/;/test/;/tools/;/\.vscode/;/\.git/;/\.gitignore;/\.gitattributes") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,14 +47,6 @@ | |
"type": "STRING", | ||
"value": "Edmunt Pienkowsky" | ||
}, | ||
"CPACK_SET_DESTDIR": { | ||
"type": "BOOL", | ||
"value": true | ||
}, | ||
"CPACK_RESOURCE_FILE_LICENSE": { | ||
"type": "FILEPATH", | ||
"value": "${sourceDir}/LICENSE.md" | ||
}, | ||
"CPACK_PACKAGE_CONTACT": { | ||
"type": "STRING", | ||
"value": "[email protected]" | ||
|
@@ -67,14 +59,6 @@ | |
"type": "STRING", | ||
"value": "SHA256" | ||
}, | ||
"CPACK_STRIP_FILES": { | ||
"type": "BOOL", | ||
"value": true | ||
}, | ||
"CPACK_THREADS": { | ||
"type": "STRING", | ||
"value": "0" | ||
}, | ||
"CPACK_PACKAGE_DIRECTORY": { | ||
"type": "PATH", | ||
"value": "${sourceDir}/package" | ||
|