diff options
author | wm4 <wm4@nowhere> | 2015-01-02 03:18:16 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-02 03:18:16 +0100 |
commit | c4f39d2aba6f1f785648a2a96d147243cf944e12 (patch) | |
tree | 7af5603981ed63f4e2d30898e99c8c2dbe7696ce | |
parent | f12b70d77d42211f06a71eaa61c0e650f06fb501 (diff) | |
download | mpv-c4f39d2aba6f1f785648a2a96d147243cf944e12.tar.bz2 mpv-c4f39d2aba6f1f785648a2a96d147243cf944e12.tar.xz |
build: rename MPLAYER_CONFDIR define
We certainly don't use the mplayer configuration dir. The name didn't
matter, but now that it's in user-visible output (as part of config.h
being dumped in verbose mode), it's a bit too strange.
-rwxr-xr-x | old-configure | 2 | ||||
-rw-r--r-- | options/path.c | 2 | ||||
-rw-r--r-- | waftools/generators/headers.py | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/old-configure b/old-configure index 9859a31f28..503f3d5d38 100755 --- a/old-configure +++ b/old-configure @@ -938,7 +938,7 @@ cat > $TMPC << EOF #define CONFIGURATION "$configuration" -#define MPLAYER_CONFDIR "$_confdir" +#define MPV_CONFDIR "$_confdir" /* we didn't bother to add actual config checks for this, or they are for platforms not supported by this configure script */ diff --git a/options/path.c b/options/path.c index 80c461cda8..5783e2e549 100644 --- a/options/path.c +++ b/options/path.c @@ -74,7 +74,7 @@ static int mp_add_xdg_config_dirs(struct mpv_global *global, char **dirs, int i) i = mp_add_macosx_bundle_dir(global, dirs, i); #endif - dirs[i++] = MPLAYER_CONFDIR; + dirs[i++] = MPV_CONFDIR; return i; } diff --git a/waftools/generators/headers.py b/waftools/generators/headers.py index 30a4e365e4..0046cbf75d 100644 --- a/waftools/generators/headers.py +++ b/waftools/generators/headers.py @@ -39,13 +39,13 @@ def __write_version_h__(ctx): def __escape_c_string(s): return s.replace("\"", "\\\"").replace("\n", "\\n") -def __add_mplayer_defines__(ctx): +def __add_mpv_defines__(ctx): from sys import argv ctx.define("CONFIGURATION", " ".join(argv)) - ctx.define("MPLAYER_CONFDIR", ctx.env.CONFDIR) + ctx.define("MPV_CONFDIR", ctx.env.CONFDIR) ctx.define("FULLCONFIG", "\\n" + __escape_c_string(ctx.get_config_header()) + "\\n") def configure(ctx): - __add_mplayer_defines__(ctx) + __add_mpv_defines__(ctx) __write_config_h__(ctx) __write_version_h__(ctx) |