forked from mavlink/qgroundcontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf304e5
commit bf92828
Showing
62 changed files
with
2,000 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
project(VideoReceiverApp LANGUAGES C CXX) | ||
|
||
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug;Release;RelWithDebInfo;MinSizeRel;Coverage") | ||
|
||
set(CMAKE_CXX_STANDARD 14) | ||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
|
||
include(FeatureSummary) | ||
|
||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") | ||
add_compile_options(-Wall -Wextra -Wno-address-of-packed-member) | ||
endif() | ||
|
||
# CMake build type | ||
# Debug Release RelWithDebInfo MinSizeRel Coverage | ||
if (NOT CMAKE_BUILD_TYPE) | ||
# default to release with debug symbols | ||
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Build type" FORCE) | ||
endif() | ||
|
||
set(QGC_ROOT ${CMAKE_SOURCE_DIR}/..) | ||
|
||
# Add folder where are supportive functions | ||
list(APPEND CMAKE_MODULE_PATH ${QGC_ROOT}/cmake) | ||
|
||
# Configure Qt5 to get necessary variables | ||
include(Qt5QGCConfiguration) | ||
message(STATUS "Build Type: ${CMAKE_BUILD_TYPE}") | ||
message(STATUS "Qt version: ${QT_VERSION}") | ||
message(STATUS "Qt spec: ${QT_MKSPEC}") | ||
|
||
set(COMPANY "Auterion") | ||
set(COPYRIGHT "Copyright (c) 2020 VideoReceiverApp. All rights reserved.") | ||
set(IDENTIFIER "labs.auterion.VideoReceiverApp") | ||
|
||
include(Git) | ||
message(STATUS "VideoReceiverApp version: ${GIT_VERSION}") | ||
|
||
#============================================================================= | ||
# ccache | ||
# | ||
option(CCACHE "Use ccache if available" ON) | ||
find_program(CCACHE_PROGRAM ccache) | ||
if (CCACHE AND CCACHE_PROGRAM AND NOT DEFINED ENV{CCACHE_DISABLE}) | ||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}") | ||
endif() | ||
|
||
#============================================================================= | ||
# Compile QML | ||
# | ||
option(COMPILE_QML "Pre-compile QML files using the Qt Quick compiler." FALSE) | ||
add_feature_info(COMPILE_QML COMPILE_QML "Pre-compile QML files using the Qt Quick compiler.") | ||
if(COMPILE_QML) | ||
find_package(Qt5QuickCompiler) | ||
|
||
set_package_properties(Qt5QuickCompiler PROPERTIES | ||
DESCRIPTION "Pre-compile QML files using the Qt Quick compiler." | ||
TYPE OPTIONAL | ||
) | ||
endif() | ||
|
||
#============================================================================= | ||
# Debug QML | ||
# | ||
option(DEBUG_QML "Build VideoReceiverApp with QML debugging/profiling support." FALSE) | ||
add_feature_info(DEBUG_QML DEBUG_QML "Build VideoReceiverApp with QML debugging/profiling support.") | ||
if(DEBUG_QML) | ||
message(STATUS "To enable the QML debugger/profiler, run with: '-qmljsdebugger=port:1234'") | ||
add_definitions(-DQMLJSDEBUGGER) | ||
add_definitions(-DQT_DECLARATIVE_DEBUG) | ||
add_definitions(-DQT_QML_DEBUG) | ||
endif() | ||
|
||
#============================================================================= | ||
# GStreamer | ||
# | ||
find_package(PkgConfig) | ||
pkg_check_modules(GST | ||
gstreamer-1.0>=1.14 | ||
gstreamer-video-1.0>=1.14 | ||
gstreamer-gl-1.0>=1.14 | ||
egl | ||
) | ||
|
||
if (GST_FOUND) | ||
include_directories( | ||
${GST_INCLUDE_DIRS} | ||
) | ||
endif() | ||
|
||
#============================================================================= | ||
# Qt5 | ||
# | ||
find_package(Qt5 ${QT_VERSION} | ||
COMPONENTS | ||
Bluetooth | ||
Charts | ||
Concurrent | ||
Core | ||
Location | ||
Multimedia | ||
Network | ||
Positioning | ||
Quick | ||
QuickWidgets | ||
OpenGL | ||
Sql | ||
Svg | ||
Test | ||
TextToSpeech | ||
Widgets | ||
Xml | ||
REQUIRED | ||
HINTS | ||
${QT_LIBRARY_HINTS} | ||
) | ||
|
||
# Sets the default flags for compilation and linking. | ||
include(CompileOptions) | ||
|
||
include_directories( | ||
${QGC_ROOT}/src | ||
${CMAKE_CURRENT_BINARY_DIR} | ||
${Qt5Location_PRIVATE_INCLUDE_DIRS} | ||
VideoReceiver | ||
) | ||
|
||
add_subdirectory(${QGC_ROOT}/libs/qmlglsink qmlglsink.build) | ||
add_subdirectory(${QGC_ROOT}/src/VideoReceiver VideoReceiver.build) | ||
|
||
set(VIDEORECIVERAPP_SOURCES main.cpp ${QGC_ROOT}/src/QGCLoggingCategory.cc) | ||
set(VIDEORECIVERAPP_RESOURCES qml.qrc) | ||
|
||
if(ANDROID) | ||
add_library(VideoReceiverApp SHARED ${VIDEORECIVERAPP_SOURCES} ${VIDEORECIVERAPP_RESOURCES}) | ||
else() | ||
add_executable(VideoReceiverApp ${VIDEORECIVERAPP_SOURCES} ${VIDEORECIVERAPP_RESOURCES}) | ||
endif() | ||
|
||
target_link_libraries(VideoReceiverApp | ||
PRIVATE | ||
VideoReceiver | ||
Qt5::Core | ||
Qt5::Multimedia | ||
Qt5::OpenGL | ||
Qt5::Quick | ||
Qt5::QuickWidgets | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDisplayName</key> | ||
<string>QQmlGlSinkTest</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>Open Source Flight Systems GmbH - Internal Build</string> | ||
<key>CFBundleIconFile</key> | ||
<string></string> | ||
<key>CFBundleIdentifier</key> | ||
<string>labs.auterion.VideoReceiverApp</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>0.0.0</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
<key>LSRequiresIPhoneOS</key> | ||
<true/> | ||
<key>UIFileSharingEnabled</key> | ||
<true/> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<?xml version="1.0"?> | ||
<manifest package="labs.mavlink.VideoReceiverApp" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1" android:versionCode="100000" android:installLocation="auto"> | ||
<application android:hardwareAccelerated="true" android:name="org.qtproject.qt5.android.bindings.QtApplication" android:label="-- %%INSERT_APP_NAME%% --" android:icon="@drawable/icon"> | ||
<activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation" android:name="labs.mavlink.VideoReceiverApp.QGLSinkActivity" android:label="-- %%INSERT_APP_NAME%% --" android:screenOrientation="sensorLandscape" android:launchMode="singleTask" android:keepScreenOn="true"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN"/> | ||
<category android:name="android.intent.category.LAUNCHER"/> | ||
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"/> | ||
<action android:name="android.hardware.usb.action.USB_DEVICE_DETACHED"/> | ||
<action android:name="android.bluetooth.device.action.ACL_CONNECTED"/> | ||
<action android:name="android.bluetooth.device.action.ACL_DISCONNECTED"/> | ||
<action android:name="android.hardware.usb.action.USB_ACCESSORY_ATTACHED"/> | ||
</intent-filter> | ||
|
||
<!-- Rest of Standard Manifest --> | ||
<meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/> | ||
<meta-data android:name="android.app.qt_sources_resource_id" android:resource="@array/qt_sources"/> | ||
<meta-data android:name="android.app.repository" android:value="default"/> | ||
<meta-data android:name="android.app.qt_libs_resource_id" android:resource="@array/qt_libs"/> | ||
<meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/bundled_libs"/> | ||
<!-- Deploy Qt libs as part of package --> | ||
<meta-data android:name="android.app.bundle_local_qt_libs" android:value="-- %%BUNDLE_LOCAL_QT_LIBS%% --"/> | ||
<meta-data android:name="android.app.bundled_in_lib_resource_id" android:resource="@array/bundled_in_lib"/> | ||
<meta-data android:name="android.app.bundled_in_assets_resource_id" android:resource="@array/bundled_in_assets"/> | ||
<!-- Run with local libs --> | ||
<meta-data android:name="android.app.use_local_qt_libs" android:value="-- %%USE_LOCAL_QT_LIBS%% --"/> | ||
<meta-data android:name="android.app.libs_prefix" android:value="/data/local/tmp/qt/"/> | ||
<meta-data android:name="android.app.load_local_libs" android:value="-- %%INSERT_LOCAL_LIBS%% --"/> | ||
<meta-data android:name="android.app.load_local_jars" android:value="-- %%INSERT_LOCAL_JARS%% --"/> | ||
<meta-data android:name="android.app.static_init_classes" android:value="-- %%INSERT_INIT_CLASSES%% --"/> | ||
<!-- Messages maps --> | ||
<meta-data android:value="@string/ministro_not_found_msg" android:name="android.app.ministro_not_found_msg"/> | ||
<meta-data android:value="@string/ministro_needed_msg" android:name="android.app.ministro_needed_msg"/> | ||
<meta-data android:value="@string/fatal_error_msg" android:name="android.app.fatal_error_msg"/> | ||
<!-- Messages maps --> | ||
|
||
<!-- Splash screen --> | ||
<!-- | ||
<meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/logo"/> | ||
--> | ||
<!-- Splash screen --> | ||
|
||
<!-- Background running --> | ||
<!-- Warning: changing this value to true may cause unexpected crashes if the | ||
application still try to draw after | ||
"applicationStateChanged(Qt::ApplicationSuspended)" | ||
signal is sent! --> | ||
<meta-data android:name="android.app.background_running" android:value="false"/> | ||
<!-- Background running --> | ||
</activity> | ||
</application> | ||
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="28"/> | ||
|
||
<!-- Needed to keep working while 'asleep' --> | ||
|
||
|
||
<!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application. | ||
Remove the comment if you do not require these default permissions. --> | ||
<!-- %%INSERT_PERMISSIONS --> | ||
|
||
<!-- Support devices without USB host mode since there are other connection types --> | ||
<uses-feature android:name="android.hardware.usb.host" android:required="false"/> | ||
|
||
<!-- Support devices without Bluetooth since there are other connection types --> | ||
<uses-feature android:name="android.hardware.bluetooth" android:required="false"/> | ||
|
||
<!-- Support devices that don't have location services --> | ||
<uses-feature android:name="android.hardware.location.gps" android:required="false"/> | ||
<uses-feature android:name="android.hardware.location.network" android:required="false"/> | ||
<uses-feature android:name="android.hardware.location" android:required="false"/> | ||
<uses-feature android:name="android.hardware.usb.accessory"/> | ||
|
||
|
||
<uses-permission android:name="android.permission.INTERNET"/> | ||
<uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE"/> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | ||
|
||
<!-- The following comment will be replaced upon deployment with default features based on the dependencies of the application. | ||
Remove the comment if you do not require these default features. --> | ||
<!-- %%INSERT_FEATURES --> | ||
|
||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0"?> | ||
<manifest android:versionName="@QT_ANDROID_APP_VERSION@" package="@QT_ANDROID_APP_PACKAGE_NAME@" android:installLocation="auto" xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="@QT_ANDROID_APP_VERSION_CODE@"> | ||
<application android:label="@QT_ANDROID_APP_NAME@" android:name="org.qtproject.qt5.android.bindings.QtApplication"> | ||
<activity android:label="@QT_ANDROID_APP_NAME@" android:name="org.qtproject.qt5.android.bindings.QtActivity" android:screenOrientation="unspecified" android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN"/> | ||
<category android:name="android.intent.category.LAUNCHER"/> | ||
</intent-filter> | ||
<meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/> | ||
<meta-data android:name="android.app.qt_sources_resource_id" android:resource="@array/qt_sources"/> | ||
<meta-data android:name="android.app.repository" android:value="default"/> | ||
<meta-data android:name="android.app.qt_libs_resource_id" android:resource="@array/qt_libs"/> | ||
<meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/bundled_libs"/> | ||
<!-- Deploy Qt libs as part of package --> | ||
<meta-data android:name="android.app.bundle_local_qt_libs" android:value="-- %%BUNDLE_LOCAL_QT_LIBS%% --"/> | ||
<meta-data android:name="android.app.bundled_in_lib_resource_id" android:resource="@array/bundled_in_lib"/> | ||
<meta-data android:name="android.app.bundled_in_assets_resource_id" android:resource="@array/bundled_in_assets"/> | ||
<!-- Run with local libs --> | ||
<meta-data android:name="android.app.use_local_qt_libs" android:value="-- %%USE_LOCAL_QT_LIBS%% --"/> | ||
<meta-data android:name="android.app.libs_prefix" android:value="/data/local/tmp/qt/"/> | ||
<meta-data android:name="android.app.load_local_libs" android:value="-- %%INSERT_LOCAL_LIBS%% --"/> | ||
<meta-data android:name="android.app.load_local_jars" android:value="-- %%INSERT_LOCAL_JARS%% --"/> | ||
<meta-data android:name="android.app.static_init_classes" android:value="-- %%INSERT_INIT_CLASSES%% --"/> | ||
<!-- Messages maps --> | ||
<!--<meta-data android:name="android.app.ministro_not_found_msg" android:value="@string/ministro_not_found_msg"/> | ||
<meta-data android:name="android.app.ministro_needed_msg" android:value="@string/ministro_needed_msg"/> | ||
<meta-data android:name="android.app.fatal_error_msg" android:value="@string/fatal_error_msg"/>--> | ||
</activity> | ||
</application> | ||
<supports-screens android:anyDensity="true" android:normalScreens="true" android:smallScreens="true" android:largeScreens="true"/> | ||
<uses-sdk android:minSdkVersion="18" android:targetSdkVersion="19"/> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
</manifest> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.33 KB
VideoReceiverApp/android/Google_Play_Android_Developer-4432a3c4f5d1.json.enc
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
buildscript { | ||
|
||
repositories { | ||
maven { | ||
url "http://repo1.maven.org/maven2" | ||
} | ||
} | ||
|
||
dependencies { | ||
classpath 'com.android.tools.build:gradle:1.1.0' | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
jcenter() | ||
} | ||
} | ||
|
||
apply plugin: 'com.android.application' | ||
|
||
dependencies { | ||
compile fileTree(dir: 'libs', include: ['*.jar']) | ||
} | ||
|
||
android { | ||
/******************************************************* | ||
* The following variables: | ||
* - androidBuildToolsVersion, | ||
* - androidCompileSdkVersion | ||
* - qt5AndroidDir - holds the path to qt android files | ||
* needed to build any Qt application | ||
* on Android. | ||
* | ||
* are defined in gradle.properties file. This file is | ||
* updated by QtCreator and androiddeployqt tools. | ||
* Changing them manually might break the compilation! | ||
*******************************************************/ | ||
|
||
compileSdkVersion androidCompileSdkVersion.toInteger() | ||
|
||
buildToolsVersion androidBuildToolsVersion | ||
|
||
sourceSets { | ||
main { | ||
manifest.srcFile 'AndroidManifest.xml' | ||
java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java'] | ||
aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl'] | ||
res.srcDirs = [qt5AndroidDir + '/res', 'res'] | ||
resources.srcDirs = ['src'] | ||
renderscript.srcDirs = ['src'] | ||
assets.srcDirs = ['assets'] | ||
jniLibs.srcDirs = ['libs'] | ||
} | ||
} | ||
|
||
aaptOptions { | ||
cruncherEnabled = false | ||
} | ||
|
||
lintOptions { | ||
abortOnError false | ||
} | ||
} |
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
VideoReceiverApp/android/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#Wed Apr 10 15:27:10 PDT 2013 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip |
Oops, something went wrong.