-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
21 additions
and
13 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 |
---|---|---|
@@ -1 +1 @@ | ||
* Pascal JEAN <epsilonrt <--//\\--> gmail.com> | ||
* Pascal JEAN <pascal.jean <--//\\--> piduino.org> |
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 |
---|---|---|
|
@@ -19,6 +19,14 @@ cmake_minimum_required (VERSION 3.5 FATAL_ERROR) | |
|
||
project (PIDUINO) | ||
set (PROJECT_DESCRIPTION "C++ library for Pi boards with Arduino API") | ||
set (PROJECT_DESCRIPTION_TEXT "\ | ||
PiDuino is a C ++ library for Pi boards that allows the use of I/O like GPIO,\n\ | ||
I2C, SPI, UART ... with an API as close as possible to the Arduino language.\n\ | ||
The description of Pi cards uses a stored 'Object' model in a database that \n\ | ||
allows to add new models of boards easily.\n\ | ||
Supported SoC models are AllWinner H-Series and Broadcom BCM2708 through 2710." | ||
) | ||
|
||
string(TOLOWER ${CMAKE_PROJECT_NAME} PROJECT_NAME) | ||
|
||
# Appends the cmake/modules path to MAKE_MODULE_PATH variable. | ||
|
@@ -169,11 +177,11 @@ if (PIDUINO_WITH_DOXYGEN_DOC) | |
endif() | ||
|
||
### Packages generation -------------------------------------------------------- | ||
set(CPACK_PACKAGE_VERSION "${PIDUINO_VERSION_MAJOR}.${PIDUINO_VERSION_MINOR}-${PIDUINO_VERSION_PATCH}") | ||
set(CPACK_PACKAGE_VERSION "${PIDUINO_VERSION_MAJOR}.${PIDUINO_VERSION_MINOR}.${PIDUINO_VERSION_PATCH}") | ||
set(CPACK_PACKAGE_VERSION_MAJOR "${PIDUINO_VERSION_MAJOR}") | ||
set(CPACK_PACKAGE_VERSION_MINOR "${PIDUINO_VERSION_MINOR}") | ||
set(CPACK_PACKAGE_VERSION_PATCH "${PIDUINO_VERSION_PATCH}") | ||
set(CPACK_PACKAGE_CONTACT "Pascal JEAN <[email protected]>") | ||
set(CPACK_PACKAGE_CONTACT "Pascal JEAN <[email protected]>") | ||
set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/COPYING.LESSER") | ||
|
||
set(CPACK_GENERATOR "DEB") | ||
|
@@ -248,28 +256,28 @@ if (CPACK_GENERATOR STREQUAL "DEB") | |
endif (dpkg_query) | ||
|
||
message(STATUS "Debian architecture ${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}") | ||
|
||
set(CPACK_DEBIAN_LIB_PACKAGE_NAME "libpiduino") | ||
set(CPACK_COMPONENT_LIB_DESCRIPTION "${CPACK_DEBIAN_LIB_PACKAGE_NAME} - ${PROJECT_DESCRIPTION} (library)") | ||
set(CPACK_COMPONENT_LIB_DESCRIPTION "${CPACK_DEBIAN_LIB_PACKAGE_NAME} - ${PROJECT_DESCRIPTION} (library)\n${PROJECT_DESCRIPTION_TEXT}\n This package provides the shared libriairie itself.") | ||
set(CPACK_DEBIAN_LIB_FILE_NAME "lib${PROJECT_NAME}_${CPACK_PACKAGE_VERSION}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}.deb") | ||
set(CPACK_DEBIAN_LIB_PACKAGE_DEPENDS "libc6,libgcc1,libstdc++6,libcppdb0,libcppdb-sqlite3-0,libudev1") | ||
set(CPACK_DEBIAN_LIB_PACKAGE_SECTION "libs") | ||
|
||
set(CPACK_DEBIAN_DEV_PACKAGE_NAME "libpiduino-dev") | ||
set(CPACK_COMPONENT_DEV_DESCRIPTION "${CPACK_DEBIAN_LIB_PACKAGE_NAME} - ${PROJECT_DESCRIPTION} (development files)") | ||
set(CPACK_COMPONENT_DEV_DESCRIPTION "${CPACK_DEBIAN_LIB_PACKAGE_NAME} - ${PROJECT_DESCRIPTION} (development files)\n${PROJECT_DESCRIPTION_TEXT}\n This package provides the development files.") | ||
set(CPACK_DEBIAN_DEV_FILE_NAME "lib${PROJECT_NAME}-dev_${CPACK_PACKAGE_VERSION}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}.deb") | ||
set(CPACK_DEBIAN_DEV_PACKAGE_DEPENDS "${CPACK_DEBIAN_LIB_PACKAGE_NAME} (= ${CPACK_PACKAGE_VERSION}),pkg-config,git-core") | ||
set(CPACK_DEBIAN_DEV_PACKAGE_SECTION "libdevel") | ||
#set(CPACK_PACKAGE_DESCRIPTION_FILE "${PIDUINO_SRC_DIR}/doc/README-deb.md") | ||
|
||
set(CPACK_DEBIAN_DOC_PACKAGE_NAME "libpiduino-doc") | ||
set(CPACK_COMPONENT_DOC_DESCRIPTION "${CPACK_DEBIAN_LIB_PACKAGE_NAME} - ${PROJECT_DESCRIPTION} (documentation)") | ||
set(CPACK_COMPONENT_DOC_DESCRIPTION "${CPACK_DEBIAN_LIB_PACKAGE_NAME} - ${PROJECT_DESCRIPTION} (documentation)\n${PROJECT_DESCRIPTION_TEXT}\n This package provides the API documentation.") | ||
set(CPACK_DEBIAN_DOC_FILE_NAME "lib${PROJECT_NAME}-doc_${CPACK_PACKAGE_VERSION}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}.deb") | ||
set(CPACK_DEBIAN_DOC_PACKAGE_DEPENDS "${CPACK_DEBIAN_DEV_PACKAGE_NAME} (= ${CPACK_PACKAGE_VERSION})") | ||
set(CPACK_DEBIAN_DOC_PACKAGE_SECTION "libdevel") | ||
|
||
set(CPACK_DEBIAN_UTILS_PACKAGE_NAME "piduino-utils") | ||
set(CPACK_COMPONENT_UTILS_DESCRIPTION "${CPACK_DEBIAN_LIB_PACKAGE_NAME} - ${PROJECT_DESCRIPTION} (utilities)") | ||
set(CPACK_COMPONENT_UTILS_DESCRIPTION "${CPACK_DEBIAN_LIB_PACKAGE_NAME} - ${PROJECT_DESCRIPTION} (utilities)\n${PROJECT_DESCRIPTION_TEXT}\n This package provides the command-line utilities.") | ||
set(CPACK_DEBIAN_UTILS_FILE_NAME "${PROJECT_NAME}-utils_${CPACK_PACKAGE_VERSION}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}.deb") | ||
set(CPACK_DEBIAN_UTILS_PACKAGE_DEPENDS "${CPACK_DEBIAN_LIB_PACKAGE_NAME} (= ${CPACK_PACKAGE_VERSION})") | ||
set(CPACK_DEBIAN_UTILS_PACKAGE_SECTION "utils") | ||
|
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
Modified 2018 by Pascal JEAN ([email protected]) for piduino library | ||
Modified 2018 by Pascal JEAN ([email protected]) for piduino library | ||
*/ | ||
#ifndef Arduino_h | ||
#define Arduino_h | ||
|
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
Modified 28 September 2010 by Mark Sproul | ||
Modified 14 August 2012 by Alarus | ||
Modified 3 December 2013 by Matthijs Kooijman | ||
Modified 2018 by Pascal JEAN ([email protected]) for piduino library | ||
Modified 2018 by Pascal JEAN ([email protected]) for piduino library | ||
*/ | ||
|
||
#ifndef HardwareSerial_h | ||
|
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
Modified 2018 by Pascal JEAN ([email protected]) for piduino library | ||
Modified 2018 by Pascal JEAN ([email protected]) for piduino library | ||
*/ | ||
|
||
#ifndef Print_h | ||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
Modified 23 November 2006 by David A. Mellis | ||
Modified 2018 by Pascal JEAN ([email protected]) for piduino library | ||
Modified 2018 by Pascal JEAN ([email protected]) for piduino library | ||
*/ | ||
|
||
#include <stdlib.h> | ||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
Modified 2012 by Todd Krein ([email protected]) to implement repeated starts | ||
Modified 2018 by Pascal JEAN ([email protected]) for piduino library | ||
Modified 2018 by Pascal JEAN ([email protected]) for piduino library | ||
*/ | ||
#include <Wire.h> | ||
|
||
|