kopia lustrzana https://github.com/stlink-org/stlink
General Project Update
- Updated travis CI build configuration - Updated project references - Minor formatting fixespull/925/head
rodzic
82543df141
commit
cadfa94162
105
.travis.yml
105
.travis.yml
|
@ -1,25 +1,96 @@
|
||||||
|
|
||||||
compiler:
|
|
||||||
- gcc
|
|
||||||
- clang
|
|
||||||
|
|
||||||
language: c
|
language: c
|
||||||
|
|
||||||
os:
|
matrix:
|
||||||
- linux
|
include:
|
||||||
- osx
|
### 64-bit builds ###
|
||||||
|
- os: linux
|
||||||
addons:
|
arch: x64
|
||||||
|
compiler: gcc-5
|
||||||
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources: ['ubuntu-toolchain-r-test']
|
||||||
- sourceline: 'ppa:ubuntu-toolchain-r/test'
|
packages: ['gcc-5', 'libusb-1.0.0-dev']
|
||||||
|
- os: linux
|
||||||
|
arch: x64
|
||||||
|
compiler: gcc-7
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources: ['ubuntu-toolchain-r-test']
|
||||||
|
packages: ['gcc-7', 'libusb-1.0.0-dev']
|
||||||
|
- os: linux
|
||||||
|
arch: x64
|
||||||
|
compiler: gcc-9
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources: ['ubuntu-toolchain-r-test']
|
||||||
|
packages: ['gcc-9', 'libusb-1.0.0-dev']
|
||||||
|
- os: linux
|
||||||
|
arch: x64
|
||||||
|
compiler: clang-3.7
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-3.7']
|
||||||
|
packages: ['clang-3.7', 'libusb-1.0.0-dev']
|
||||||
|
- os: linux
|
||||||
|
arch: x64
|
||||||
|
compiler: clang-6.0
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-bionic-6.0']
|
||||||
|
packages: ['clang-6.0', 'libusb-1.0.0-dev']
|
||||||
|
|
||||||
|
### 32-bit builds ###
|
||||||
|
- os: linux
|
||||||
|
arch: x86
|
||||||
|
compiler: gcc-5
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources: ['ubuntu-toolchain-r-test']
|
||||||
|
packages: ['gcc-5', 'libusb-1.0.0-dev']
|
||||||
|
- os: linux
|
||||||
|
arch: x86
|
||||||
|
compiler: gcc-6
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources: ['ubuntu-toolchain-r-test']
|
||||||
|
packages: ['gcc-6', 'libusb-1.0.0-dev']
|
||||||
|
- os: linux
|
||||||
|
arch: x86
|
||||||
|
compiler: gcc-7
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources: ['ubuntu-toolchain-r-test']
|
||||||
|
packages: ['gcc-7', 'libusb-1.0.0-dev']
|
||||||
|
- os: linux
|
||||||
|
arch: x86
|
||||||
|
compiler: clang-3.7
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-3.7']
|
||||||
|
packages: ['clang-3.7', 'libusb-1.0.0-dev']
|
||||||
|
- os: linux
|
||||||
|
arch: x86
|
||||||
|
compiler: clang-6.0
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-bionic-6.0']
|
||||||
|
packages: ['clang-6.0', 'libusb-1.0.0-dev']
|
||||||
|
|
||||||
|
### macOS ###
|
||||||
|
- os: osx
|
||||||
|
compiler: gcc
|
||||||
|
addons:
|
||||||
|
homebrew:
|
||||||
packages:
|
packages:
|
||||||
|
- libusb
|
||||||
|
- gcc
|
||||||
|
- os: osx
|
||||||
|
compiler: clang
|
||||||
|
addons:
|
||||||
|
homebrew:
|
||||||
|
packages:
|
||||||
|
- libusb
|
||||||
- clang
|
- clang
|
||||||
- g++-6
|
|
||||||
- gcc-6
|
|
||||||
- libusb-1.0.0-dev
|
|
||||||
- p7zip
|
|
||||||
- mingw-w64
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
|
|
|
@ -17,12 +17,12 @@ if (IS_DIRECTORY ${LIB_INSTALL_DIR})
|
||||||
set(STLINK_LIBRARY_PATH "${LIB_INSTALL_DIR}")
|
set(STLINK_LIBRARY_PATH "${LIB_INSTALL_DIR}")
|
||||||
else ()
|
else ()
|
||||||
set(LIB_INSTALL_DIR "lib" CACHE PATH "Main library directory")
|
set(LIB_INSTALL_DIR "lib" CACHE PATH "Main library directory")
|
||||||
set(STLINK_LIBRARY_PATH "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}" )
|
set(STLINK_LIBRARY_PATH "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (IS_DIRECTORY ${INCLUDE_INSTALL_DIR})
|
if (IS_DIRECTORY ${INCLUDE_INSTALL_DIR})
|
||||||
set(INCLUDE_INSTALL_DIR ${INCLUDE_INSTALL_DIR} CACHE PATH "Main include directory")
|
set(INCLUDE_INSTALL_DIR ${INCLUDE_INSTALL_DIR} CACHE PATH "Main include directory")
|
||||||
set(STLINK_INCLUDE_PATH "${INCLUDE_INSTALL_DIR}" )
|
set(STLINK_INCLUDE_PATH "${INCLUDE_INSTALL_DIR}")
|
||||||
else ()
|
else ()
|
||||||
set(INCLUDE_INSTALL_DIR "include" CACHE PATH "Main include directory")
|
set(INCLUDE_INSTALL_DIR "include" CACHE PATH "Main include directory")
|
||||||
set(STLINK_INCLUDE_PATH "${CMAKE_INSTALL_PREFIX}/${INCLUDE_INSTALL_DIR}")
|
set(STLINK_INCLUDE_PATH "${CMAKE_INSTALL_PREFIX}/${INCLUDE_INSTALL_DIR}")
|
||||||
|
@ -148,7 +148,7 @@ set_target_properties(
|
||||||
VERSION ${STLINK_SHARED_VERSION}
|
VERSION ${STLINK_SHARED_VERSION}
|
||||||
)
|
)
|
||||||
|
|
||||||
# Link shared library with apple OS libraries
|
# Link shared library with Apple macOS libraries
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
find_library(ObjC objc)
|
find_library(ObjC objc)
|
||||||
find_library(CoreFoundation CoreFoundation)
|
find_library(CoreFoundation CoreFoundation)
|
||||||
|
@ -178,9 +178,9 @@ add_library(
|
||||||
${STLINK_LIB_STATIC} STATIC
|
${STLINK_LIB_STATIC} STATIC
|
||||||
${STLINK_HEADERS} # header files for ide projects generated by cmake
|
${STLINK_HEADERS} # header files for ide projects generated by cmake
|
||||||
${STLINK_SOURCE}
|
${STLINK_SOURCE}
|
||||||
)
|
)
|
||||||
|
|
||||||
# Link shared library with apple OS libraries
|
# Link shared library with Apple macOS libraries
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
find_library(ObjC objc)
|
find_library(ObjC objc)
|
||||||
find_library(CoreFoundation CoreFoundation)
|
find_library(CoreFoundation CoreFoundation)
|
||||||
|
@ -258,6 +258,8 @@ if (NOT TARGET uninstall)
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
|
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
|
||||||
IMMEDIATE @ONLY
|
IMMEDIATE @ONLY
|
||||||
)
|
)
|
||||||
add_custom_target(uninstall
|
add_custom_target(
|
||||||
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
|
uninstall COMMAND ${CMAKE_COMMAND}
|
||||||
|
-P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake
|
||||||
|
)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
10
README.md
10
README.md
|
@ -2,11 +2,11 @@ Open source version of the STMicroelectronics STlink Tools
|
||||||
==========================================================
|
==========================================================
|
||||||
|
|
||||||
[](https://raw.githubusercontent.com/hyperium/hyper/master/LICENSE)
|
[](https://raw.githubusercontent.com/hyperium/hyper/master/LICENSE)
|
||||||
[](https://github.com/texane/stlink/releases/latest)
|
[](https://github.com/stlink-org/stlink/releases/latest)
|
||||||
[](https://github.com/texane/stlink/releases/master)
|
[](https://github.com/stlink-org/stlink/releases/master)
|
||||||
[](https://github.com/texane/stlink/releases)
|
[](https://github.com/stlink-org/stlink/releases)
|
||||||
[](https://travis-ci.org/texane/stlink)
|
[](https://travis-ci.org/stlink-org/stlink)
|
||||||
[](https://travis-ci.org/texane/stlink)
|
[](https://travis-ci.org/stlink-org/stlink)
|
||||||
|
|
||||||
Recent new features and bugfixes can be found in the [Changelog](CHANGELOG.md) of this software project.
|
Recent new features and bugfixes can be found in the [Changelog](CHANGELOG.md) of this software project.
|
||||||
|
|
||||||
|
|
|
@ -16,12 +16,11 @@ elseif (WIN32)
|
||||||
elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND EXISTS "/etc/debian_version")
|
elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND EXISTS "/etc/debian_version")
|
||||||
message(STATUS "Debian-based Linux OS detected")
|
message(STATUS "Debian-based Linux OS detected")
|
||||||
set(CPACK_GENERATOR "DEB")
|
set(CPACK_GENERATOR "DEB")
|
||||||
|
|
||||||
if ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64")
|
if ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64")
|
||||||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${PROJECT_VERSION}-amd64" )
|
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${PROJECT_VERSION}-amd64" )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/texane/stlink")
|
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/stlink-org/stlink")
|
||||||
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Luca Boccassi")
|
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Luca Boccassi")
|
||||||
set(CPACK_PACKAGE_CONTACT "bluca@debian.org")
|
set(CPACK_PACKAGE_CONTACT "bluca@debian.org")
|
||||||
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "STM32 STlink programmer tools")
|
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "STM32 STlink programmer tools")
|
||||||
|
|
Ładowanie…
Reference in New Issue