Commit Graph

1718 Commits

Author SHA1 Message Date
Robin Gareus
54e45ad50c Bump required libcurl version
Note that 7.55.0 was released in August 2017
2026-01-13 06:10:58 +01:00
Robin Gareus
53cd5e34c4 Update another deprecated libcurl API
'CURLINFO_CONTENT_LENGTH_DOWNLOAD' is deprecated: since 7.55.0.
Use CURLINFO_CONTENT_LENGTH_DOWNLOAD_T
2026-01-13 06:08:30 +01:00
Robin Gareus
dc54c57176 Handle libarchive errors #10121
This properly handles missing write permissions (that previously
crashed when trying to close the archive).
Also report and error on disk-full or other write failures
such as 4GB file limit.
2026-01-13 01:11:33 +01:00
John Emmas
8a3b7f3701 A minor comment change 2025-12-20 12:27:09 +00:00
John Emmas
841ec1c838 Revert some code that got removed accidentally
...but keep the new code that's needed for Stephen's build
2025-12-20 12:14:53 +00:00
Robin Gareus
c9b4b94466 Fix source-code visibility comments 2025-12-13 20:14:05 +01:00
EZ4Stephen
98b9839e58 Replace DECLARE_DEFAULT_COMPARISONS 2025-12-13 16:05:05 +01:00
EZ4Stephen
783202d3ad MSVC waf-build specific fixes
* Dodge ardourext/pthread.h when WAF_BUILD is defined
* add io.h for POSIX style read/close
* define timeval
2025-12-13 16:05:00 +01:00
Robin Gareus
ca04a320c4 Add curl trace support 2025-12-09 23:15:30 +01:00
Robin Gareus
b11ef7fee4 Fix curl 421 errors when disabling verify peer
```
== Info: WARNING: disabling hostname validation also disables SNI.
```
which leads to a "431 Misdirected Request" reply for servers
with shared hosting.
2025-12-09 23:05:29 +01:00
Robin Gareus
728558e51c Use compiler provided PTW_VERSION define for compatibility 2025-12-05 16:00:09 +01:00
Robin Gareus
6ce8358709 Remove yet another irrelevant unistd.h 2025-12-02 14:00:59 +01:00
Robin Gareus
34609232f0 Remove deprecated no-op function (1/2)
Glib::thread_init has been deprecated since 2.32,ib
is no longer necessary and no longer has any effect.

This fixes builds with modern glib[mm] versions, notably
with msys2 in Windows.
2025-11-20 23:10:52 +01:00
Robin Gareus
fc3b79dd58 Revert "glib version checks for MSYS"
This reverts commit bb6171bbb2.
2025-11-20 22:00:12 +01:00
Franke Burgarino
bb6171bbb2 glib version checks for MSYS 2025-11-20 13:38:18 -06:00
Robin Gareus
224e5ec163 When Ardour is running, there is at least 1 CPU core available 2025-11-12 02:22:26 +01:00
Paul Davis
f932e4bf15 UndoTransaction: do not delete a Command when handling its DropReferences signal 2025-11-11 13:01:50 -07:00
Paul Davis
decb945300 simpler assert 2025-11-11 13:01:50 -07:00
Paul Davis
751dea75d3 use drop_and_kill() when connecting Commands to their dependents 2025-11-11 13:01:50 -07:00
Paul Davis
210f58ddb7 add Destructible::drop_and_kill()
This should be used when a Destructible-derived object needs to be
deleted. Handlers of the DropReferences signal should not responsible for
deleting the Destructible, since that would happen in the middle of signal
emission.

Instead, emit the DropReferences signal, then delete the Destructible.
2025-11-11 13:01:50 -07:00
Paul Davis
a1d5294af5 use nullptr not zero 2025-11-11 13:01:50 -07:00
Robin Gareus
599d02bd2e Amend previous commit, fix diff 2025-11-10 20:12:53 +01:00
Robin Gareus
8929147566 Another partial revert of 4998b114ea, fix mingw builds 2025-11-10 20:04:11 +01:00
Robin Gareus
57fc904004 Undo changes from 4998b114e that break existing MSVC build
This defines should be in common header file and wrapped
in an #ifndef clause
2025-11-10 16:00:48 +01:00
Robin Gareus
b3e4deb32f Prefer std::regex over C regex_t 2025-11-09 21:27:26 +01:00
Robin Gareus
bf154d0239 AmEND 2025-11-09 20:55:42 +01:00
Robin Gareus
4998b114ea First batch of change of waf/MSVC specific changes from EZ4Stephen 2025-11-09 20:51:56 +01:00
Robin Gareus
1ee5a68d76 Use consistent defines for header availability 2025-11-09 20:51:36 +01:00
Robin Gareus
8efc12c66a Update file-utils include, add windows.h for CreateHardLinkA 2025-11-04 16:54:27 +01:00
Robin Gareus
78677b672c Copy more mingw branches for MSVC 2025-10-22 18:48:40 +02:00
Robin Gareus
52bd416845 Only save modified configuration variable to user config
This allows to change default values when necessary.
2025-09-11 23:30:22 +02:00
Robin Gareus
a6e3708a8a NO-OP: format comment 2025-08-23 21:46:35 +02:00
Robin Gareus
bdc4d6fb60 Potential fix for MSVC builds 2025-08-17 17:30:22 +02:00
Robin Gareus
92bcddb437 Emit Signal when MCSS Threads are exhausted
By default Windows has limit of 32 MMCSS threads.
Ardour uses MMCSS scheduling for for hardware I/O (audio and MIDI)
as well as for realtime process threads, and a user on a
recent machine may run into this limit.
2025-08-16 23:11:16 +02:00
Robin Gareus
5ffc3aa28b Use PBD namespace for free CPU functions
Ideally never put methods in the global namespace
to prevent potential conflicts.
2025-08-15 22:10:31 +02:00
Robin Gareus
b1d5f065db Add API to query max MMCSS threads on Windows
By default Windows limits the number of MMCSS threads to 32.
This can cause problems on modern systems with >= 32 cores,
when Ardour uses many process and I/O threads.

So far this is just a first step (query API)
2025-08-15 22:02:44 +02:00
John Emmas
b795d36cd3 Avoid using 'boost::aligned_storage' which is known to be problematic in MSVC builds
MS initially believed the runtime issues might be fixable in VS2015 but in fact, Boost's alignment strategy and Microsoft's alignment strategy just turned out to be incompatible:-

https://www.boost.org/doc/libs/1_65_0/libs/type_traits/doc/html/boost_typetraits/reference/aligned_storage.html
2025-06-17 09:02:24 +01:00
Robin Gareus
0803cac946 Fix optimized builds 2025-06-07 01:53:33 +02:00
Paul Davis
cc435bcd0f make connection/emission debugging of PBD::Signal more useful/informative 2025-06-06 09:07:45 -06:00
Robin Gareus
b92fa1d0e4 Use PBD::CCurl for libardour HTTP/S requests 2025-05-20 00:03:21 +02:00
Robin Gareus
4f300b5474 Migrate SSL-cert setup to libpbd, so the downloader can use it 2025-05-20 00:03:21 +02:00
Robin Gareus
d537cdf60b Fix windows build (see also e44a66287a) 2025-05-19 18:39:13 +02:00
Robin Gareus
e44a66287a Correctly detect localtime_r 2025-05-18 20:08:27 +02:00
Robin Gareus
6c8a2ec05b Fix false read-only detection of sessions on Windows with OneDrive
see https://discourse.ardour.org/t/ardour-8-4-on-win11-amd64-always-opens-session-in-read-only-mode/110063/38?u=x42
2025-05-14 20:21:44 +02:00
Paul Davis
1c0882ba56 PBD::Signal: do not use a StackAllocator for signals with return values 2025-05-09 14:21:05 -06:00
Nils Philippsen
3c63a81c1c Don’t install test programs
Signed-off-by: Nils Philippsen <nils@tiptoe.de>
2025-05-06 23:42:07 +02:00
Paul Davis
2a7bef47fa return immediately in a non-void Signal if there are no handlers
This allows r.begin(() to not refer to undefined memory
2025-05-05 21:51:23 -06:00
Paul Davis
cf84ed0041 use a std::vector to collect signal handler return values, not std::list 2025-05-04 19:21:50 -06:00
Robin Gareus
e3860844a6 Improve StackAllocator debug messages 2025-05-04 23:41:22 +02:00
Paul Davis
02aeb3895f NO-OP: newline/whitespace/brace 2025-04-24 12:07:19 -06:00