forked from PyAV-Org/PyAV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
64 lines (43 loc) · 1.42 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
LDFLAGS ?= ""
CFLAGS ?= "-O0"
.PHONY: default build cythonize clean clean-all info test docs
default: build
cythonize:
python setup.py cythonize
build:
CFLAGS=$(CFLAGS) LDFLAGS=$(LDFLAGS) python setup.py build_ext --inplace --debug
fate-suite:
# Grab ALL of the samples from the ffmpeg site.
rsync -vrltLW rsync://fate-suite.ffmpeg.org/fate-suite/ tests/assets/fate-suite/
test-assets: tests/assets/lenna.png tests/assets/320x240x4.mov tests/assets/1KHz.wav
tests/assets/1KHz.wav:
python scripts/generate_audio.py -c 2 -r 48000 -t 4 -a 0.5 -f 1000 $@
tests/assets/320x240x4.mov:
python scripts/generate_video.py -s 320x240 -r 24 -b 200k -t 4 $@
tests/assets/lenna.png:
@ mkdir -p $(@D)
wget -O $@ https://upload.wikimedia.org/wikipedia/en/2/24/Lenna.png
test: build test-assets
nosetests -v
vagrant:
vagrant box list | grep -q precise32 || vagrant box add precise32 http://files.vagrantup.com/precise32.box
vtest-ffmpeg: cythonize
vagrant ssh ffmpeg -c /vagrant/scripts/vagrant-test
vtest-libav: cythonize
vagrant ssh libav -c /vagrant/scripts/vagrant-test
vtest: vtest-ffmpeg vtest-libav
clean: clean-build
clean-build:
- rm -rf build
- find av -name '*.so' -delete
clean-sandbox:
- rm -rf sandbox/201*
- rm sandbox/last
clean-src:
- rm -rf src
clean-all: clean-build clean-sandbox clean-src
- make -C docs clean
docs: build
PYTHONPATH=.. make -C docs html
deploy-docs: docs
./scripts/sphinx-to-github docs