-
Notifications
You must be signed in to change notification settings - Fork 3
/
include.mk
68 lines (54 loc) · 2.89 KB
/
include.mk
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
cppcheckflags = -I${top_srcdir} -I${top_srcdir}/src \
--language=c \
--enable=warning,performance,portability,unusedFunction,missingInclude,style,information \
--suppressions-list=.cppcheck_suppressions \
--library=sdl.cfg,posix.cfg \
--inline-suppr \
--inconclusive
cppcheckdefs = -DHAVE_ICONV -DWITH_RTPROF -D__GNUC__ -DHAVE_CONFIG_H -D_GNU_SOURCE=1 -D_REENTRANT
cppcheckdirs = tools/atlas tools/font tools/image win32 src
cppcheck:
@echo "`cppcheck --version`"
cppcheck $(cppcheckflags) $(cppcheckdefs) $(cppcheckdirs)
cppcheck-report:
@echo "`cppcheck --version`"
mkdir -p cppcheck-report
cppcheck $(cppcheckflags) $(cppcheckdefs) --xml-version=2 --xml $(cppcheckdirs) 2> cppcheck-report/cppcheck.xml
cppcheck-htmlreport --file=cppcheck-report/cppcheck.xml --title="FreedroidRPG `git describe --tags 2>/dev/null || echo "@PACKAGE_VERSION@"`" --report-dir=cppcheck-report --source-dir=$(top_srcdir)
scanbuildflags = --use-cc=clang -enable-checker alpha.core.BoolAssignment,alpha.core.CastSize,alpha.core.FixedAddr,alpha.core.IdenticalExpr,alpha.core.PointerArithm,alpha.core.SizeofPtr,alpha.cplusplus.VirtualCall,alpha.security.ArrayBoundV2,alpha.security.MallocOverflow,alpha.security.ReturnPtrRange,alpha.unix.Chroot,alpha.unix.PthreadLock,alpha.unix.SimpleStream,alpha.unix.Stream,alpha.unix.cstring.BufferOverlap,alpha.unix.cstring.NotNullTerminated,alpha.unix.cstring.OutOfBounds,security.FloatLoopCounter,security.insecureAPI.rand
scan-build:
$(MAKE) clean
scan-build $(scanbuildflags) ./configure --enable-dev-tools CC=clang
scan-build $(scanbuildflags) $(MAKE)
.PHONY: cppcheck cppcheck-report scan-build
gourceflags = -c 0.8 \
--seconds-per-day 0.001 \
--logo ./win32/w32icon_64x64.png \
--auto-skip-seconds 0.0001 \
--title "FreedroidRPG" \
--key \
--camera-mode overview \
--highlight-all-users \
--file-idle-time 0 \
--hide progress,mouse,filenames \
--stop-at-end \
--max-files 99999999999 \
--max-file-lag 0.000001 \
--bloom-multiplier 1.3 \
-1280x720
ffmpegflags = -f image2pipe \
-vcodec ppm \
-i - \
-y \
-vcodec libx264 \
-preset medium \
-crf 22 \
-pix_fmt yuv420p \
-threads:0 2 \
-b:v 3000k \
-maxrate 8000k \
-bufsize 10000k FreedroidRPG.mp4
gource:
gource $(gourceflags)
gource_ffmpeg:
gource $(gourceflags) --output-ppm-stream - | ffmpeg $(ffmpegflags)