Skip to content

Commit

Permalink
Merge pull request #6 from August2111/dev-branch
Browse files Browse the repository at this point in the history
Release 7.41.21 (from dev-branch)
  • Loading branch information
August2111 committed Dec 28, 2023
2 parents 575cc1d + ce0ce9d commit a8714b3
Show file tree
Hide file tree
Showing 124 changed files with 23,066 additions and 21,431 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,20 @@ on:
- '.github/workflows/build-docs.yml'
branches:
- master
- dev-branch
pull_request:
paths:
- 'doc/**'
- '.github/workflows/build-docs.yml'
branches:
- master
- dev-branch
env:
TARGET: manual
TARGET_FINAL: XCSoar-docs
TARGET_FINAL: OpenSoar-docs
TARGET_EXT: pdf
jobs:
xcsoar-compile:
opensoar-compile:
runs-on: ubuntu-latest
steps:
- id: checkout
Expand All @@ -35,10 +37,10 @@ jobs:
- name: XCSoar generate Docs
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/${{ steps.repository.outputs.lowercase }}/xcsoar-build:latest
options: -v ${{ github.workspace }}:/opt/xcsoar
image: ghcr.io/${{ steps.repository.outputs.lowercase }}/opensoar-build:latest
options: -v ${{ github.workspace }}:/opt/opensoar
run: |
cd /opt/xcsoar
cd /opt/opensoar
make manual V=2
- name: upload artifact
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ on:

env:
DEBUG: y
BOOST: boost_1_83_0
BOOST: boost_1_84_0

jobs:
build-ubuntu:
Expand Down
128 changes: 128 additions & 0 deletions .github/workflows/cmake-native.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
---
on:
workflow_dispatch:
push:
paths-ignore:
- 'cloud/**'
- 'doc/**'
- 'fuzzer/**'
- 'ide/**'
- 'kobo/**'
- 'python/**'
- '.github/workflows/build-container.yml'
- '.github/workflows/build-unix.yml'
branches:
- master
- dev-branch

pull_request:
paths-ignore:
- 'cloud/**'
- 'doc/**'
- 'fuzzer/**'
- 'ide/**'
- 'kobo/**'
- 'python/**'
- '.github/workflows/build-container.yml'
- '.github/workflows/build-unix.yml'
branches:
- master
- dev-branch

env:
DEBUG: y
BOOST: boost_1_84_0

jobs:
build-windows:
runs-on: ubuntu-22.04

env:
TARGET: WIN64
TARGET_BIN: OpenSoar
TARGET_FINAL: OpenSoar-debug
TARGET_EXT: .exe

steps:
- name: set vars for push
if: github.event_name == 'push'
run: |
echo "DEBUG=n" >> $GITHUB_ENV
echo "TARGET_FINAL=OpenSoar" >> $GITHUB_ENV
- id: checkout
uses: actions/checkout@v3
with:
submodules: true
- id: cache-ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: ${{ env.TARGET }}

- name: "Cache Boost"
uses: actions/cache@v3
with:
key: ${{ env.BOOST }}-${{ hashFiles('lib/boost/patches/**') }}
path: |
${{ github.workspace }}/output/download/${{ env.BOOST }}.tar.bz2
${{ github.workspace }}/output/src/stamp-${{ env.BOOST }}
${{ github.workspace }}/output/src/${{ env.BOOST }}/boost
- name: "Cache third-party libraries"
uses: actions/cache@v3
with:
key: ${{ runner.os }}-libs-${{ env.TARGET }}-${{ hashFiles('build/**') }}
path: |
${{ github.workspace }}/output/${{ env.TARGET }}/lib
!${{ github.workspace }}/output/${{ env.TARGET }}/lib/build
- name: find githash
run: |
echo "git_hash=$(git rev-parse --short $GITHUB_SHA)" >> $GITHUB_ENV
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
make \
quilt \
g++ \
g++-mingw-w64 \
python3 \
librsvg2-bin xsltproc \
imagemagick gettext sox \
cmake ninja-build
- name: Compile OpenSoar
run: |
make -j$(nproc) TARGET=${{env.TARGET }} DEBUG=${{ env.DEBUG }} USE_CCACHE=y V=2 everything
- name: upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.TARGET_FINAL }}-${{ env.git_hash }}${{ env.TARGET_EXT }}
path: output/${{ env.TARGET }}/bin/${{ env.TARGET_BIN }}${{ env.TARGET_EXT }}

- name: store checks and compile artefacts
uses: actions/upload-artifact@v3
with:
name: opensoar-${{ env.TARGET }}-artifact
path: |
${{ github.workspace }}/output/${{ env.TARGET }}
!${{ github.workspace }}/output/${{ env.TARGET }}/lib/build
!**.d
retention-days: 1

- name: Deploy to Staging server
if: |
github.repository == 'OpenSoaring/OpenSoar' &&
github.ref == 'ref/head/master' &&
github.event == 'push'
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.REPOSITORY_SSH_KEY }}
ARGS: "-rltgoDzvO"
SOURCE: output/${{ env.TARGET }}/bin/${{ env.TARGET_BIN }}.${{ env.TARGET_EXT }}
REMOTE_HOST: ${{ secrets.REPOSITORY_HOST }}
REMOTE_USER: ${{ secrets.REPOSITORY_SSH_USER }}
TARGET: ${{ secrets.REPOSITORY_REMOTE_PATH }}/testing/${{ env.TARGET }}/

2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
echo 'CHANGELOGENTRY<<EOF' >> $GITHUB_ENV
./tools/changelog.sh $TAG >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
echo $GITHUB_ENV
echo '-----------------'
id: changelogentry
- name: Create release
id: create_release
Expand Down
13 changes: 7 additions & 6 deletions 3rd_party/3rd_party.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@
# ./3rd_party/3rd_party.cmake
# =================================================================

set(BOOST_VERSION "1.82.0")
set(CARES_VERSION "1.18.1") # not valid!
set(BOOST_VERSION "1.84.0")
set(CARES_VERSION "1.24.0") # not valid!
# 25.12.23
set(CARES_VERSION "1.17.1") # old version necessary...
set(CURL_VERSION "8.2.1")
set(CURL_VERSION "8.5.0")
set(PNG_VERSION "1.6.40")
set(SODIUM_VERSION "1.0.18")
set(LUA_VERSION "5.4.6")
set(FMT_VERSION "10.0.0")
set(FMT_VERSION "10.1.1")

if (NO_MSVC)
set(TIFF_VERSION "4.5.1")
set(JPEG_VERSION "3.0.0")
set(PROJ_VERSION "9.2.1")
set(PROJ_VERSION "9.3.1")
set(FREETYPE_VERSION "2.13.1")
set(OPENSSL_VERSION "3.1.2")
set(UPSTREAM_VERSION "8.0.1")
Expand All @@ -26,7 +27,7 @@ endif()
set(ZLIB_VERSION "1.3")
set(INKSCAPE_VERSION "1.2.1")
set(FREEGLUT_VERSION "3.2.2")
set(SDL_VERSION "2.28.2") # for OpenGL...
set(SDL_VERSION "2.28.5") # for OpenGL...
set(GLM_VERSION "0.9.9.8") # GL Mathematics for OpenGL...
# set(RSVG_VERSION "2.55.1")
if (NO_MSVC)
Expand Down
2 changes: 0 additions & 2 deletions 3rd_party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ macro(prepare_3rdparty target_name lib_name)
endif()

set(_TARGET_LIBS "${_INSTALL_DIR}/lib/${TOOLCHAIN}/${LIB_PREFIX}${lib_name}${LIB_SUFFIX}") ## D:/Project/link_libs...
string(REPLACE "/" "\\" _INSTALL_DIR ${${TARGET_CNAME}_INSTALL_DIR})
string(REPLACE "/" "\\" _SOURCE_DIR ${${TARGET_CNAME}_SOURCE_DIR})
string(REPLACE "\\" "/" _PREFIX_DIR ${${TARGET_CNAME}_PREFIX})

set(${TARGET_CNAME}_LIB ${_TARGET_LIBS}) ## for internal use
Expand Down
14 changes: 12 additions & 2 deletions 3rd_party/boost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ set(Boost_RELEASE_ABI_TAG "")
set(Boost_USE_DEBUG_LIBS OFF)
set(Boost_DEBUG OFF) # Debugging more info in the find_package-process!
set(BOOST_LIBRARYDIR "${BOOST_ROOT}/lib/${TOOLCHAIN}")
set(BOOST_COMPONENTS system regex filesystem thread chrono date_time) # headers)
# set(BOOST_COMPONENTS system regex filesystem thread chrono date_time) # headers)
set(BOOST_COMPONENTS system regex filesystem chrono date_time) # headers)
# thread make a lot of problems (2023-12-28): list(APPEND BOOST_COMPONENTS thread)
if(NOT ${TOOLCHAIN} MATCHES "mgw122")
list(APPEND BOOST_COMPONENTS json) # headers)
endif()
Expand Down Expand Up @@ -120,8 +122,16 @@ else()
### message(FATAL_ERROR "Stop!")
endif()


if (CLANG)
set(BOOST_CXX_FLAGS "cxxflags=-fms-runtime-lib=\"static\"" )
set(BOOST_LINK_FLAGS "linkflags=-fms-runtime-lib=\"static\"")
elseif()
set(BOOST_CXX_FLAGS )
set(BOOST_LINK_FLAGS )
endif()
# variant=release
set(_BUILD_CMD ./b2 -j4 toolset=${_TOOLSET} link=static runtime-link=shared threading=multi address-model=64 --layout=versioned --prefix=${BOOST_INSTALL_DIR} --build-dir=${BOOST_PREFIX}/build/${TOOLCHAIN} ${BOOST_BUILD_COMPONENTS} --includedir=${BOOST_INSTALL_DIR}/include --libdir=${BOOST_INSTALL_DIR}/lib/${TOOLCHAIN} install)
set(_BUILD_CMD ./b2 -j4 toolset=${_TOOLSET} link=static runtime-link=shared threading=multi address-model=64 --layout=versioned ${BOOST_CXX_FLAGS} ${BOOST_LINK_FLAGS} --prefix=${BOOST_INSTALL_DIR} --build-dir=${BOOST_PREFIX}/build/${TOOLCHAIN} ${BOOST_BUILD_COMPONENTS} --includedir=${BOOST_INSTALL_DIR}/include --libdir=${BOOST_INSTALL_DIR}/lib/${TOOLCHAIN} install)

set(_INSTALL_DIR "${LINK_LIBS}/${LIB_TARGET_NAME}/${XCSOAR_BOOST_VERSION}")

Expand Down
8 changes: 4 additions & 4 deletions 3rd_party/fmt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ set(_LIB_NAME fmt) # "liblibfmt.a"
Prepare_3rdParty(fmt ${_LIB_NAME})


string(REPLACE "/" "\\" _INSTALL_DIR ${FMT_INSTALL_DIR})
string(REPLACE "/" "\\" _SOURCE_DIR ${FMT_PREFIX}/src/${LIB_TARGET_NAME})
string(REPLACE "\\" "/" _INSTALL_DIR ${FMT_INSTALL_DIR})
string(REPLACE "\\" "/" _SOURCE_DIR ${FMT_PREFIX}/src/${LIB_TARGET_NAME})

if (WIN32 AND MSVC)
set(BUILD_COMMAND devenv ${_SOURCE_DIR}\\libfmt.sln /Build Release|x64)
set(BUILD_COMMAND devenv ${_SOURCE_DIR}/libfmt.sln /Build Release|x64)
set(CONFIGURE_COMMAND echo ${BUILD_COMMAND})
# set(INSTALL_COMMAND xcopy ${_SOURCE_DIR}\\Build\\Release\\x64\\*.lib ${_INSTALL_DIR}\\lib\\${TOOLCHAIN}\\* /Y /T)
set(INSTALL_COMMAND xcopy ${_SOURCE_DIR}\\src\\libfmt\\include\\*.h ${_INSTALL_DIR}\\include\\* /Y /I /S /E)
set(INSTALL_COMMAND xcopy ${_SOURCE_DIR}/src/libfmt/include/*.h ${_INSTALL_DIR}/include/* /Y /I /S /E)
elseif (WIN32 AND MINGW AND NOT CLANG)
find_program(MAKE_EXECUTABLE NAMES gmake make mingw32-make REQUIRED)
endif()
Expand Down
11 changes: 11 additions & 0 deletions NEWS.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
Version 7.41 - 2023/12/21
* data files
- fix crash with empty user.cup
* Android
- fix BLE/HM10 data corruption
- fix crash if IOIO connect was canceled quickly
- fix crash if not allowed to start service in foreground
* Kobo
- fix Wifi setup (7.40 breakage)
- hide all pseudo tty ports

Version 7.40 - 2023/11/02
* user interface
- Added infobox that combines ETA with AAT dT
Expand Down
29 changes: 29 additions & 0 deletions OpenSoar-News.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
OpenSoar Version 7.41.21 - 2023/12/28
---------------
* (xcsoar-)bugfix with dead QuickMenu button solved
* CMake
- reenable MinGW
- update Clang (but not succesful)

#### XCSoar Version 7.41 - 2023/12/21
* merge xcsoar 7.41 '96457465d0'
* data files
- fix crash with empty user.cup
* Android
- fix BLE/HM10 data corruption
- fix crash if IOIO connect was canceled quickly
- fix crash if not allowed to start service in foreground
* Kobo
- fix Wifi setup (7.40 breakage)
- hide all pseudo tty ports

OpenSoar Version 7.40.20.2 - 2023/12/12
---------------
* CMake
Expand All @@ -19,10 +38,20 @@ OpenSoar Version 7.40.20.1 - 2023/11/28
* Wind Display
- bugfix with doubled vector
* remove a lot of compile errors
* merge xcsoar 7.40 '1164801fe9' from 2023/11/02

#### XCSoar Version 7.40 - 2023/11/02
* merge xcsoar commit '1164801f' from 2023/11/02
* merge xcsoar commit '32147e1e' from 2023/08/24
* user interface
- Added infobox that combines ETA with AAT dT
- FLARM: Add 100m zoom option.
- hide mouse cursor after 10 seconds of inactivity
- Move glider icon on thermal assist according to 30s average.
* Linux
- fix the /etc/xcsoar data directory
* Android
- raise targetSdkVersion to 33

OpenSoar Version 7.39.19 - 2023/08/13
---------------
Expand Down
4 changes: 2 additions & 2 deletions OpenSoar.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PROGRAM_NAME=OpenSoar
PROGRAM_VERSION=7.40.20.2
ANDROID_VERSIONCODE=20
PROGRAM_VERSION=7.41.21
ANDROID_VERSIONCODE=21
ANDROID_PACKAGE=de.opensoar
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# <img src="./Data/graphics/logo.svg" width="5%" alt="XCSoar Logo"> OpenSoar
# <img src="./Data/graphics/logo.svg" width="5%" alt="OpenSoar Logo"> OpenSoar

[![.github/workflows/build-native.yml](../../actions/workflows/build-native.yml/badge.svg)](../../actions/workflows/build-native.yml)
[![.github/workflows/build-container.yml](../../actions/workflows/build-container.yml/badge.svg)](../../actions/workflows/build-container.yml)
[![.github/workflows/build-docs.yml](../../actions/workflows/build-docs.yml/badge.svg)](../../actions/workflows/build-docs.yml)

OpenSoar - is an experimental fork of the wellknown gliding software XCSoar.

XCSoar is a tactical glide computer for Android, Linux, Mac OS X,
... and XCSoar is a tactical glide computer for Android, Linux, Mac OS X,
and Windows.

For more information (download, developer information, manuals, releases)
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.40
7.41
4 changes: 2 additions & 2 deletions android/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.opensoar"
android:installLocation="auto"
android:versionCode="19"
android:versionName="7.39.19">
android:versionCode="21"
android:versionName="7.41.21">
<application
android:requestLegacyExternalStorage="true"
android:preserveLegacyExternalStorage="true"
Expand Down
10 changes: 8 additions & 2 deletions android/src/HM10Port.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,14 @@ public void onCharacteristicChanged(BluetoothGatt gatt,
public void onMtuChanged(BluetoothGatt gatt, int mtu, int status) {
super.onMtuChanged(gatt, mtu, status);

if (status == BluetoothGatt.GATT_SUCCESS && mtu > 0)
writeBuffer.setMtu(mtu);
/* the MTU reported by the Android APIs is the ATT MTU, not the
data MTU; from this reported MTU value, we have to subtract the
ATT header size (1 byte opcode, 2 bytes handle) to get the data
MTU */
final int ATT_HEADER_SIZE = 3;

if (status == BluetoothGatt.GATT_SUCCESS && mtu > ATT_HEADER_SIZE)
writeBuffer.setMtu(mtu - ATT_HEADER_SIZE);

if (setupCharacteristicsPending) {
setupCharacteristicsPending = false;
Expand Down
Loading

0 comments on commit a8714b3

Please sign in to comment.