Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various dependency updates #3409

Merged
merged 18 commits into from
Oct 13, 2023
Merged
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
2 changes: 1 addition & 1 deletion .ci/flatpak/net.wz2100.wz2100.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ modules:
- -DWZ_SENTRY_PREDOWNLOADED_SENTRY_ARCHIVE=/app/prestaged-dl/sentry-native.zip
- -DWZ_DOWNLOAD_PREBUILT_PACKAGES_ASSET_DIR=/app/prestaged-dl
# Crashpad/breakpad works in the Flatpak sandbox *if* --allow=devel is set above. Otherwise, this must be: inproc
- -DSENTRY_BACKEND=breakpad
- -DSENTRY_BACKEND=crashpad
@WZ_CMAKE_CROSS_CONFIG_OPTIONS@
secret-opts:
- -DWZ_DISTRIBUTOR:STRING=$WZ_DISTRIBUTOR
Expand Down
23 changes: 2 additions & 21 deletions .github/workflows/CI_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,36 +28,21 @@ jobs:
matrix:
include:
# Builds with GCC (uploaded as artifacts, and published as release DEBs)
- name: "Ubuntu 18.04 [GCC]"
docker: "ubuntu-18.04"
arch: "amd64"
output-suffix: "ubuntu18.04"
compiler: gcc
publish_artifact: true
deploy_release: true
- name: "Ubuntu 20.04 [GCC]"
docker: "ubuntu-20.04"
arch: "amd64"
compiler: gcc
output-suffix: "ubuntu20.04"
publish_artifact: true
deploy_release: true
# Newer builds with GCC (not currently uploaded)
- name: "Ubuntu 22.04 [GCC]"
docker: "ubuntu-22.04"
arch: "amd64"
output-suffix: "ubuntu22.04"
compiler: gcc
publish_artifact: false
deploy_release: false
publish_artifact: true
deploy_release: true
# Builds with Clang (not uploaded)
- name: "Ubuntu 18.04 [Clang]"
docker: "ubuntu-18.04"
arch: "amd64"
output-suffix: "ubuntu18.04"
compiler: clang
publish_artifact: false
deploy_release: false
- name: "Ubuntu 20.04 [Clang]"
docker: "ubuntu-20.04"
arch: "amd64"
Expand Down Expand Up @@ -100,10 +85,6 @@ jobs:
- name: Init Git Submodules
working-directory: '${{ github.workspace }}/src'
run: git submodule update --init --recursive
- name: Pull latest base image
if: success() && (matrix.docker == 'ubuntu-18.04')
run: |
docker pull ubuntu:18.04
- name: Build the Docker image
working-directory: '${{ github.workspace }}/src'
run: |
Expand Down
4 changes: 2 additions & 2 deletions .sentrynative
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
URL=https://github.com/getsentry/sentry-native/releases/download/0.6.0/sentry-native.zip
SHA512=e41d3661679ba7ba1cc58059ce86f6fb1a93fb580d2f8e77d6f2a09988fe62f18f3636e13e324a643f736aa891aa2312100740ace043c2e542d4e6b546b61014
URL=https://github.com/getsentry/sentry-native/releases/download/0.6.6/sentry-native.zip
SHA512=0fa548b70e3fbb87614521d797a577ffa185991f0942cf20dd965f8c068414512a63f5d715672ecf243aa31d18fdcda6ce355ad8614ede7b988d0a103cda7244
3 changes: 1 addition & 2 deletions 3rdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.5)
cmake_minimum_required (VERSION 3.5...3.24)

SET(UTF8PROC_INSTALL OFF CACHE BOOL "Enable installation of utf8proc" FORCE)
add_subdirectory(utf8proc)
Expand Down Expand Up @@ -29,7 +29,6 @@ endif()

find_package(SQLite3 3.14 REQUIRED)
set(SQLITECPP_USE_STATIC_RUNTIME OFF CACHE BOOL "Use static runtime" FORCE)
set(SQLITE_ENABLE_COLUMN_METADATA OFF CACHE BOOL "Enable Column::getColumnOriginName(). Require support from sqlite3 library." FORCE)
set(SQLITE_HAS_CODEC OFF CACHE BOOL "Enable database encryption API. Not available in the public release of SQLite." FORCE)
if(SQLite3_VERSION VERSION_LESS 3.19)
set(SQLITE_USE_LEGACY_STRUCT ON CACHE BOOL "Fallback to forward declaration of legacy struct sqlite3_value (pre SQLite 3.19)" FORCE)
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/SQLiteCpp
Submodule SQLiteCpp updated 63 files
+0 −59 .github/workflows/build.yml
+62 −0 .github/workflows/cmake.yml
+43 −48 .github/workflows/cmake_subdir_example.yml
+80 −0 .github/workflows/meson.yml
+7 −2 .gitignore
+62 −24 .travis.yml
+265 −199 CHANGELOG.md
+77 −31 CMakeLists.txt
+414 −193 Doxyfile
+1 −1 LICENSE.txt
+168 −39 README.md
+0 −2 TODO.txt
+6 −4 appveyor.yml
+26 −26 build.bat
+6 −5 build.sh
+12 −10 cmake/SQLiteCppConfig.cmake.in
+359 −324 docs/README.md
+6 −0 examples/example1/README.md
+28 −25 examples/example1/main.cpp
+20 −0 examples/example1/meson.build
+1 −1 examples/example2/CMakeLists.txt
+6 −1 examples/example2/README.md
+21 −21 examples/example2/build.bat
+1 −1 examples/example2/build.sh
+14 −0 examples/example2/meson.build
+1 −1 examples/example2/src/main.cpp
+2 −0 examples/meson.build
+1 −1 googletest
+6 −5 include/SQLiteCpp/Assertion.h
+13 −9 include/SQLiteCpp/Backup.h
+36 −58 include/SQLiteCpp/Column.h
+61 −31 include/SQLiteCpp/Database.h
+3 −4 include/SQLiteCpp/Exception.h
+2 −1 include/SQLiteCpp/ExecuteMany.h
+5 −3 include/SQLiteCpp/SQLiteCpp.h
+38 −0 include/SQLiteCpp/SQLiteCppExport.h
+34 −30 include/SQLiteCpp/Savepoint.h
+55 −145 include/SQLiteCpp/Statement.h
+11 −8 include/SQLiteCpp/Transaction.h
+1 −1 include/SQLiteCpp/Utils.h
+1 −1 include/SQLiteCpp/VariadicBind.h
+328 −0 meson.build
+23 −0 meson_options.txt
+1 −1 package.xml
+21 −10 sqlite3/CMakeLists.txt
+16 −14 sqlite3/README.md
+29,232 −13,950 sqlite3/sqlite3.c
+970 −203 sqlite3/sqlite3.h
+17 −17 src/Backup.cpp
+24 −19 src/Column.cpp
+11 −24 src/Database.cpp
+1 −3 src/Exception.cpp
+35 −19 src/Savepoint.cpp
+96 −142 src/Statement.cpp
+18 −9 src/Transaction.cpp
+5 −0 subprojects/.gitignore
+16 −0 subprojects/gtest.wrap
+13 −0 subprojects/sqlite3.wrap
+74 −18 tests/Column_test.cpp
+3 −1 tests/Database_test.cpp
+17 −19 tests/Savepoint_test.cpp
+44 −49 tests/Statement_test.cpp
+118 −118 tests/Transaction_test.cpp
2 changes: 1 addition & 1 deletion 3rdparty/date
2 changes: 1 addition & 1 deletion 3rdparty/discord-rpc
Submodule discord-rpc updated 1 files
+1 −1 CMakeLists.txt
2 changes: 1 addition & 1 deletion 3rdparty/fmt
Submodule fmt updated 70 files
+8 −0 .github/dependabot.yml
+3 −2 .github/pull_request_template.md
+30 −0 .github/workflows/cifuzz.yml
+9 −1 .github/workflows/doc.yml
+30 −13 .github/workflows/linux.yml
+17 −2 .github/workflows/macos.yml
+65 −0 .github/workflows/scorecard.yml
+12 −4 .github/workflows/windows.yml
+98 −41 CMakeLists.txt
+668 −1 ChangeLog.rst
+1 −1 LICENSE.rst
+42 −28 README.rst
+200 −145 doc/api.rst
+5 −6 doc/build.py
+134 −8 doc/syntax.rst
+1 −1 include/fmt/args.h
+466 −327 include/fmt/chrono.h
+18 −37 include/fmt/color.h
+27 −104 include/fmt/compile.h
+743 −1,144 include/fmt/core.h
+91 −152 include/fmt/format-inl.h
+1,081 −788 include/fmt/format.h
+44 −71 include/fmt/os.h
+22 −50 include/fmt/ostream.h
+201 −174 include/fmt/printf.h
+158 −145 include/fmt/ranges.h
+331 −37 include/fmt/std.h
+62 −33 include/fmt/xchar.h
+40 −29 src/fmt.cc
+1 −5 src/format.cc
+99 −62 src/os.cc
+3 −3 support/Vagrantfile
+0 −1 support/bazel/.bazelrc
+1 −1 support/bazel/.bazelversion
+2 −2 support/bazel/BUILD.bazel
+5 −4 support/bazel/README.md
+1 −1 support/build.gradle
+0 −54 support/cmake/cxx14.cmake
+7 −0 support/rst2md.py
+15 −3 test/CMakeLists.txt
+1 −1 test/add-subdirectory-test/CMakeLists.txt
+1 −1 test/args-test.cc
+386 −26 test/chrono-test.cc
+2 −2 test/compile-error-test/CMakeLists.txt
+1 −0 test/compile-fp-test.cc
+22 −40 test/compile-test.cc
+119 −239 test/core-test.cc
+2 −0 test/enforce-checks-test.cc
+1 −1 test/find-package-test/CMakeLists.txt
+27 −91 test/format-impl-test.cc
+285 −329 test/format-test.cc
+1 −1 test/fuzzing/CMakeLists.txt
+2 −0 test/gtest-extra-test.cc
+1 −6 test/gtest-extra.h
+1 −7 test/gtest/CMakeLists.txt
+1 −1 test/gtest/gmock-gtest-all.cc
+2 −2 test/mock-allocator.h
+36 −88 test/module-test.cc
+15 −56 test/os-test.cc
+16 −47 test/ostream-test.cc
+1 −7 test/posix-mock-test.cc
+0 −2 test/posix-mock.h
+13 −37 test/printf-test.cc
+138 −35 test/ranges-test.cc
+1 −1 test/scan-test.cc
+17 −14 test/scan.h
+1 −1 test/static-export-test/CMakeLists.txt
+198 −20 test/std-test.cc
+2 −6 test/util.h
+118 −55 test/xchar-test.cc
2 changes: 1 addition & 1 deletion 3rdparty/json/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# A simplified version of: https://github.com/nlohmann/json/blob/b21c34517900c46a943c804d9af3a20cd0c77062/CMakeLists.txt

cmake_minimum_required(VERSION 3.1)
cmake_minimum_required(VERSION 3.1...3.14)

project(nlohmann_json LANGUAGES CXX)

Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/miniupnp
Submodule miniupnp updated 58 files
+3 −3 .github/workflows/codeql-analysis.yml
+1 −1 .github/workflows/i586-mingw32msvc.yml
+2 −2 .github/workflows/i686-w64-mingw32.yml
+4 −4 .github/workflows/main.yml
+4 −2 .github/workflows/miniupnpd.yml
+2 −2 .github/workflows/x86_64-w64-mingw32.yml
+0 −104 .travis.yml
+1 −1 LICENSE
+1 −0 README
+2 −2 SECURITY.md
+39 −0 appveyor.yml
+3 −1 minissdpd/Changelog.txt
+1 −1 minissdpd/VERSION
+2 −2 minissdpd/config.h
+0 −304 minissdpd/getifaddr.c
+1 −0 minissdpd/getifaddr.c
+0 −36 minissdpd/getifaddr.h
+1 −0 minissdpd/getifaddr.h
+2 −2 minissdpd/minissdpd.c
+1 −1 miniupnp.podspec
+90 −9 miniupnpc/CMakeLists.txt
+19 −1 miniupnpc/Changelog.txt
+12 −5 miniupnpc/Makefile
+1 −1 miniupnpc/README
+1 −1 miniupnpc/VERSION
+4 −4 miniupnpc/include/miniupnpc.h
+18 −0 miniupnpc/miniupnpc.pc.in
+3 −3 miniupnpc/src/minisoap.c
+3 −3 miniupnpc/src/miniwget.c
+27 −19 miniupnpc/src/upnpc.c
+39 −3 miniupnpc/src/upnperrors.c
+8 −3 miniupnpc/testminiwget.sh
+3 −2 miniupnpc/testupnpreplyparse.sh
+33 −1 miniupnpd/Changelog.txt
+1 −1 miniupnpd/README
+1 −1 miniupnpd/VERSION
+34 −24 miniupnpd/configure
+8 −5 miniupnpd/linux/miniupnpd.init.d.script
+3 −37 miniupnpd/macros.h
+8 −2 miniupnpd/minissdp.c
+57 −11 miniupnpd/miniupnpd.c
+17 −10 miniupnpd/miniupnpd.conf
+5 −4 miniupnpd/natpmp.c
+2 −1 miniupnpd/netfilter_nft/nftnlrdr.c
+24 −19 miniupnpd/netfilter_nft/nftnlrdr_misc.c
+1 −1 miniupnpd/netfilter_nft/scripts/nft_delete_chain.sh
+1 −1 miniupnpd/netfilter_nft/scripts/nft_display.sh
+1 −1 miniupnpd/netfilter_nft/scripts/nft_flush.sh
+1 −1 miniupnpd/netfilter_nft/scripts/nft_init.sh
+1 −1 miniupnpd/netfilter_nft/scripts/nft_removeall.sh
+8 −2 miniupnpd/options.c
+3 −2 miniupnpd/pcpserver.c
+45 −0 miniupnpd/rw_unaligned.h
+12 −1 miniupnpd/upnpdescgen.c
+6 −3 miniupnpd/upnphttp.c
+245 −10 miniupnpd/upnppermissions.c
+15 −3 miniupnpd/upnppermissions.h
+3 −3 miniupnpd/upnppinhole.c
+4 −4 miniupnpd/upnpredirect.c
+64 −32 miniupnpd/upnpsoap.c
2 changes: 1 addition & 1 deletion 3rdparty/re2
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,6 @@ macro(CONFIGURE_WZ_COMPILER_WARNINGS)
endif()
endmacro(CONFIGURE_WZ_COMPILER_WARNINGS)

add_definitions("-DHAVE_CONFIG_H")

# CMAKE_CURRENT_BINARY_DIR should come before the current source directory
# so that any build products are preferentially included over in-source build
# products that might have been generated by a different compilation method / run
Expand Down Expand Up @@ -794,7 +792,7 @@ function(CHECK_IS_ABSOLUTE_PATH _var _output)
endfunction()
CHECK_IS_ABSOLUTE_PATH(WZ_DATADIR WZ_DATADIR_ISABSOLUTE)
CHECK_IS_ABSOLUTE_PATH(WZ_LOCALEDIR WZ_LOCALEDIR_ISABSOLUTE)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/src/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/src/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/wz2100-generated-config.h)

# Attempt to find Miniupnpc (minimum supported API version = 9)
# NOTE: This is not available on every platform / distro
Expand Down
7 changes: 3 additions & 4 deletions lib/framework/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@
#define __STDC_LIMIT_MACROS
#endif

#if defined(HAVE_CONFIG_H)
# undef _XOPEN_SOURCE
# include "config.h"
#endif
// Always include generated config.h
#undef _XOPEN_SOURCE
#include "wz2100-generated-config.h"

#include <stddef.h> // for size_t

Expand Down
12 changes: 3 additions & 9 deletions lib/framework/wzglobal.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,9 @@
#define __STDC_LIMIT_MACROS
#endif

#if defined(HAVE_CONFIG_H)
# undef _XOPEN_SOURCE
# include "config.h"
#elif !defined(HAVE_CONFIG_H)
# define PACKAGE "warzone2100"
# define PACKAGE_BUGREPORT "http://wz2100.net/"
# define PACKAGE_NAME "Warzone 2100"
# define PACKAGE_TARNAME "warzone2100"
#endif
// Always include generated config.h
#undef _XOPEN_SOURCE
#include "wz2100-generated-config.h"


/* ---- Platform detection ---- */
Expand Down
24 changes: 17 additions & 7 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,17 @@ if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
XCODE_ATTRIBUTE_DEPLOYMENT_POSTPROCESSING[variant=Release] YES
)

# Bundle the crashpad_handler (if enabled)
if(TARGET crashpad_handler)
message(FATAL_ERROR "crashpad_handler is not supported for macOS builds (it does not support sandboxed apps)")
# But if we *could* use it, we'd bundle it as follows:
# Use a post-build step to copy it to the executables folder in the app bundle
#add_custom_command(TARGET warzone2100 POST_BUILD
# COMMAND ${CMAKE_COMMAND} -E copy_if_different
# $<TARGET_FILE:crashpad_handler> $<TARGET_FILE_DIR:warzone2100>
#)
endif()

if(WZ_ENABLE_BACKEND_VULKAN)
# Vulkan / MoltenVK
find_package(Vulkan)
Expand Down Expand Up @@ -622,13 +633,12 @@ endif()

# Support crashpad sentry backend - requires installation of helper binary to handle crashes
if(TARGET crashpad_handler)
if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
message(FATAL_ERROR "crashpad_handler is not currently supported for macOS builds")
endif()
install(TARGETS crashpad_handler COMPONENT Core DESTINATION "${WZ_APP_INSTALL_DEST}")
if(WIN32 AND TARGET crashpad_wer)
# On Windows, also install the crashpad_wer.dll (if built with support)
install(TARGETS crashpad_wer RUNTIME COMPONENT Core DESTINATION "${WZ_APP_INSTALL_DEST}")
if(NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
install(TARGETS crashpad_handler COMPONENT Core DESTINATION "${WZ_APP_INSTALL_DEST}")
if(WIN32 AND TARGET crashpad_wer)
# On Windows, also install the crashpad_wer.dll (if built with support)
install(TARGETS crashpad_wer RUNTIME COMPONENT Core DESTINATION "${WZ_APP_INSTALL_DEST}")
endif()
endif()
endif()

Expand Down
1 change: 0 additions & 1 deletion src/input/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

#include "manager.h"
#include "context.h"
#include "config.h"
#include "mapping.h"

#include "../keybind.h"
Expand Down
2 changes: 1 addition & 1 deletion src/multistat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ class KnownPlayersDB {
// Begin transaction
SQLite::Transaction transaction(*db);

auto mutedTimeValue = mutedTime.has_value() ? mutedTime.value().time_since_epoch().count() : 0;
int64_t mutedTimeValue = static_cast<int64_t>(mutedTime.has_value() ? mutedTime.value().time_since_epoch().count() : 0);

query_insertNewPlayerOptions->bind(1, publicKeyb64);
query_insertNewPlayerOptions->bind(2, name);
Expand Down
3 changes: 0 additions & 3 deletions vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@
"host": true
}
],
"overrides": [
{ "name": "sqlite3", "version": "3.40.1" }
],
"default-features": [
"vulkan"
],
Expand Down
Loading