Merge branch 'develop' into feature/placefiles

This commit is contained in:
Dan Paulat 2023-09-16 00:11:55 -05:00
commit 1997d09f29
12 changed files with 65 additions and 12 deletions

View file

@ -28,7 +28,7 @@ jobs:
compiler: msvc compiler: msvc
msvc_arch: x64 msvc_arch: x64
msvc_version: 2022 msvc_version: 2022
qt_version: 6.5.0 qt_version: 6.5.2
qt_arch: win64_msvc2019_64 qt_arch: win64_msvc2019_64
qt_modules: qtimageformats qt_modules: qtimageformats
qt_tools: '' qt_tools: ''
@ -44,7 +44,7 @@ jobs:
env_cc: gcc-11 env_cc: gcc-11
env_cxx: g++-11 env_cxx: g++-11
compiler: gcc compiler: gcc
qt_version: 6.5.0 qt_version: 6.5.2
qt_arch: gcc_64 qt_arch: gcc_64
qt_modules: qtimageformats qt_modules: qtimageformats
qt_tools: '' qt_tools: ''

6
.gitmodules vendored
View file

@ -6,7 +6,7 @@
url = https://github.com/conan-io/cmake-conan.git url = https://github.com/conan-io/cmake-conan.git
[submodule "test/data"] [submodule "test/data"]
path = test/data path = test/data
url = ../supercell-wx-test-data url = https://github.com/dpaulat/supercell-wx-test-data
[submodule "external/hsluv-c"] [submodule "external/hsluv-c"]
path = external/hsluv-c path = external/hsluv-c
url = https://github.com/hsluv/hsluv-c.git url = https://github.com/hsluv/hsluv-c.git
@ -18,13 +18,13 @@
url = https://github.com/nothings/stb.git url = https://github.com/nothings/stb.git
[submodule "data"] [submodule "data"]
path = data path = data
url = ../supercell-wx-data url = https://github.com/dpaulat/supercell-wx-data
[submodule "external/imgui"] [submodule "external/imgui"]
path = external/imgui path = external/imgui
url = https://github.com/ocornut/imgui.git url = https://github.com/ocornut/imgui.git
[submodule "external/imgui-backend-qt"] [submodule "external/imgui-backend-qt"]
path = external/imgui-backend-qt path = external/imgui-backend-qt
url = ../imgui-backend-qt url = https://github.com/dpaulat/imgui-backend-qt
[submodule "external/aws-sdk-cpp"] [submodule "external/aws-sdk-cpp"]
path = external/aws-sdk-cpp path = external/aws-sdk-cpp
url = https://github.com/aws/aws-sdk-cpp.git url = https://github.com/aws/aws-sdk-cpp.git

View file

@ -41,6 +41,8 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBOOST_ALL_NO_LIB")
set(SCWX_DIR ${PROJECT_SOURCE_DIR}) set(SCWX_DIR ${PROJECT_SOURCE_DIR})
set(SCWX_VERSION "0.2.2") set(SCWX_VERSION "0.2.2")
option(SCWX_ADDRESS_SANITIZER "Build with Address Sanitizer" OFF)
add_subdirectory(external) add_subdirectory(external)
add_subdirectory(wxdata) add_subdirectory(wxdata)
add_subdirectory(scwx-qt) add_subdirectory(scwx-qt)

View file

@ -11,6 +11,8 @@ continuously updating weather data on top of a responsive map, providing the
capability to monitor weather events using reflectivity, velocity, and other capability to monitor weather events using reflectivity, velocity, and other
products. products.
Please be sure to check out the documentation before getting started: [Supercell Wx Documentation](https://supercell-wx.rtfd.io/)
![image](https://supercell-wx.readthedocs.io/en/latest/_images/initial-setup-03-initial-configured-small.png) ![image](https://supercell-wx.readthedocs.io/en/latest/_images/initial-setup-03-initial-configured-small.png)
## Supported Platforms ## Supported Platforms
@ -20,9 +22,33 @@ Supercell Wx supports the following 64-bit operating systems:
- Windows 10 (1809 or later) - Windows 10 (1809 or later)
- Windows 11 - Windows 11
- Linux - Linux
- EndeavourOS - Arch Linux (EndeavourOS, SteamOS [Steam Deck], and other Arch derivatives)
- Fedora Linux 34+ - Fedora Linux 34+
- openSUSE Tumbleweed - openSUSE Tumbleweed
- SteamOS (Steam Deck)
- Ubuntu 22.04+ - Ubuntu 22.04+
- Most distributions supporting the GCC Standard C++ Library 11+ - Most distributions supporting the GCC Standard C++ Library 11+
## Linux Dependencies
Supercell Wx requires the following Linux dependencies:
- Linux/X11 (Wayland works too) with support for GCC 11 and OpenGL 3.3
- X11/XCB libraries including xcb-cursor
## FAQ
Frequently asked questions:
- Q: Why is the map black when loading for the first time?
- A. You must obtain a free API key from either (or both) [MapTiler](https://cloud.maptiler.com/auth/widget?next=https://cloud.maptiler.com/maps/) which currently does not require a credit/debit card, or [Mapbox](https://account.mapbox.com/) which ***does*** require a credit/debit card, but as of writing, you will receive 200K free requests per month, which should be sufficient for an individual user.
- Q: Why is it that when I change my color table, API key, grid width/height settings, nothing happens after hitting apply?
- A. As of right now, you must restart Supercell Wx in order to apply these changes. In future iterations, this will no longer be an issue.
- Q. Is it possible to get dark mode?
- A. In Windows, make sure to set the flag `-style fusion` at the end of the target path of the .exe
- Example: `C:\Users\Administrator\Desktop\Supercell-Wx\bin\supercell-wx.exe -style fusion`
- A. In Linux, if you're using KDE, Supercell Wx should automatically follow your theme settings.

@ -1 +1 @@
Subproject commit 8939373bde9cd050708a3b166541e9a9d37e2901 Subproject commit 197a6dfde08071bec386518eb1aa1631903d198d

View file

@ -1,6 +1,7 @@
cmake_minimum_required(VERSION 3.20) cmake_minimum_required(VERSION 3.20)
set(PROJECT_NAME scwx-aws-sdk-cpp) set(PROJECT_NAME scwx-aws-sdk-cpp)
set(AWS_SDK_WARNINGS_ARE_ERRORS OFF)
set(BUILD_ONLY "s3") set(BUILD_ONLY "s3")
set(BUILD_SHARED_LIBS OFF) set(BUILD_SHARED_LIBS OFF)
set(CPP_STANDARD 17) set(CPP_STANDARD 17)
@ -9,6 +10,7 @@ set(ENABLE_UNITY_BUILD ON)
set(MINIMIZE_SIZE OFF) set(MINIMIZE_SIZE OFF)
# Some variables also need set in the cache... set them all! # Some variables also need set in the cache... set them all!
set(AWS_SDK_WARNINGS_ARE_ERRORS OFF CACHE BOOL "Compiler warning is treated as an error. Try turning this off when observing errors on a new or uncommon compiler")
set(BUILD_ONLY "s3" CACHE STRING "A semi-colon delimited list of the projects to build") set(BUILD_ONLY "s3" CACHE STRING "A semi-colon delimited list of the projects to build")
set(BUILD_SHARED_LIBS OFF CACHE BOOL "If enabled, all aws sdk libraries will be build as shared objects; otherwise all Aws libraries will be built as static objects") set(BUILD_SHARED_LIBS OFF CACHE BOOL "If enabled, all aws sdk libraries will be build as shared objects; otherwise all Aws libraries will be built as static objects")
set(CPP_STANDARD "17" CACHE STRING "Flag to upgrade the C++ standard used. The default is 11. The minimum is 11.") set(CPP_STANDARD "17" CACHE STRING "Flag to upgrade the C++ standard used. The default is 11. The minimum is 11.")

View file

@ -443,6 +443,21 @@ target_compile_options(supercell-wx PRIVATE
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Wpedantic -Werror> $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Wpedantic -Werror>
) )
# Address Sanitizer options
if (SCWX_ADDRESS_SANITIZER)
target_compile_options(scwx-qt PRIVATE
$<$<CXX_COMPILER_ID:MSVC>:/fsanitize=address>
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-fsanitize=address -fsanitize-recover=address>
)
target_compile_options(supercell-wx PRIVATE
$<$<CXX_COMPILER_ID:MSVC>:/fsanitize=address>
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-fsanitize=address -fsanitize-recover=address>
)
target_link_options(supercell-wx PRIVATE
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-fsanitize=address>
)
endif()
if (MSVC) if (MSVC)
# Produce PDB file for debug # Produce PDB file for debug
target_compile_options(scwx-qt PRIVATE "$<$<CONFIG:Release>:/Zi>") target_compile_options(scwx-qt PRIVATE "$<$<CONFIG:Release>:/Zi>")

View file

@ -1,5 +1,5 @@
call tools\setup-common.bat call tools\setup-common.bat
mkdir build-debug mkdir build-debug
cd build-debug cd build-debug
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CONFIGURATION_TYPES=Debug -DCMAKE_PREFIX_PATH=C:/Qt/6.5.0/msvc2019_64 .. cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CONFIGURATION_TYPES=Debug -DCMAKE_PREFIX_PATH=C:/Qt/6.5.2/msvc2019_64 ..
pause pause

View file

@ -2,4 +2,4 @@
./tools/setup-common.sh ./tools/setup-common.sh
mkdir -p build-debug mkdir -p build-debug
cd build-debug cd build-debug
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CONFIGURATION_TYPES=Debug -DCMAKE_PREFIX_PATH=/opt/Qt/6.5.0/gcc_64 .. cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CONFIGURATION_TYPES=Debug -DCMAKE_PREFIX_PATH=/opt/Qt/6.5.2/gcc_64 ..

View file

@ -1,5 +1,5 @@
call tools\setup-common.bat call tools\setup-common.bat
mkdir build-release mkdir build-release
cd build-release cd build-release
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=Release -DCMAKE_PREFIX_PATH=C:/Qt/6.5.0/msvc2019_64 .. cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=Release -DCMAKE_PREFIX_PATH=C:/Qt/6.5.2/msvc2019_64 ..
pause pause

View file

@ -2,4 +2,4 @@
./tools/setup-common.sh ./tools/setup-common.sh
mkdir -p build-release mkdir -p build-release
cd build-release cd build-release
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=Release -DCMAKE_PREFIX_PATH=/opt/Qt/6.5.0/gcc_64 .. cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=Release -DCMAKE_PREFIX_PATH=/opt/Qt/6.5.2/gcc_64 ..

View file

@ -277,3 +277,11 @@ endif()
set_target_properties(wxdata PROPERTIES CXX_STANDARD 20 set_target_properties(wxdata PROPERTIES CXX_STANDARD 20
CXX_STANDARD_REQUIRED ON CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF) CXX_EXTENSIONS OFF)
# Address Sanitizer options
if (SCWX_ADDRESS_SANITIZER)
target_compile_options(wxdata PRIVATE
$<$<CXX_COMPILER_ID:MSVC>:/fsanitize=address>
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-fsanitize=address -fsanitize-recover=address>
)
endif()