Skip to content

Commit

Permalink
Miscellaneous Deployment Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
HTRamsey committed Jan 14, 2025
1 parent e0fd8eb commit 8e2ee25
Show file tree
Hide file tree
Showing 8 changed files with 3,605 additions and 3,815 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
- name: Set Up Cache
uses: hendrikmuhs/ccache-action@main
with:
key: ${{ runner.os }}-${{ matrix.Arch }}-${{ matrix.BuildType }}
key: ${{ runner.os }}-${{ matrix.Arch }}-${{ matrix.BuildType }}-custom
max-size: 1G
variant: sccache
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
Expand Down
25 changes: 17 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ endif()
# Project Info
#######################################################

# set(CMAKE_OSX_ARCHITECTURES "arm64")
# set(CMAKE_OSX_SYSROOT "iphoneos")
# set(CMAKE_OSX_DEPLOYMENT_TARGET "12.0")

include(Git)

project(QGroundControl
Expand Down Expand Up @@ -54,7 +58,7 @@ include(CMakeDependentOption)
include(FetchContent)
include(CMakePrintHelpers)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_AUTOMOC ON)
Expand Down Expand Up @@ -111,6 +115,12 @@ endif()

set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)

# https://cmake.org/cmake/help/latest/policy/CMP0168.html#policy:CMP0168
if(POLICY CMP0168)
cmake_policy(SET CMP0168 NEW)
set(CMAKE_POLICY_DEFAULT_CMP0168 NEW)
endif()

#######################################################
# Qt6 Configuration
#######################################################
Expand Down Expand Up @@ -146,13 +156,15 @@ if(ANDROID)
# QT_ANDROID_DEPLOY_RELEASE
# set(QT_ANDROID_DEPLOYMENT_TYPE ON CACHE BOOL "Deployment Type")
cmake_dependent_option(QT_ANDROID_SIGN_APK "Enable Signing APK" ON "CMAKE_BUILD_TYPE STREQUAL Release" OFF)
# QT_ANDROID_SIGN_AAB
if(QT_ANDROID_SIGN_AAB)
message(STATUS "Signing AAB")
endif()
if(QT_ANDROID_SIGN_APK)
message(STATUS "Signing APK")
message(STATUS "QT_ANDROID_KEYSTORE_PATH $ENV{QT_ANDROID_KEYSTORE_PATH}")
message(STATUS "QT_ANDROID_KEYSTORE_ALIAS $ENV{QT_ANDROID_KEYSTORE_ALIAS}")
# QT_ANDROID_KEYSTORE_STORE_PASS, QT_ANDROID_KEYSTORE_KEY_PASS
endif()
# message(STATUS "QT_ANDROID_KEYSTORE_PATH $ENV{QT_ANDROID_KEYSTORE_PATH}")
# message(STATUS "QT_ANDROID_KEYSTORE_ALIAS $ENV{QT_ANDROID_KEYSTORE_ALIAS}")
# QT_ANDROID_KEYSTORE_STORE_PASS, QT_ANDROID_KEYSTORE_KEY_PASS
endif()

set(QT_SILENCE_MISSING_DEPENDENCY_TARGET_WARNING ON)
Expand Down Expand Up @@ -395,9 +407,6 @@ elseif(MACOS)
elseif(IOS)
enable_language(OBJC)

set(CMAKE_OSX_ARCHITECTURES "arm64")
set(CMAKE_OSX_SYSROOT "iphoneos")
set(CMAKE_OSX_DEPLOYMENT_TARGET "14.0")
set(CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET "14.0")
set(CMAKE_XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "1,2") # iPhone,iPad
set(CMAKE_XCODE_ATTRIBUTE_INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/deploy/ios/iOS-Info.plist")
Expand Down
2 changes: 2 additions & 0 deletions deploy/ios/iOS-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<dict>
<key>NSCameraUsageDescription</key>
<string>QGC uses UVC devices for video streaming.</string>
<key>NSMicrophoneUsageDescription</key>
<string>Qt Multimedia for iOS uses the camera and microphone.</string>
<key>CFBundleDisplayName</key>
<string>QGroundControl</string>
<key>CFBundleExecutable</key>
Expand Down
2 changes: 2 additions & 0 deletions deploy/ios/iOSForAppStore-Info-Source.plist
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<string></string>
<key>NSCameraUsageDescription</key>
<string>QGC uses UVC devices for video streaming.</string>
<key>NSMicrophoneUsageDescription</key>
<string>Qt Multimedia for iOS uses the camera and microphone.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>We do not access it. Apple thinks we do.</string>
<key>UILaunchStoryboardName</key>
Expand Down
2 changes: 2 additions & 0 deletions deploy/mac/MacOSXBundleInfo.plist.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
<string>NSApplication</string>
<key>NSCameraUsageDescription</key>
<string>Camera devices used for FPV</string>
<key>NSMicrophoneUsageDescription</key>
<string>Qt Multimedia for MacOS uses the camera and microphone.</string>
<key>NSLocationUsageDescription</key>
<string>Location used for ground control station position</string>
<key>NSBluetoothAlwaysUsageDescription</key>
Expand Down
Loading

0 comments on commit 8e2ee25

Please sign in to comment.