1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 16:33:02 +00:00
mpv/waftools
Avi Halachmi (:avih) c3a647ffee build: lua 5.1/5.2: use generic version names
TL;DR: use --lua=XXX for pkg-config name XXX, e.g. --lua=lua-5.1 .
       For unversioned 'lua.pc', use the name luadef51/luadef52 .
       Autodetection remains the same (5.2 names, luajit, 5.1 names).
       The old names are still supported, but not auto-detected.

Before this patch, if one wanted to choose a specific lua version when
more than one is installed, then the names were a mess, e.g. 51obsd is
also the name detected on Arch linux, and other (distro) names are
also not unique to a specific distro/platform.

So to ask mpv to choose the package name (specifically, the pkg-config
file name), one needs to look at the mpv sources and find the
(arbitrary) distro name which has the same lua version naming as they
do on their own system, e.g. --lua=51obsd on Arch. This is a pain.

Now we add generic names:
- luadef51/luadef52 - generic pkg-config lua.pc (version is inside).
- lua* - exactly the pkg-config name, e.g. --lua=lua-51 for lua-51.pc
  (the names are curated, e.g. --lua=foo won't detect foo.pc).
- The legacy names (e.g. 51deb) are still supported, but undocumented,
  and the new generic names take precedence during auto-detection.

The fact that the generic names all start with "lua" has an additional
benefit that it shows right after "lua" at the output of mpv -v,
while the old names start with numbers, so they're first at the list,
making it hard to understand that e.g. "51obsd" is the lua version.

None of these names are actually used at the mpv code. The C code
checks the version using the lua headers (LUA_VERSION_NUM).
2021-10-03 19:48:29 +03:00
..
checks build: lua 5.1/5.2: use generic version names 2021-10-03 19:48:29 +03:00
detections build: fix macOS arm builds 2020-11-22 13:44:16 +02:00
fragments build: require at least GL 2.0 headers for GLX 2019-11-30 17:37:56 +01:00
generators file2string: remove question mark from safe chars 2020-11-22 17:16:57 +01:00
__init__.py
clang_compilation_database.py *.py: cosmetic changes 2020-02-27 21:36:21 +01:00
dependencies.py build: sort dependencies (to make build deterministic) 2020-09-18 02:02:49 +00:00
deps_parser.py build: remove some dead code 2017-09-19 18:37:11 +02:00
features.py waftools/features: add forgotten enable variants for enabled features 2021-09-20 00:43:12 +02:00
inflector.py build: lua version: sanitize id before storage (no-op) 2021-10-03 19:48:29 +03:00
syms.py build: fix build for waf 2.0 2017-09-22 09:14:37 +02:00
waf_customizations.py build: fix linking libmpv when swift features are build 2018-07-08 14:39:04 +03:00