summaryrefslogtreecommitdiffstats
path: root/TOOLS/configure_common.py
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-06-10 11:15:48 +0200
committerwm4 <wm4@nowhere>2020-06-10 11:25:10 +0200
commitf3864638404284b7d3a54d22412ab9e81d0a6787 (patch)
tree96c64b6328d17f3b339bd40c61c17cec66c7cbb4 /TOOLS/configure_common.py
parentd5de79d10f895aaa8f65340adf949d28bc09b2d7 (diff)
downloadmpv-f3864638404284b7d3a54d22412ab9e81d0a6787.tar.bz2
mpv-f3864638404284b7d3a54d22412ab9e81d0a6787.tar.xz
build: change/simplify optical disc device detection
So this had a long list of OS specific device files for CD and DVD physical devices. If we ever migrate to a new build system, this will be a PITA for rather questionable usefulness. For example, Linux does provide /dev/sr0, but it also creates /dev/cdrom and /dev/dvd symlinks. For Windows, it's sort of ridiculous to hardcode D: (well, might still work). Get rid of this stuff, hardcode a single device name on Unix, keep D: on Windows. In general, this probably requires runtime detection in theory, so it's not much of a sin to move these from the build system to the code, even if we don't make use of determining the device at runtime yet. This should not invite to add new ifdeffery to add device files for other Unix variants. Rather, if anyone wants to extend this, I'd argue they should add proper runtime detection of the device. Or, even better, create an appropriate symlink on their systems.
Diffstat (limited to 'TOOLS/configure_common.py')
0 files changed, 0 insertions, 0 deletions