-
Notifications
You must be signed in to change notification settings - Fork 104
/
Makefile.am
89 lines (74 loc) · 2.58 KB
/
Makefile.am
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = foreign
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = ffms2.pc
dist_doc_DATA = doc/ffms2-api.md doc/ffms2-changelog.md
AM_CPPFLAGS = \
-I. \
-I$(top_srcdir)/include \
-I$(top_srcdir)/src/config \
-D_FILE_OFFSET_BITS=64 \
-DFFMS_EXPORTS \
-D__STDC_CONSTANT_MACROS \
@FFMPEG_CFLAGS@ \
@ZLIB_CPPFLAGS@ \
-include config.h
AM_CXXFLAGS = -std=c++11 -fvisibility=hidden
lib_LTLIBRARIES = src/core/libffms2.la
src_core_libffms2_la_LDFLAGS = @src_core_libffms2_la_LDFLAGS@
src_core_libffms2_la_LIBADD = @FFMPEG_LIBS@ @ZLIB_LDFLAGS@ -lz @LTUNDEF@
src_core_libffms2_la_SOURCES = \
src/core/audiosource.cpp \
src/core/audiosource.h \
src/core/ffms.cpp \
src/core/filehandle.cpp \
src/core/filehandle.h \
src/core/indexing.cpp \
src/core/indexing.h \
src/core/track.cpp \
src/core/track.h \
src/core/utils.cpp \
src/core/utils.h \
src/core/videosource.cpp \
src/core/videosource.h \
src/core/videoutils.cpp \
src/core/videoutils.h \
src/core/zipfile.cpp \
src/core/zipfile.h \
src/vapoursynth/VapourSynth4.h \
src/vapoursynth/VSHelper4.h \
src/vapoursynth/vapoursource4.cpp \
src/vapoursynth/vapoursource4.h \
src/vapoursynth/vapoursynth4.cpp
if AVISYNTH
src_core_libffms2_la_SOURCES += \
src/avisynth/avssources.cpp \
src/avisynth/avssources.h \
src/avisynth/avisynth.cpp
endif
include_HEADERS = $(top_srcdir)/include/ffms.h $(top_srcdir)/include/ffmscompat.h
bin_PROGRAMS = src/index/ffmsindex
src_index_ffmsindex_SOURCES = src/index/ffmsindex.cpp
src_index_ffmsindex_LDADD = -lavutil src/core/libffms2.la
.PHONY: test test-build test-clean test-sync test-run
clean-local: test-clean
SAMPLES_DIR = $(abs_top_builddir)/test/samples
SAMPLES_URL = https://storage.googleapis.com/ffms2tests
test: test-setup test-build test-run
test-setup:
@$(MKDIR_P) $(abs_top_builddir)/test
@$(MKDIR_P) $(SAMPLES_DIR)
@if [ ! -e "$(abs_top_builddir)/test/Makefile" ]; then \
$(LN_S) $(abs_top_srcdir)/test/Makefile $(abs_top_builddir)/test/Makefile; \
fi
test-build: test-setup src/core/libffms2.la
@if [ ! -d "$(abs_top_srcdir)/test/googletest" ]; then \
echo "googletest submodule not initalized."; \
fi
@$(MAKE) -C test USER_DIR=$(abs_top_srcdir) SAMPLES_DIR=$(SAMPLES_DIR) CXX=$(CXX) AR=$(AR)
test-sync: test-setup
@$(MAKE) -C test sync USER_DIR=$(abs_top_srcdir) SAMPLES_DIR=$(SAMPLES_DIR) SAMPLES_URL=$(SAMPLES_URL) CXX=$(CXX) AR=$(AR)
test-run: test-build
@$(MAKE) -C test run USER_DIR=$(abs_top_srcdir) SAMPLES_DIR=$(SAMPLES_DIR) CXX=$(CXX) AR=$(AR) -k
test-clean:
@$(MAKE) -C test clean USER_DIR=$(abs_top_srcdir) CXX=$(CXX) AR=$(AR)