1
0
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:
Stefano Pigozzi 2016-01-11 16:35:30 +01:00
parent ea442fa047
commit 7c804cd796
2 changed files with 3 additions and 1 deletions

View File

@ -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):

View File

@ -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):