Commit Graph

3675 Commits

Author SHA1 Message Date
Steve Lhomme 391a6bb9ff configure: add an option to force the qtconf used
By default we use the contrib one if it's there, or we let qtpaths6 decide.
2024-05-25 07:27:28 +00:00
Steve Lhomme 936ccbcda0 configure: prioritize the system qtpaths6
For native build it's important to get that one.
For other builds, we pass the qtconf file anyway, it doesn't matter which one is used.

Co-authored-by: Fatih Uzunoglu <fuzun54@outlook.com>
2024-05-25 07:27:28 +00:00
Alexandre Janniaux 1910bdd991 configure.ac: remove aligned_alloc from darwin
aligned_alloc() from Darwin doesn't pass the alignment tests but is
still detected since it's usable. This commit always fallback on the
compat version to ensure we build a version which passes the tests.
2024-05-25 06:56:07 +00:00
Steve Lhomme 502824e383 configure: make Qt logs less verbose
Only show the qmake command once.
2024-05-23 12:08:24 +00:00
Steve Lhomme f6e3ef02c5 configure: remove write-only QT_INCLUDE_DIRECTORY 2024-05-23 12:08:24 +00:00
Steve Lhomme 383211541e configure: don't expose the Qt version number
qmake will provide the proper private includes to use
2024-05-23 12:08:24 +00:00
Steve Lhomme a63101309a configure: remove unused check for static libraries 2024-05-23 12:08:24 +00:00
Steve Lhomme 02a35d271d configure: check availability of Qt modules using qmake 2024-05-23 12:08:24 +00:00
Steve Lhomme e5546bc02d configure: detect private Qt6 Wayland Client using qmake 2024-05-23 12:08:24 +00:00
Steve Lhomme ce1e02d04d configure: detect Qt6 QuickTest using qmake
Rather than using pkgconfig and a python script.
2024-05-23 12:08:24 +00:00
Steve Lhomme c434cc1622 configure: remove empty section to compile private headers 2024-05-23 12:08:24 +00:00
Steve Lhomme 20d63bd8dd configure: detect private Qt6 Quick using qmake
It's faster than compiling a file.
2024-05-23 12:08:24 +00:00
Steve Lhomme cdb60a77b0 configure: detect private Qt6 GUI using qmake
It's faster than compiling a file.
2024-05-23 12:08:24 +00:00
Steve Lhomme 9fc6ea3c57 configure: detect private Qt6 Core using qmake
It's faster than compiling a file.
2024-05-23 12:08:24 +00:00
Steve Lhomme c110a85c78 configure: get Qt6 CFLAGS from qmake 2024-05-23 12:08:24 +00:00
Steve Lhomme 2dd056de02 configure: check the Qt version reported by qtpaths 2024-05-23 12:08:24 +00:00
Steve Lhomme 8fe1862ec1 configure: rely more on qtpaths6 to get Qt pathes
We assume all Qt modules use the same version and are installed in the same prefix.
qtpaths6 (or qmake6) cannot tell the difference, so it's unlikely people would do that.
That might be possible on a system that relies on CMake and doesn't provide qmake.
2024-05-23 12:08:24 +00:00
Steve Lhomme b5b229e634 configure: get the static libraries needed by Qt6 from qmake
Rather than our custom qtvlcdeps
2024-05-23 12:08:24 +00:00
Steve Lhomme 9dc51f66df configure: check disabled enable_qt at the very end
There is more than one places where qt support can be disabled.
2024-05-23 12:08:24 +00:00
Steve Lhomme 31938ff13a configure: clean the x262 check and fix typo 2024-05-17 07:46:28 +00:00
Steve Lhomme 8ce83d83ae configure: use qtpaths6 instead of qmake6
So we don't have to build qmake6.
2024-05-17 07:46:28 +00:00
Steve Lhomme f28df58732 configure: add extra code checks matching GCC 14
In gcc 14 some warnings are now turned into errors by default [1].
So of these were already errors in VLC. But there's are some that we can use.

This will ensure the VLC code is ready for the GCC 14 move.
However there's a chance some contribs don't build anymore, especially the old
unmaintained ones.

[1] https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors
2024-05-14 07:16:15 +00:00
Fatih Uzunoglu e6a1738d9f qt: add kwindowsystem_module and win32windoweffects_module 2024-05-09 16:05:51 +00:00
Steve Lhomme b44f3fdde3 configure: remove Qt6ShaderTools from required dependencies
We never use that code directly. We use qsb but as native with manual detection.
2024-05-07 12:21:13 +00:00
Steve Lhomme 0df47ad72a configure: keep the fxc path
We need to add it to the PATH when calling qsb which assumes it's in the PATH.
qsb doesn't have an option to tell it where to look (in contribs). So if it's
not in the PATH it will never find it.

Then we can use the one from contribs.
2024-04-23 15:35:10 +00:00
Steve Lhomme d5f62142e8 configure: don't check for host-protoc
It only existed in the VLC repository but we don't build it anymore.
2024-04-18 08:47:38 +00:00
Steve Lhomme f4b91ae13b configure: use bin dirs from pkgconfig on native builds, contrib native bin dirs otherwise 2024-04-17 08:32:07 +00:00
Steve Lhomme dfc998262e configure: use qmake6 to check QML modules
If Qt5 and Qt6 are installed, qmake might build for Qt5.
2024-04-17 08:32:07 +00:00
Steve Lhomme e012186b98 configure: use a different qtconf when contribs are not found 2024-04-17 08:32:07 +00:00
Steve Lhomme 38f562c598 configure: show the logs of check_qml_module.py in the logs
So we know what is failing.
2024-04-17 08:32:07 +00:00
Fatih Uzunoglu 8794f7badf qt: do not check for Qt6Network 2024-04-11 09:25:32 +00:00
Steve Lhomme af826f4a02 configure: use the native qmake
The target qmake uses the native qmake with this extra parameter.
And add some extra logs.

We don't want to rebuild the target qmake (and the whole Qt) just to get this
script.
2024-04-03 15:10:28 +02:00
Steve Lhomme b60f7b703a configure: detect QtQml.WorkerScript is present
It is not always present with QtQml.
2024-04-03 10:17:47 +00:00
Steve Lhomme 6460ab7fdd configure: detect Qt native tools in the contrib native path
In addition to the regular PATH.
2024-04-03 10:17:47 +00:00
Alaric Senat b5c36b754e medialibrary: update to 0.13 API changes 2024-03-30 17:41:04 +00:00
Fatih Uzunoglu dfd6ae77ea Revert "qt: disable qt temporarily"
This reverts commit c6e9cebfab.
2024-03-29 17:34:02 +00:00
Fatih Uzunoglu 3a2e437152 qt: port old GLSL ES shader into GLSL 440 and automate compilation into qsb 2024-03-29 17:34:02 +00:00
Fatih Uzunoglu d8e9e1a2b6 qt: update to Qt 6 2024-03-29 17:34:02 +00:00
Fatih Uzunoglu fccd72e39a qt: disable qt temporarily 2024-03-29 17:34:02 +00:00
Felix Paul Kühne bb5723b728 build system: simplify checks for iOS and tvOS
Almost always, we support all features on both OS so a new, shared
check is introduced. It cannot be applied to xrOS which lacks OpenGL.
2024-03-20 05:59:45 +00:00
Felix Paul Kühne 004ec1a950 build system: add support for xrOS 2024-03-20 05:59:45 +00:00
Alexandre Janniaux 14deabb11a configure.ac: disable unsupported android headers/functions
Android doesn't have a working sys/shm.h (but still has the file) until
ANDROID_API==26. The other headers were not functional too, and
disabling them fallback to vlc_fixups.h.
2024-02-23 10:12:45 +00:00
Alexandre Janniaux 06f92cd58e configure.ac: simplify GLES2 check
... and enable gles2 by default.

On Android, GLESv2 is provided from the system without pkg-config
definition file, but we provide GLES2_CFLAGS and GLES2_LIBS.
2024-02-23 10:12:45 +00:00
Alexandre Janniaux 371372cfeb configure.ac: simplify EGL check
On Android, EGL is provided from the system without pkg-config
definition file, but we provide EGL_CFLAGS and EGL_LIBS.
2024-02-23 10:12:45 +00:00
Alexandre Janniaux 7603dbf214 configure.ac: supply GLES/EGL libs on Android
Android provides GLESv2 and EGL from the SDK, but doesn't provide a
pkg-config file, so expose it directly from configure.ac.
2024-02-23 10:12:45 +00:00
Alexandre Janniaux 2ea16045db configure.ac: parse android API level
The --host used to configure the VLC buildsystem can also contains a
version number, referencing the minimum API level supported for the
build.

For armv7, the target name will end with androideabi$(API_VERSION),
so eabi needs to be stripped out.
2024-02-23 10:12:45 +00:00
Alexandre Janniaux 3c23f0635d configure.ac: detect android from host_os
This patch consider linux-android as a separate target than linux,
removing the need to check for __ANDROID__ at preprocessor time to
detect that we're building for android.

It will also be used later to include autoconf fixes for Android and
handle the system target version from the --host parameter.
2024-02-23 10:12:45 +00:00
Rémi Denis-Courmont 38c1029176 stdckdint: add compatibility header
This only implements unsigned types for now, as there are no known use
cases for signed checked arithmetic as of yet. The macros will safely
error out at compilation time if signed types are misused.
2024-02-20 19:34:53 +00:00
Steve Lhomme 803499c569 configure: detect AMD HQScaler 2024-02-19 07:39:41 +00:00
Steve Lhomme 827b4e0450 configure: assume d3d11.h is always there
It's already true for mingw-w64 v5 and above.
2024-02-19 07:39:41 +00:00