1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-24 20:48:52 +02:00
Commit Graph

3281 Commits

Author SHA1 Message Date
Martin Storsjö
0a27328b5a configure: Make the new value of _WIN32_WINNT available to configure tests
Definitions from AH_TOP aren't included in the configure checks.

This was the original intent of e807c8e91.

This makes sure configure checks and actual compilation are run
with the same version defined.
2018-07-12 08:59:05 +03:00
Martin Storsjö
255e2ce279 configure: Don't force _WIN32_WINNT to 0x0601 if it is set to a higher version
Since e807c8e91, we're explicitly unconditionally defining _WIN32_WINNT,
regardless if it was set before or not.

If it was set before (e.g. on the command line), to a higher version,
we should honor that.

This is cruicial for WinRT building, where _WIN32_WINNT is set to Windows
8 or higher on the command line.
2018-07-11 23:40:51 +03:00
Jean-Baptiste Kempf
e20677966f Revert "Port to new libmpcdec API"
This reverts commit 87cb4e591a.
2018-07-11 19:32:20 +02:00
Jean-Baptiste Kempf
b007abf4c3 Remove RealRTSP plugin
Move to 21st century!
2018-07-11 18:50:49 +02:00
Marvin Scholz
6b91f5059a configure: Fix description of font family options
These options do not take the path but the name of the font.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2018-07-10 19:56:16 +03:00
Thomas Guillem
5775166f1b smb2: add libdsm netbios resolver
Because libsmb2 doesn't have any netbios name resolver.

Maybe, every VLC services discoveries should use the IP instead of the netbios
name for SMB shares.
2018-07-07 22:00:07 +02:00
Thomas Guillem
c6e7841663 access: add smb2 module
Using libsmb2 from Ronnie Sahlberg https://github.com/sahlberg/libsmb2
This is LGPL 2.1 fully async lib for accessing SMB2 and SMB3 shares.

This module use the async feature of the libsmb2 lib with the vlc interrupt
mechanism, therefore every network requests are cancellable almost immediately.

The 2.0.0 version is required since this version drop OpenSSL dependency and
allow to use Builtin NTLMSSP authentication instead of libkrb5.
2018-07-07 21:59:17 +02:00
Juha-Pekka Heikkila
adaec7b5a9 linux: kernel mode setting (KMS) vout plugin
Add new kernel mode setting video output plugin.
By default it tries to match vlc suggested video mode to anything
kms api offers. There are command line parameters to control
which video format to use for both vlc and for drm.

kms-vlc-chroma parameter to force VLC to use FourCC as output.
kms-drm-chroma parameter to overide DRM requested framebuffer type.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2018-07-02 09:13:32 +02:00
Rémi Denis-Courmont
902dd36bbd configure: remove LIBPTHREAD
POSIX threads are always enabled implicitly.
2018-06-18 20:08:17 +03:00
Rémi Denis-Courmont
c6dafa8519 configure: remove legacy _REENTRANT / _THREAD_SAFE 2018-06-18 20:08:17 +03:00
Rémi Denis-Courmont
fc8208ec86 configure: always pass -pthread on Linux
This appears to be the official way to get POSIX threads. In practice,
it pre-defines _REENTRANT to 1 and pulls -lpthread.
(This works with both GCC and Clang.)
2018-06-18 20:08:17 +03:00
Rémi Denis-Courmont
a50366bc97 configure: use $host_cpu where applicable 2018-06-16 21:34:58 +03:00
Rémi Denis-Courmont
50b6429920 configure: fix linking on RISC-V ISA 2018-06-16 21:31:45 +03:00
Martin Storsjö
1162a9ffec Qt: Require Qt 5.9.0 as minimum version
Qt 5.9 is the current LTS branch, first released in May 2017.
2018-06-16 15:20:21 +03:00
Thomas Guillem
d19599c421 libass: fix fontconfig detection
Use have_fontconfig and FONTCONFIG_LIBS for link flags.
2018-06-15 08:48:47 +02:00
Rémi Denis-Courmont
2dc0f81246 Revert "configure: warn about unbound size VLA"
This reverts commit c3eaddc7d5.
Too many false positives.
2018-06-10 13:08:44 +03:00
Rémi Denis-Courmont
a15818e56e configure: simplify Wayland checks
All (useful) parts of wayland source are now treated as a single block
of dependencies (same as libxcb). All errors are printed at once.
2018-05-30 20:37:23 +03:00
Rémi Denis-Courmont
7984db8c03 configure: simplify XCB checks
All (useful) parts of libxcb source are mandatory because there is not
much point in splitting hairs. Xproto is mandatory as before.
All errors are printed at once.
2018-05-30 19:20:12 +03:00
Rémi Denis-Courmont
d06b1c458f xcb/window: implement XKeyboard using xkbcommon 2018-05-29 22:00:07 +03:00
Rémi Denis-Courmont
2c221ec773 xdg-shell: load the default cursor theme 2018-05-24 20:26:15 +03:00
Rémi Denis-Courmont
2ef29b66b9 xdg-shell: implement keyboard events 2018-05-24 08:59:45 +03:00
Rémi Denis-Courmont
c3c92ada31 configure: fix wayland-scanner version requirement 2018-05-21 20:14:59 +03:00
Rémi Denis-Courmont
27a0f4876d xdg-shell: update to stable protocol
This drops support for XDG shell unstable version 5,
i.e. the xdg_shell global.
2018-05-20 20:49:12 +03:00
Rémi Denis-Courmont
0cdeceb7b4 configure: add pointer arithmetic sanitization 2018-05-12 15:47:47 +03:00
Rémi Denis-Courmont
c3eaddc7d5 configure: warn about unbound size VLA 2018-05-12 15:43:56 +03:00
Rémi Denis-Courmont
7e93c6f8ee configure: warn about duplicated conditions and branches 2018-05-12 15:43:56 +03:00
Martin Storsjö
4319ab8d66 configure: Don't explicitly add -ladvapi32 to linker flags
This flag was originally not added because of crypto functions,
but together with -lssp in 460879.

Advapi32 is one of the libs that are automatically linked in by
the mingw compiler/linker driver.

Adding it manually here causes issues with linking libupnp_plugin.la
with lld. Libupnp contains md5 functions, and advapi32 also contains
functions with the same names. If -ladvapi32 is specified early in the
link command, before -lupnp, the conflicts arise. (The same conflicts
don't occur with binutils ld though, since it searches libraries
in a slightly different order than lld.)

The conflict can be avoided by fixing one inconsistency in mingw-w64
though, but then libupnp will use MD5 functions from advapi32.dll
(with an ABI not guaranteed to match the ones it expected) instead
of the ones bundled in libupnp.
2018-04-26 01:48:46 +03:00
Martin Storsjö
fa6ce2425b configure: Don't make the crypt/bcrypt libs dependent of libssp
These should still be added if ssp is disabled.
2018-04-26 01:47:16 +03:00
Steve Lhomme
5f9aa754cf configure: remove check for a header not used in the code
Even if it's not found have_v4l2 will be set to "yes" anyway.

"For each given system header file header-file in the blank-separated argument
list that exists, define HAVE_header-file (in all capitals). If action-if-found
is given, it is additional shell code to execute when one of the header files
is found."
2018-04-12 13:27:46 +02:00
Steve Lhomme
d22de99eb8 configure: remove minizip check not referenced anywhere 2018-04-12 13:24:38 +02:00
Martin Storsjö
0d0aef05c1 direct3d9: Disable OpenGL interop if OpenGL is unavailable
On Windows on ARM/ARM64, OpenGL isn't available. (For emulation
of i386 binaries, there is an opengl32.dll, but it's only the
fallback software renderer, nothing else. For ARM and ARM64, there
is no opengl32.dll.)
2018-04-10 22:55:08 +03:00
Marvin Scholz
66cdaaaf1f osx_notifications: remove Growl support, refactor
As per the discussion on the ML, Growl support is removed for VLC 4.0.

With this refactoring the module is ARC compatible too, simplifying
memory management.

https://mailman.videolan.org/pipermail/vlc-devel/2018-February/117924.html
2018-04-10 01:32:57 +02:00
Steve Lhomme
12aab7fe8e rand: use bcrypt instead of CryptographicBufferStatics for Winstore
It's available to winstore apps and on desktop since Vista.
The old API is deprecated.
2018-03-28 15:01:14 +02:00
Ilkka Ollakka
2529f3dabf configure: bump x264 version requirement and separated x26410b check
on x26410b case, check that x264 has high enough version present.

0.148 is by default in ubuntu 16.04 LTS and has been present since 2015.

ref #19581
2018-03-25 15:38:45 +03:00
Hugo Beauzée-Luyssen
db019b328e configure.ac: Allow stack protection to be disabled
Because some platforms might not support it
Default configuration is unchanged: an optimized build will still have
stack protection enabled.
--enable-ssp --disable-optimizations will have SSP disabled
2018-03-20 14:52:43 +01:00
Rémi Denis-Courmont
c6cdb9ec0f unc: split out Windows support from smb
Too many #ifdef's, not to mention different effective license.
2018-03-18 19:31:19 +02:00
Kamil Rytarowski
4136b3d027 configure: Fix shell portability issue
The == condition is a non-POSIX extension to shell.

It's not supported on NetBSD and it's a fatal error within the pkgsrc
framework, even if the condition might be unused.

Signed-off-by: Marvin Scholz <epirat07@gmail.com>
2018-03-18 03:12:06 +01:00
Hugo Beauzée-Luyssen
4f8dd8964a configure/package: Fix 7zip variable name 2018-03-16 13:14:48 +01:00
Marvin Scholz
b3b0dc2c7a configure: Find 7z 2018-03-16 12:31:52 +01:00
Marvin Scholz
ea1bd4b72e configure: Find makensis and check its version 2018-03-16 02:04:41 +01:00
Rémi Denis-Courmont
6ae2da5f04 configure: remove vlclibdir
See also e1bac00ddb.

This reverts commit 5698895948.
2018-03-07 18:48:47 +02:00
Rémi Denis-Courmont
e1bac00ddb Makefile: use pkgdatadir and remove vlcdatadir
The original idea was to use versioned directories akin to gstreamer,
but no distributions ever did that with VLC. vlcdatadir was always the
same as pkgdatadir.

This reverts half of commit 5698895948.
2018-03-06 20:55:50 +02:00
Martin Storsjö
797efbd407 configure: Check if C++ headers define locale_t
In environments that lack a full locale.h implementation, the C++
headers might implement some fallbacks with the same name
(on windows, libcxx does this).

In these cases, don't provide the normal fallbacks from vlc_fixups.h
when compiling in C++ mode, but include the C++ <locale> header instead.

If <locale> provides locale_t, include the header and define
HAVE_NEWLOCALE (which skips the vlc_fixups.h version of locale_t),
but keep the vlc_fixups.h fallback for uselocale. (One could
also add another configure test for whether <locale> provides
the uselocale function.)

(libcxx doesn't provide any fallback for the uselocale function
since it isn't easily implemented with the msvcrt _locale_t objects.
The libcxx fallback locale_t objects are applied via the setlocale
function, and passed to functions that take a _locale_t parameter.)
2018-02-28 22:11:14 +02:00
Hugo Beauzée-Luyssen
156ceb73e2 configure.ac: Allow automake to know if matroska is enabled or not 2018-02-28 17:52:49 +01:00
Martin Storsjö
e43da3c83e configure: Check if the support library for stack protectors is available
Clang does support the -fstack-protector-strong flag, but that
in itself doesn't mean that the required support library actually
exists.
2018-02-28 11:48:21 +02:00
Martin Storsjö
89707bdde3 configure: Try to add -Wno-incompatible-ms-struct if adding -mms-bitfields
This avoids warnings that are treated as errors by default when building
with clang - warnings like these:

In file included from modules/access/dcp/dcp.cpp:59:
In file included from contrib/x86_64-w64-mingw32/include/AS_DCP.h:88:
In file included from contrib/x86_64-w64-mingw32/include/KM_fileio.h:35:
contrib/x86_64-w64-mingw32/include/KM_util.h:48:11: error: ms_struct may not produce Microsoft-compatible layouts for classes with base classes or virtual functions [-Wincompatible-ms-struct]
    class IntPrinter : public std::string
2018-02-28 11:48:21 +02:00
Martin Storsjö
22fed9624f configure: Include windows.h before checking the _WIN32_WINNT version
The default value of _WIN32_WINNT isn't something that is built into
the compiler, but is defined by the toolchain headers.

Include windows.h after including ws2tcpip.h/winsock2.h, since those
headers should be included in that particular order.
2018-02-26 12:51:06 +02:00
Rémi Denis-Courmont
833d3e8f91 compat: remove no longer used ffsll()
We don't need two ways to count trailing zeroes.
2018-02-25 21:39:23 +02:00
Rémi Denis-Courmont
192c77e42d configure: test for newlocale() separate from uselocale()
As NetBSD only implements a barely sensical subset of the locale_t API.
2018-02-22 21:51:05 +02:00
Marvin Scholz
2aea8b85a2 configure: Simplify mingw flag checks 2018-02-21 21:27:26 +01:00