Skip to content

Commit 1836507

Browse files
committed
Minor Adjustments to Linux & MacOS Deployment
1 parent 73d8707 commit 1836507

File tree

5 files changed

+7
-10
lines changed

5 files changed

+7
-10
lines changed

.github/workflows/macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ jobs:
8686

8787
- name: Configure
8888
working-directory: ${{ runner.temp }}/build
89-
run: ${{ env.QT_ROOT_DIR }}/bin/qt-cmake -S ${{ github.workspace }} -B . -G Ninja
90-
-DCMAKE_BUILD_TYPE=${{ matrix.BuildType }}
89+
run: ${{ env.QT_ROOT_DIR }}/bin/qt-cmake -S ${{ github.workspace }} -B . -G Ninja \
90+
-DCMAKE_BUILD_TYPE=${{ matrix.BuildType }} \
9191
-DQGC_STABLE_BUILD=${{ github.ref_type == 'tag' || contains(github.ref, 'Stable') && 'ON' || 'OFF' }}
9292

9393
- name: Build

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if(APPLE)
4545
set(CMAKE_OSX_DEPLOYMENT_TARGET "12.0")
4646
# set(CMAKE_OSX_SYSROOT "iphoneos")
4747
if(QGC_MACOS_UNIVERSAL_BUILD)
48-
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64")
48+
set(CMAKE_OSX_ARCHITECTURES "x86_64h;arm64") # CMAKE_APPLE_SILICON_PROCESSOR
4949
endif()
5050
endif()
5151

cmake/CustomOptions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ set(QGC_MACOS_PLIST_PATH "${CMAKE_SOURCE_DIR}/deploy/macos/MacOSXBundleInfo.plis
6868
set(QGC_MACOS_BUNDLE_ID "${QGC_PACKAGE_NAME}" CACHE STRING "MacOS Bundle ID")
6969
set(QGC_MACOS_ICON_PATH "${CMAKE_SOURCE_DIR}/deploy/macos/qgroundcontrol.icns" CACHE FILEPATH "MacOS Icon Path")
7070
set(QGC_MACOS_ENTITLEMENTS_PATH "${CMAKE_SOURCE_DIR}/deploy/macos/qgroundcontrol.entitlements" CACHE FILEPATH "MacOS Entitlements Path")
71-
option(QGC_MACOS_UNIVERSAL_BUILD "Build MacOS Universal Build (arm64;x86_64)" ON)
71+
option(QGC_MACOS_UNIVERSAL_BUILD "Build MacOS Universal Build (x86_64h;arm64)" ON)
7272

7373
# Linux
7474
option(QGC_CREATE_APPIMAGE "Build an AppImage after build" ON)

cmake/Toolchain.cmake

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,4 @@ endif()
5151

5252
if(APPLE AND NOT IOS)
5353
set(MACOS TRUE)
54-
55-
# if(CMAKE_APPLE_SILICON_PROCESSOR MATCHES "arm64")
56-
# if(CMAKE_APPLE_SILICON_PROCESSOR MATCHES "x86_64")
57-
# if("${CMAKE_OSX_ARCHITECTURES}" MATCHES "arm64;x86_64" OR "${CMAKE_OSX_ARCHITECTURES}" MATCHES "x86_64;arm64")
58-
# set(QGC_MACOS_UNIVERSAL_BUILD ON)
59-
# endif()
6054
endif()

tools/setup/install-dependencies-debian.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ apt-get install -y -qq --no-install-recommends \
1717

1818
# Enable the “universe” component (needed for several dev packages)
1919
add-apt-repository -y universe
20+
add-apt-repository -y ppa:ubuntu-toolchain-r/test
2021
apt-get update -y -qq
2122

2223
# --------------------------------------------------------------------
@@ -34,7 +35,9 @@ apt-get install -y -qq --no-install-recommends \
3435
git \
3536
libfuse2 \
3637
fuse3 \
38+
libc6 \
3739
libtool \
40+
libstdc++6 \
3841
locales \
3942
mold \
4043
ninja-build \

0 commit comments

Comments
 (0)