summaryrefslogtreecommitdiffstats
path: root/modules/upnp/SCsub
Commit message (Collapse)AuthorAgeFilesLines
* [UPNP] Allow disabling UPNP implementation on the WebFabio Alessandrelli2024-11-231-1/+1
| | | | | | | | | Make UPNP classes custom instance, so they can come with empty implementation on the Web (where the would not work anyway) without breaking scripts referencing it. This results in smaller Web builds by not including the library which also results in the emscripten socket wrappers to be stipped away.
* SCons: Add unobtrusive type hints in SCons filesThaddeus Crews2024-09-251-0/+1
|
* miniupnpc: Disable socket timeout on Windows, matching upstreamRémi Verschelde2024-05-061-1/+2
| | | | Fixes #88471.
* miniupnpc: Update to version 2.2.3Rémi Verschelde2021-11-191-2/+2
| | | | | Library code and public headers are now properly separated, we can fix include paths to remove the redundant subfolder.
* miniupnpc: Update to version 2.2.2Rémi Verschelde2021-03-161-7/+8
|
* SCons: Add explicit dependencies on thirdparty code in cloned envRémi Verschelde2020-12-181-2/+13
| | | | | | | | | | | | | | Since we clone the environments to build thirdparty code, we don't get an explicit dependency on the build objects produced by that environment. So when we update thirdparty code, Godot code using it is not necessarily rebuilt (I think it is for changed headers, but not for changed .c/.cpp files), which can lead to an invalid compilation output (linking old Godot .o files with a newer, potentially ABI breaking version of thirdparty code). This was only seen as really problematic with bullet updates (leading to crashes when rebuilding Godot after a bullet update without cleaning .o files), but it's safer to fix it everywhere, even if it's a LOT of hacky boilerplate.
* SCons: Format buildsystem files with psf/blackRémi Verschelde2020-03-301-3/+3
| | | | | | | | | | | | | | | | | | | | | Configured for a max line length of 120 characters. psf/black is very opinionated and purposely doesn't leave much room for configuration. The output is mostly OK so that should be fine for us, but some things worth noting: - Manually wrapped strings will be reflowed, so by using a line length of 120 for the sake of preserving readability for our long command calls, it also means that some manually wrapped strings are back on the same line and should be manually merged again. - Code generators using string concatenation extensively look awful, since black puts each operand on a single line. We need to refactor these generators to use more pythonic string formatting, for which many options are available (`%`, `format` or f-strings). - CI checks and a pre-commit hook will be added to ensure that future buildsystem changes are well-formatted.
* SCons: Use CPPDEFINES instead of CPPFLAGS for pre-processor definesRémi Verschelde2019-07-031-2/+2
| | | | | | | | It's the recommended way to set those, and is more portable (automatically prepends -D for GCC/Clang and /D for MSVC). We still use CPPFLAGS for some pre-processor flags which are not defines.
* Update miniupnpc library to latest masterFabio Alessandrelli2019-06-301-1/+2
|
* SCons: Always use env.Prepend for CPPPATHRémi Verschelde2019-04-301-1/+1
| | | | | | Include paths are processed from left to right, so we use Prepend to ensure that paths to bundled thirdparty files will have precedence over system paths (e.g. `/usr/include` should have lowest priority).
* SCons: Build thirdparty code in own env, disable warningsRémi Verschelde2018-09-281-1/+5
| | | | | Also remove unnecessary `Export('env')` in other SCsubs, Export should only be used when exporting *new* objects.
* Add UPnP support (port forwarding, querying external IP)mhilbrunner2018-06-071-0/+32