mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 21:12:23 +00:00
build: add option to customize config files system path
Some packagers need to install default config files to some path but automatically load system configuration files from another path. See #2704
This commit is contained in:
parent
ea442fa047
commit
7c804cd796
@ -27,7 +27,7 @@ def __get_features_string__(ctx):
|
||||
def __add_mpv_defines__(ctx):
|
||||
from sys import argv
|
||||
ctx.define("CONFIGURATION", " ".join(argv))
|
||||
ctx.define("MPV_CONFDIR", ctx.env.CONFDIR)
|
||||
ctx.define("MPV_CONFDIR", ctx.env.CONFLOADDIR)
|
||||
ctx.define("FULLCONFIG", __escape_c_string(__get_features_string__(ctx)))
|
||||
|
||||
def configure(ctx):
|
||||
|
2
wscript
2
wscript
@ -872,6 +872,8 @@ _INSTALL_DIRS_LIST = [
|
||||
('mandir', '${DATADIR}/man', 'man pages '),
|
||||
('docdir', '${DATADIR}/doc/mpv', 'documentation files'),
|
||||
('zshdir', '${DATADIR}/zsh/site-functions', 'zsh completion functions'),
|
||||
|
||||
('confloaddir', '${CONFDIR}', 'configuration files load directory'),
|
||||
]
|
||||
|
||||
def options(opt):
|
||||
|
Loading…
Reference in New Issue
Block a user