diff --git a/cmake/find-modules/FindGStreamer.cmake b/cmake/find-modules/FindGStreamer.cmake index c7f53da295ed..e1f905363921 100644 --- a/cmake/find-modules/FindGStreamer.cmake +++ b/cmake/find-modules/FindGStreamer.cmake @@ -53,14 +53,21 @@ elseif(IOS) elseif(EXISTS "~/Library/Developer/GStreamer/iPhone.sdk/GStreamer.framework") set(GSTREAMER_PREFIX_IOS "~/Library/Developer/GStreamer/iPhone.sdk/GStreamer.framework") else() - FetchContent_Declare(gstreamer - DOWNLOAD_EXTRACT_TIMESTAMP true + include(CPM) + CPMAddPackage( + NAME gstreamer URL "https://gstreamer.freedesktop.org/data/pkg/ios/${QGC_GST_TARGET_VERSION}/gstreamer-1.0-devel-${QGC_GST_TARGET_VERSION}-ios-universal.pkg" ) - FetchContent_MakeAvailable(gstreamer) set(GSTREAMER_PREFIX_IOS ${gstreamer_SOURCE_DIR}) endif() set(GSTREAMER_PREFIX ${GSTREAMER_PREFIX_IOS}) + set(ENV{PKG_CONFIG_LIBDIR} "${GSTREAMER_PREFIX}/lib/pkgconfig:${GSTREAMER_PREFIX}/lib/gstreamer-1.0/pkgconfig") + list(APPEND PKG_CONFIG_ARGN + --dont-define-prefix + --define-variable=prefix=${GSTREAMER_PREFIX} + --define-variable=libdir=${GSTREAMER_PREFIX}/lib + --define-variable=includedir=${GSTREAMER_PREFIX}/include + ) elseif(ANDROID) set(GSTREAMER_ARCHIVE "gstreamer-1.0-android-universal-${QGC_GST_TARGET_VERSION}.tar.xz") include(CPM) diff --git a/deploy/ios/Info.plist.in b/deploy/ios/Info.plist.in new file mode 100644 index 000000000000..120dde2ff8bf --- /dev/null +++ b/deploy/ios/Info.plist.in @@ -0,0 +1,52 @@ + + + + + CFBundlePackageType + APPL + + CFBundleName + @MACOSX_BUNDLE_BUNDLE_NAME@ + + CFBundleDisplayName + @MACOSX_BUNDLE_BUNDLE_NAME@ + + CFBundleExecutable + $(EXECUTABLE_NAME) + + CFBundleIdentifier + @MACOSX_BUNDLE_GUI_IDENTIFIER@ + + CFBundleVersion + @MACOSX_BUNDLE_BUNDLE_VERSION@ + + CFBundleShortVersionString + @MACOSX_BUNDLE_SHORT_VERSION_STRING@ + + CFBundleIconFile + ${ASSETCATALOG_COMPILER_APPICON_NAME} + + MinimumOSVersion + ${IPHONEOS_DEPLOYMENT_TARGET} + + ITSAppUsesNonExemptEncryption + + + LSRequiresIPhoneOS + + + NSHighResolutionCapable + + + UILaunchStoryboardName + AppLaunchScreen + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ee1d75a6875d..3064838b79c5 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -45,8 +45,9 @@ add_subdirectory(Camera) add_qgc_test(QGCCameraManagerTest) add_subdirectory(Comms) -add_qgc_test(QGCSerialPortInfoTest) - +if(NOT QGC_NO_SERIAL_LINK) + add_qgc_test(QGCSerialPortInfoTest) +endif() add_subdirectory(FactSystem) add_qgc_test(FactSystemTestGeneric) add_qgc_test(FactSystemTestPX4) diff --git a/test/Comms/CMakeLists.txt b/test/Comms/CMakeLists.txt index f6395e427544..a24cfe7dc989 100644 --- a/test/Comms/CMakeLists.txt +++ b/test/Comms/CMakeLists.txt @@ -1,9 +1,14 @@ find_package(Qt6 REQUIRED COMPONENTS Core Qml Test) -qt_add_library(CommsTest STATIC - QGCSerialPortInfoTest.cc - QGCSerialPortInfoTest.h -) +qt_add_library(CommsTest STATIC) + +if(NOT QGC_NO_SERIAL_LINK) + target_sources(CommsTest + PRIVATE + QGCSerialPortInfoTest.cc + QGCSerialPortInfoTest.h + ) +endif() target_link_libraries(CommsTest PRIVATE diff --git a/test/UnitTestList.cc b/test/UnitTestList.cc index 22203eefd829..e5df9c8a7b0d 100644 --- a/test/UnitTestList.cc +++ b/test/UnitTestList.cc @@ -32,7 +32,9 @@ #include "QGCCameraManagerTest.h" // Comms +#ifndef NO_SERIAL_LINK #include "QGCSerialPortInfoTest.h" +#endif // FactSystem #include "FactSystemTestGeneric.h" @@ -134,8 +136,10 @@ int runTests(bool stress, QStringView unitTestOptions) // Camera UT_REGISTER_TEST(QGCCameraManagerTest) - // Comms - UT_REGISTER_TEST(QGCSerialPortInfoTest) + // Comms +#ifndef NO_SERIAL_LINK + UT_REGISTER_TEST(QGCSerialPortInfoTest) +#endif // FactSystem UT_REGISTER_TEST(FactSystemTestGeneric)