Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ ELSE()
ENDIF()
ADD_PLUGIN(RemoteSync 1)
ADD_PLUGIN(Satellites 1)
ADD_PLUGIN(Planes 1)
ADD_PLUGIN(Scenery3d 1)
ADD_PLUGIN(SkyCultureMaker 1)
ADD_PLUGIN(SolarSystemEditor 1)
Expand All @@ -596,6 +597,11 @@ ADD_PLUGIN(Vts 0)
########## Static plugins need to define includes and libraries
########## for the compilation of Stellarium itself

IF(USE_PLUGIN_PLANES)
FIND_PACKAGE(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Sql)
SET(QT_USE_QTSQL TRUE) # Planes plugin needs SQL module
ENDIF()

# Custom target used to manage dependencies of stellarium -> Static plugins
# It is important that static plugins are compiled before stellarium main executable is linked
ADD_CUSTOM_TARGET(AllStaticPlugins ALL)
Expand Down Expand Up @@ -641,6 +647,52 @@ IF(WIN32)
IF(STELLARIUM_BUILD_ARM64 AND ${QT_VERSION} VERSION_LESS "6.5.0")
MESSAGE(FATAL_ERROR "Qt 6.5.0 or later is required for Windows on ARM builds.")
ENDIF()

# Qt 5.9 (LTS) use OpenSSL 1.0* and Qt 5.12 (LTS) and newest version of Qt use OpenSSL 1.1*
# Source: https://lists.qt-project.org/pipermail/releasing/2019-March/002614.html
IF((${QT_VERSION_MAJOR} EQUAL "5") AND (Qt5Core_VERSION VERSION_LESS "5.10"))
# OK, it's Qt 5.9, let's try to find OpenSSL 1.0.x DLL's on Windows
FIND_FILE(OPENSSL_SSLEAY32_LIBRARY_DLL ssleay32.dll)
FIND_FILE(OPENSSL_LIBEAY32_LIBRARY_DLL libeay32.dll)
FIND_FILE(OPENSSL_LIBSSL32_LIBRARY_DLL libssl32.dll)
SET(ISS_OPENSSL_LIBS "; OpenSSL support")
IF(EXISTS ${OPENSSL_SSLEAY32_LIBRARY_DLL})
MESSAGE(STATUS "Found ssleay32 library: ${OPENSSL_SSLEAY32_LIBRARY_DLL}")
SET(ISS_OPENSSL_LIBS "${ISS_OPENSSL_LIBS}\nSource: \"${OPENSSL_SSLEAY32_LIBRARY_DLL}\"; DestDir: \"{app}\"; Flags: ignoreversion")
ENDIF()
IF(EXISTS ${OPENSSL_LIBEAY32_LIBRARY_DLL})
MESSAGE(STATUS "Found libeay32 library: ${OPENSSL_LIBEAY32_LIBRARY_DLL}")
SET(ISS_OPENSSL_LIBS "${ISS_OPENSSL_LIBS}\nSource: \"${OPENSSL_LIBEAY32_LIBRARY_DLL}\"; DestDir: \"{app}\"; Flags: ignoreversion")
ENDIF()
IF(EXISTS ${OPENSSL_LIBSSL32_LIBRARY_DLL})
MESSAGE(STATUS "Found libssl32 library: ${OPENSSL_LIBSSL32_LIBRARY_DLL}")
SET(ISS_OPENSSL_LIBS "${ISS_OPENSSL_LIBS}\nSource: \"${OPENSSL_LIBSSL32_LIBRARY_DLL}\"; DestDir: \"{app}\"; Flags: ignoreversion")
ENDIF()
IF((NOT EXISTS ${OPENSSL_SSLEAY32_LIBRARY_DLL}) AND (NOT EXISTS ${OPENSSL_LIBEAY32_LIBRARY_DLL}))
SET(ISS_OPENSSL_LIBS "; OpenSSL libraries not found")
ENDIF()
ELSE()
# Try found OpenSSL 1.1.x DLL's on Windows (newest Qt)
IF("${CMAKE_SIZEOF_VOID_P}" EQUAL "4")
FIND_FILE(OPENSSL_SSL_LIBRARY_DLL libssl-1_1.dll)
FIND_FILE(OPENSSL_CRYPTO_LIBRARY_DLL libcrypto-1_1.dll)
ELSEIF("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
FIND_FILE(OPENSSL_SSL_LIBRARY_DLL libssl-1_1-x64.dll)
FIND_FILE(OPENSSL_CRYPTO_LIBRARY_DLL libcrypto-1_1-x64.dll)
ENDIF()
SET(ISS_OPENSSL_LIBS "; OpenSSL support")
IF(EXISTS ${OPENSSL_SSL_LIBRARY_DLL})
MESSAGE(STATUS "Found OpenSSL SSL library: ${OPENSSL_SSL_LIBRARY_DLL}")
SET(ISS_OPENSSL_LIBS "${ISS_OPENSSL_LIBS}\nSource: \"${OPENSSL_SSL_LIBRARY_DLL}\"; DestDir: \"{app}\"; Flags: ignoreversion")
ENDIF()
IF(EXISTS ${OPENSSL_CRYPTO_LIBRARY_DLL})
MESSAGE(STATUS "Found OpenSSL crypto library: ${OPENSSL_CRYPTO_LIBRARY_DLL}")
SET(ISS_OPENSSL_LIBS "${ISS_OPENSSL_LIBS}\nSource: \"${OPENSSL_CRYPTO_LIBRARY_DLL}\"; DestDir: \"{app}\"; Flags: ignoreversion")
ENDIF()
IF((NOT EXISTS ${OPENSSL_SSL_LIBRARY_DLL}) AND (NOT EXISTS ${OPENSSL_CRYPTO_LIBRARY_DLL}))
SET(ISS_OPENSSL_LIBS "; OpenSSL libraries not found")
ENDIF()
ENDIF()
ENDIF()

IF(APPLE)
Expand Down
1 change: 1 addition & 0 deletions cmake/default_cfg.ini.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Exoplanets = true
MeteorShowers = true
Novae = true
FOV = true
Planes = true

[video]
fullscreen = true
Expand Down
7 changes: 7 additions & 0 deletions plugins/Planes/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This is the cmake config file for the Planes plugin
SET(PLANES_VERSION "0.1.0")

ADD_DEFINITIONS(-DPLANES_PLUGIN_VERSION="${PLANES_VERSION}")
ADD_DEFINITIONS(-DPLANES_PLUGIN_LICENSE="GNU GPLv2 or later")

ADD_SUBDIRECTORY( src )
11 changes: 11 additions & 0 deletions plugins/Planes/Planes.qrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<RCC>
<qresource prefix="/planes">
<file>plane.png</file>
<file>planes_off.png</file>
<file>planes_on.png</file>
<file>planes_off_160.png</file>
<file>planes_on_160.png</file>
<file>planes_settings.png</file>
<file>planes_settings_off.png</file>
</qresource>
</RCC>
Binary file added plugins/Planes/plane.png
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 plugins/Planes/planes_off.png
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 plugins/Planes/planes_off_160.png
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 plugins/Planes/planes_on.png
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 plugins/Planes/planes_on_160.png
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 plugins/Planes/planes_settings.png
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 plugins/Planes/planes_settings_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading