path: root/
Commit message (Collapse)AuthorAgeFilesLines
* bootstrap: log caught URLErrorJan Ekström2020-12-221-2/+2
| | | | | | | This enables us to get more of a message than just "Download failed.", possibly helping people help themselves to get the download going. References #8417
* remove all python2 supportLaserEyess2020-11-271-6/+1
| | | | | | | | | In 0.33.0 python2 support has been removed from mpv's build system. This commit removes python2 compatibility code from with the following changes: - __future__ import for print_function is not needed - urllib2 is python2 only
* build: always run waf with python3Uoti Urpala2020-11-221-0/+6
| | | | | | | | | | | | Upstream waf still ships with the default interpreter being "python", though the script works with both Python 2 and Python 3 (they're not changing the default choice during 2.0.x releases for compatibility reasons apparently). Add code to to change the interpreter from "python" to "python3" when downloading the "waf" file. Running any mpv code under Python 2 should be considered unsupported in the future (and any code added need not work under Python 2).
* build: bump waf to 2.0.20Jan Ekström2020-10-161-2/+2
| | | | | | There have been mentions that there are apparently some bugs with regards to possible random build failures, so bumping after a few years sounds like an OK thing to test/do.
* build: force to use python3Niklas Haas2019-12-241-1/+1
| | | | The script fails running successfully with python2.
* build: add --no-download option to bootstrap.pyPhilip Sequeira2018-08-131-0/+4
| | | | | | | With this option, the script will check that the expected waf version is present, but will simply fail if it's not, rather than trying to download it. This allows a package build script to avoid compile-time network access but still ensure it's using the right waf version.
* build: bump waf to 2.0.9Akemi2018-07-121-2/+2
| | | | Among other things, fixes compatibility with python 3.7.x.
* build: update wafwm42017-02-171-2/+2
| | | | Seems like it has been long enough since we last updated.
* build: update waf to 1.8.12Stefano Pigozzi2015-07-181-2/+2
* bootstrap: change waf primary mirrorStefano Pigozzi2015-07-121-1/+1
| | | | | Requested by waf's developer. The ftp mirror is going to be closed down in the short future.
* make it work on win32wm42015-06-041-1/+1
| | | | | | Apparently, just running ./waf and hoping that it will be run with a Python interpreter doesn't necessarily work. The workaround is pretty simple and reliable.
* bootstrap: add waf mirrorMartin Herkt2015-03-151-5/+18
* build: update to waf 1.8.4Stefano Pigozzi2014-12-041-2/+2
* build: update waf to version 1.8.1Stefano Pigozzi2014-10-111-2/+4
| | | | Fixes #1164
* bootstrap: update waf website and versionTimothy Gu2014-06-181-3/+3
| | | | | Signed-off-by: Timothy Gu <> Signed-off-by: wm4 <wm4@nowhere>
* build: update wafwm42014-03-041-2/+2
| | | | <lachs0r> it fixes issues with recent python3
* reindent to 4 spacesStefano Pigozzi2013-11-261-4/+4
* check version if waf already existseng2013-11-241-7/+9
* skip download if waf already existswm42013-11-241-1/+7
| | | | | | | | | | | It seems like a good idea not to generate any additional network traffic and wait times if we don't have to. Also print the URL it's downloading from. Note that if we require a newer waf release, there will be a problem. Running ./ won't get the newest waf version anymore in case the old version is in the source dir. Not sure how to handle this.
* switch the build system to wafStefano Pigozzi2013-11-211-0/+28
This commit adds a new build system based on waf. configure and Makefile are deprecated effective immediately and someday in the future they will be removed (they are still available by running ./old-configure). You can find how the choice for waf came to be in `DOCS/waf-buildsystem.rst`. TL;DR: we couldn't get the same level of abstraction and customization with other build systems we tried (CMake and autotools). For guidance on how to build the software now, take a look at and the cross compilation guide. CREDITS: This is a squash of ~250 commits. Some of them are not by me, so here is the deserved attribution: - @wm4 contributed some Windows fixes, renamed configure to old-configure and contributed to the bootstrap script. Also, GNU/Linux testing. - @lachs0r contributed some Windows fixes and the bootstrap script. - @Nikoli contributed a lot of testing and discovered many bugs. - @CrimsonVoid contributed changes to the bootstrap script.