1
mirror of https://code.videolan.org/videolan/vlc synced 2024-07-25 09:41:30 +02:00
Commit Graph

3569 Commits

Author SHA1 Message Date
Marvin Scholz
1b99a38934 configure: fix incorrect variable expansion
Fix #27584
2022-12-21 13:48:49 +00:00
Yann Lochet
ecbf394036 gstdecode: add support for DMABUF 2022-12-20 15:00:25 +00:00
Steve Lhomme
92efc84601 libvlc: hardcode the values in libvlc_version.h
So it doesn't need to be generated to be used.

We check the values match the ones in configure.ac during compilation.
2022-12-09 10:01:17 +00:00
Marvin Scholz
323ad282d4 configure: do not check for always-present Darwin headers
The headers are always present, so we can just enable the modules on
Darwin instead of checking for the headers of the Frameworks they need.
2022-12-08 09:47:09 +00:00
Marvin Scholz
b33567c34e configure: do not check for swscale/avutil headers
Nowhere in the code are the defines for these headers checked.
2022-12-08 09:47:09 +00:00
Yann Lochet
75e52f617b configure: make it possible to override wayland-scanner
When cross-compiling, PKG_CONFIG might pick up the wayland-scanner
from the sysroot.
2022-12-01 09:00:22 +00:00
Brad Smith
61785764c0 Simplify OSS check by removing OpenBSD specific header check
OpenBSD has long since stopped using OSS in favor of sndio.
2022-11-30 11:02:24 +00:00
Steve Lhomme
79d10fb8cb configure: remove unused LIBVLC_ABI_LT_xxx values 2022-11-29 07:06:26 +00:00
Steve Lhomme
c0f2b668d6 configure: decode the libtool version-info from the .so version name
And not the (confusing) other way around.
2022-11-29 07:06:26 +00:00
Steve Lhomme
a89da89042 configure: compute the .so version from the libtool version-info 2022-11-29 07:06:26 +00:00
Steve Lhomme
d111a29aeb configure: add global build values for the libtool version-info
See https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
2022-11-29 07:06:26 +00:00
Marvin Scholz
2d151758ed configure: fix Windows build when --disable-directx is used
Previously the wglew.h check would only be done when directx is enabled,
but when disabled, other OpenGL modules are still enabled and these
would break without the GL/wglew.h include, which would never be done
because HAVE_GL_WGLEW_H would not be defined.
2022-11-24 10:58:46 +00:00
Steve Lhomme
a9f4e21964 configure: add an option to set the PATH to WIX
In the CI the path is in a wine location. If we build WIX in contribs, we can
use that path instead.

We default to the contrib path unless set by the user.
2022-11-24 09:55:18 +01:00
Steve Lhomme
6151644c32 configure: detect how to transform windows pathes
winepath, wslpath and cygpath have a compatible syntax (at least -w and -u).

They should be used depending on what is available in the build environment
rather than hardcoding "wine winepath".
2022-11-24 09:55:17 +01:00
Steve Lhomme
56faa4e12a configure: allow setting the directory where packaged files are put
By default packaged files (Windows, Mac) are build in <top_build>/vlc-4.0.0-dev.

This allows setting a different directory which might avoid some copies when
building into a third party project.
2022-11-24 07:52:41 +00:00
Steve Lhomme
f17d66ebc4 configure: keep the protobuf version used to build 2022-11-07 08:18:49 +00:00
Steve Lhomme
c3cf379a82 configure: don't build chromecast with --disable-chromecast 2022-11-04 16:51:29 +00:00
Steve Lhomme
480ece972f configure: fix chromecast not enabled
Regression from 63b45cfcf0
2022-11-01 10:24:26 +00:00
Pierre Lamot
5e93540e78 qt: add color system theme provided by Gtk
fix: #26511
2022-10-31 06:31:09 +00:00
Niklas Haas
1095115eca opengl: make placebo conditional on <libplacebo/opengl.h>
I want to start using the pl_opengl integration, so we need to slightly
revise the check to ensure we also have the libplaceo opengl header
available.

It's worth pointing out that these headers eventually become
non-conditional (in libplacebo git master as of writing), but we need to
live with this transitional logic until then.
2022-10-15 16:06:52 +00:00
Steve Lhomme
63b45cfcf0 configure: do the same protoc check as done in the contribs
In the contribs we
* check that HOST-protoc has the same version as protobuf
otherwise
* check that protoc has the same version as protobuf

AC_CHECK_TOOL() only tests one version of protoc for the protobuf matching.
2022-10-15 09:31:43 +00:00
Rémi Denis-Courmont
a429ed75e6 configure: remove stray check
Since VLC 3.0.x, VA-API no longer forcefully depends on libavcodec, even
if it is not particularly useful without it.

In fact, if libva is present, libavcodec absent, and the build system
already gladly builds VA support minus the libavcodec plugin.
2022-10-06 06:12:36 +00:00
Steve Lhomme
15192dc0b2 contrib: protobuf: update to 3.4.1
This version with the CVE-2015-5237 fix, without std::mutex and without
CompareString internal function that is a define on Windows.
2022-10-04 05:41:43 +00:00
Steve Lhomme
c0ff6f9807 configure: detect __x_ABI_CWindows_CStorage_CIStorageFolder is defined
Older versions of mingw had only the simplified variants, but the official SDK
doesn't use these so we should use the prefix ones.

Do the same type of check for __x_ABI_CWindows_CStorage_CIApplicationData2

We require mingw 8+ to make UAP/UWP builds.
2022-10-01 11:57:14 +00:00
Steve Lhomme
f67d499893 configure: show the contrib selection result directly
So all AC_MSG_RESULT are grouped in the same block.
2022-09-24 15:26:44 +00:00
Alexandre Janniaux
cb5d59c916 configure.ac: bump libshout to 2.4.3 2022-09-16 05:25:02 +00:00
Steve Lhomme
5b6d90ce83 configure: check mpc/mpcdec.h is available
That's where our contribs put the headers. That's also where the libmpcdec
headers are in Debian which has a newer revision than our contribs (r495 vs
r481).
2022-09-14 12:37:20 +00:00
Alexandre Janniaux
d33f86fd14 configure.ac: add support for wayland in static Qt plugins 2022-09-09 20:38:46 +00:00
Alexandre Janniaux
6261d2dcca configure.ac: add support for XCB in static Qt plugins
The plugins are not mandatory for a successful build, but might result
is no platform plugins being available. The rationale is being able to
build a wayland-only platform.
2022-09-09 20:38:46 +00:00
Alexandre Janniaux
a4d1aa4f9d configure.ac: add support for static Qt plugins
It currently only supports the platforms that were already supported by
the previous contrib system patching. QT_STATIC is checked from the
qconfig.h file.
2022-09-09 20:38:46 +00:00
Juliane de Sartiges
475d13b2a8 udisks: discover localdrives via udisks2 2022-09-08 14:14:11 +00:00
Steve Lhomme
e923aa691f configure: only use SRT libraries that export C++ runtimes correctly 2022-09-06 15:47:59 +00:00
David Fuhrmann
3a08825c8a configure.ac: Use pkg-config to detect presence of libgme
Use the existing pkg-config file to detect presence of libgme. This file
is already shipped on all known libgme versions (checked back until
0.6.0, which is from 2015).

This fixes build with recent libgme versions, which added even more
dependencies which were missing in the old check.

Fixes #27262
2022-08-27 15:27:19 +00:00
Johannes Kauffmann
43d1dc53d6 configure: fix typo 2022-08-15 10:02:43 +00:00
Niklas Haas
2f65f9e766 configure: bump libplacebo minimum dependency to 4.157
With libplacebo 4.192.0 being packaged by the contribs, we can increase
our minimum dependency of libplacebo to v4.x. This allows us to drop
backwards compatibility with v3.x, and thus avoid the use of APIs that
wil be removed in libplacebo v5.x.
2022-08-12 11:23:31 +00:00
Marvin Scholz
cbae4c01f6 configure: adjust luac check for new lua version
The header for luac files changed, so the offset to check had to be
increased. Additionally the contrib lua library now has the version in
the filename.
2022-07-30 17:46:20 +00:00
Juliane de Sartiges
95e7bba610 freerdp: update to freerdp2 api 2022-07-30 09:00:46 +00:00
Niklas Haas
1891ca20e0 configure: properly check for pl_scale deps
This requires not just new-enough libplacebo, but also libplacebo GL
support. Move the check inside the branch of the latter.

Otherwise, this currently fails compiling on systems with new-enough
libplacebo but no libepoxy.
2022-07-12 04:57:25 +00:00
Rémi Denis-Courmont
a29ba2f99a compat: add writev() replacement 2022-07-03 17:31:24 +00:00
Rémi Denis-Courmont
488162f210 compat: add readv() replacement 2022-07-03 17:31:24 +00:00
Rémi Denis-Courmont
3cf4219d61 jpeg: check version support
VLC requires a library version with custom source/destination memory
addresses. Note that we cannot look for symbols as some versions define
them as preprocessor macros aliasing other symbols.

Fixes #27068.
2022-06-18 15:41:08 +00:00
Rémi Denis-Courmont
d7b2337545 configure: require PulseAudio 6.0
This is needed in the next commit.
2022-06-06 12:53:27 +00:00
Johannes Kauffmann
8f0728c88a configure/demux: use C++ flags for sid plugin 2022-06-05 05:42:56 +00:00
Sean McGovern
2999e6a02d fb: remove support
The Linux fbdev subsystem has been deprecated for more than a decade as there are better options available now.
2022-06-03 07:39:19 +00:00
Rémi Denis-Courmont
17db49c1bc drm: fix build without libdrm
The display module does not actually depend on libdrm in any way.
It can be compiled with just the Linux kernel headers, so do just that.
2022-06-02 15:19:11 +00:00
Rémi Denis-Courmont
5ec6bca024 configure: rename KMS to LIBDRM
KMS is a subset of kernel interface. What is tested there is the
presence of libdrm development files.
2022-06-02 15:19:11 +00:00
Rémi Denis-Courmont
dbf4f24aca configure: bump XCB version requirement to 1.8
This is over 11 years old.
2022-05-31 17:31:02 +00:00
Alexandre Janniaux
784c324571 configure: check typeof on C++ compilers
C compilers can have GNU extensions to support typeof in C code, but
some C++ compilers like clang are removing the builtin since decltype
can be used in C++ without the constraints from typeof. Decltype is not
100% equivalent for this reason: references will be kept in the returned
type.

The check in m4/typeof.m4 comes from graydon/monotone and dovecot/core
and was slightly modified to namespace the define for C++ code.
2022-05-21 15:17:00 +00:00
Alexandre Janniaux
a0186adb8e configure.ac: remove x-test checks
x-test syntax (x$foo = xyes/xno) is used to circumvent the fact that
shell variables are substituted and not just defining an argument, so
that $foo doesn't expand to no argument at all.

But "" in posix shell syntax is considered as an argument by itself, so
using quotes around the variable removes this issue. Thus, x-test is
useless in the case where it has been removed in this patch.
2022-05-20 08:51:28 +00:00
Hugo Beauzée-Luyssen
bc03e6e46b medialibrary: Update to 0.12.0 API changes 2022-05-20 07:40:41 +00:00