-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.sh
executable file
·23 lines (19 loc) · 889 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
set -e
scripts/build-sdl.sh linux
scripts/build-ffmpeg-pc.sh linux
. build_src.sh
CFLAGS="-s -Os -flto -std=gnu99 -Wall -fno-asynchronous-unwind-tables -fno-stack-protector -ffunction-sections -fdata-sections -Wl,--gc-sections $SRC \
-Isrc -Inanovg -Iswf/swftools/lib \
-LSDL/build-linux -ISDL/include -I. \
-Ivideo/ffmpeg/FFmpeg -Ivideo/ffmpeg/FFmpeg/build-linux -Lvideo/ffmpeg/FFmpeg/build-linux/libavcodec -Lvideo/ffmpeg/FFmpeg/build-linux/libavutil \
-DNDEBUG -D_GNU_SOURCE -DLVG_INTERPOLATE"
gcc $CFLAGS -o lvg -Wl,-Map=lvg.map -lm -ldl -lSDL2 -lavcodec -lavutil -lpthread
if [ ! "$CIRCLECI" = "true" ]; then
objcopy --remove-section=.comment --remove-section=.note* --remove-section=.gnu.version --remove-section=.eh_frame* --remove-section=.jcr ./lvg
scripts/compress.sh ./lvg
if [ "$TRAVIS" = "true" ]; then
zip -9 -u lvg_linux.zip lvg
cd tests/swf
./test.sh
fi
fi