summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-03-12 23:07:05 +0100
committerwm4 <wm4@nowhere>2020-03-13 16:50:27 +0100
commiteb381cbd4b38dd496ee0be609f1a66c360a76448 (patch)
treefc812f68a26dc873f6f512ff6e592547bbcfd205 /wscript_build.py
parentd3ad4e23088da95697ab2ec385267c06293c4515 (diff)
downloadmpv-eb381cbd4b38dd496ee0be609f1a66c360a76448.tar.bz2
mpv-eb381cbd4b38dd496ee0be609f1a66c360a76448.tar.xz
options: split m_config.c/h
Move the "old" mostly command line parsing and option management related code to m_config_frontend.c/h. Move the the code that enables other part of the player to access options to m_config_core.c/h. "frontend" is out of lack of creativity for a better name. Unfortunately, the separation isn't quite clean yet. m_config_frontend.c still references some m_config_core.c implementation details, and m_config_new() is even left in m_config_core.c for now. There some odd functions that should be removed as well (marked as "Bad functions"). Fixing these things requires more changes and will be done separately. struct m_config is left with the current name to reduce diff noise. Also, since there are a _lot_ source files that include m_config.h, add a replacement m_config.h that "redirects" to m_config_core.h.
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wscript_build.py b/wscript_build.py
index 396e771779..a74e6d0f62 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -339,7 +339,8 @@ def build(ctx):
( "misc/thread_tools.c" ),
## Options
- ( "options/m_config.c" ),
+ ( "options/m_config_core.c" ),
+ ( "options/m_config_frontend.c" ),
( "options/m_option.c" ),
( "options/m_property.c" ),
( "options/options.c" ),