forked from hyperledger-iroha/iroha-dco
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Bogdan Vaneev <[email protected]>
- Loading branch information
Showing
14 changed files
with
120 additions
and
70 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 |
---|---|---|
|
@@ -33,3 +33,4 @@ cmake-build* | |
|
||
cmake-build* | ||
.gtm | ||
/.gtm/ |
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
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
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
find_program(DPKG dpkg) | ||
if(DPKG STREQUAL "DPKG-NOTFOUND") | ||
message(WARNING "linux-deb can not be build without `dpkg`.") | ||
else() | ||
|
||
# add deb to list of generators | ||
list(APPEND CPACK_GENERATOR DEB) | ||
|
||
# debian specific | ||
execute_process( | ||
COMMAND dpkg --print-architecture | ||
OUTPUT_VARIABLE arch_raw | ||
) | ||
|
||
remove_line_terminators(${arch_raw} arch) | ||
|
||
message(STATUS "[package-${arch}] linux-deb standalone will be packaged.") | ||
|
||
set(CPACK_DEBIAN_PACKAGE_NAME iroha ) | ||
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${arch}) # dpkg --print-architecture | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libtbb-dev") | ||
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) | ||
set(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS ON) | ||
set(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS_POLICY ON) | ||
# set(CPACK_DEB_COMPONENT_INSTALL ON) | ||
|
||
endif() |
8 changes: 3 additions & 5 deletions
8
cmake/release/linux-rpm.cmake → cmake/release/linux/rpm/iroha.cmake
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 |
---|---|---|
@@ -1,16 +1,14 @@ | ||
find_program(RPMBUILD rpmbuild) | ||
if(RPMBUILD STREQUAL "RPMBUILD-NOTFOUND") | ||
message(WARNING "linux-rpm can not be build without `rpmbuild`. Use -DNO_RPM to disable.") | ||
message(WARNING "linux-rpm can not be build without `rpmbuild`. ") | ||
else() | ||
# add deb to list of generators | ||
list(APPEND CPACK_GENERATOR RPM) | ||
|
||
get_current_architecture(arch) | ||
|
||
message(STATUS "[package-${arch}] linux-rpm standalone will be packaged. Use -DNO_RPM to disable.") | ||
message(STATUS "[package] linux-rpm standalone will be packaged.") | ||
|
||
SET(CPACK_RPM_PACKAGE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE") | ||
SET(CPACK_RPM_PACKAGE_REQUIRES "libstdc++5, libpq-dev, libtbb-dev, libboost-system-dev, libboost-filesystem-dev, libc-ares-dev") | ||
|
||
endif() | ||
|
||
# SET(CPACK_RPM_PACKAGE_REQUIRES "libstdc++5, libpq-dev (>= 9.5), libtbb-dev (>= 4.4), libboost-system-dev (>= 1.56.0), libboost-filesystem-dev (>= 1.56.0), libc-ares-dev (>= 1.10.0)") |
File renamed without changes.
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