Commit Graph

3592 Commits

Author SHA1 Message Date
Steve Lhomme cedea4d018 configure: don't the check presence of stricmp
_stricmp a Windows thing that is present in all the CRT, even in UCRT.
The stricmp() deprecated variant doesn't seem to exist elsewhere.

In some configuration it's not possible to link with stricmp() even though
_stricmp() is available.
2023-02-28 10:10:27 +00:00
Marvin Scholz bb6a8afaf0 configure: check for actool on macOS 2023-02-07 08:05:50 +00:00
Steve Lhomme 42d230befa configure: don't define _POSIX_C_SOURCE for mingw-w64
It forces __USE_MINGW_ANSI_STDIO, M_PI and some functions we already have
done better in compat.
2023-01-31 09:11:53 +00:00
Steve Lhomme a7b55fa70f configure: don't define _POSIX_SOURCE for mingw-w64
It forces __USE_MINGW_ANSI_STDIO, M_PI and some functions we already have
done better in compat.
2023-01-31 09:11:53 +00:00
Steve Lhomme dddae21848 configure: detect asprintf/vasprintf the standard way
The mingw-w64 variant is equivalent to ours. No need to do a special case.
These are GNU functions, not C11 or POSIX functions.
2023-01-31 09:11:53 +00:00
Steve Lhomme 425cc9fe72 configure: don't enable __USE_MINGW_ANSI_STDIO for UCRT builds
mingw-w64 uses the new UCRT stdio API entries that can handle the standard
format strings.
2023-01-29 16:26:06 +00:00
Steve Lhomme 92c2653c6e configure: detect Windows UCRT builds 2023-01-29 16:26:06 +00:00
Johannes Kauffmann 6d33f4fe12 configure/swscale: move logic to Makefile.am 2023-01-27 08:42:05 +00:00
Johannes Kauffmann dc2ae43a0f configure/x264(10b): move logic to Makefile.am 2023-01-27 08:42:05 +00:00
Johannes Kauffmann 62cf08b545 configure/x262: move logic to Makefile.am 2023-01-27 08:42:05 +00:00
Johannes Kauffmann 57ff860241 configure/x262: do not confuse LIBS with LDFLAGS
${ac_cv_ld_bsymbolic} is a linker flag, and not a library to link, so
that should have been VLC_ADD_LDFLAGS. Similarly, ${X262_LIBS} are
linker flags to link a library, so that should have been VLC_ADD_LIBS.
2023-01-27 08:42:05 +00:00
Steve Lhomme d7a9bc2326 meson: remove _ISOCXX_SOURCE macros on Windows
With a proper C11 compiler we don't need this. Either they activate C11
things in the compiler which should be there anyway. Or in the SDK
which is __USE_MINGW_ANSI_STDIO for C99 and nothing else.
2023-01-23 07:27:12 +00:00
Steve Lhomme 7e388405f4 meson: remove unneeded windows defines
They are used to enable _USE_MATH_DEFINES or __USE_MINGW_ANSI_STDIO, which we
already define.
2023-01-23 07:27:12 +00:00
Steve Lhomme 6be0e8af6b configure: remove static_assert check
We require C11 support where it's mandatory. Plus we use it later to check
for some function support.
2023-01-20 08:31:24 +00:00
Steve Lhomme ea876bf896 configure: detect gmtime_r/localtime_r the standard way
The mingw-w64 variants doesn't set the errno, so use our compat version.
2023-01-20 07:17:07 +00:00
Steve Lhomme f417fff8c2 configure: define WIN32_LEAN_AND_MEAN only for Windows
It is used to avoid a lot of extra definitions and includes when including
windows.h.
2023-01-17 10:37:49 +00:00
Steve Lhomme 352ad101b3 rename __LIBVLC__ to LIBVLC_INTERNAL_
define names starting with 2 underscore are reserved.

https://devblogs.microsoft.com/oldnewthing/20230109-00/?p=107685
2023-01-17 10:37:49 +00:00
Steve Lhomme 79f063df81 configure: only use sdkddkver.h to test the default _WIN32_WINNT
It's supported on all mingw-w64 versions we support. We don't need the
whole windows.h for that.
2023-01-13 14:35:04 +00:00
Steve Lhomme 3462d4becb configure: remove skins2 hack to undefine the toolchain off_t 2023-01-07 22:21:26 +00:00
Steve Lhomme 15d669cc80 configure: add missing SSIZE_MAX when ssize_t is missing
There's no way one can exist without the other. And we need SSIZE_MAX in many
parts of the code.
2023-01-07 20:39:45 +00:00
Steve Lhomme 2be4b792d2 configure: use ptrdiff_t for missing ssize_t
It's closer to the definition and use of ssize_t (size_t that can hold  -1)
than a basic int.
2023-01-07 20:39:45 +00:00
Sean McGovern 9bccd7b7aa welcome to 2023 2023-01-07 08:51:39 +00:00
Steve Lhomme fdbf5c77b5 configure: drop _WIN32_IE define
Any decent Windows SDK (and all mingw-w64 we support) will map the
_WIN32_IE value to the minimum OS selected. We build for Windows 7
which should use 0x0601 anyway.
2023-01-05 10:22:50 +00:00
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