summaryrefslogtreecommitdiff
path: root/build/testfiledye.sh
blob: 1dc2e5f77d5580b20f7c4d3219bb1606023cc254 (plain) (blame)
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
#!/bin/bash

cd ../src

export includes="-I. -I/usr/include -I/usr/include/SDL -I/usr/include/libxml2"
export LOGFILE="../build/testfile.log"

function run {
    export CXX="g++-5"

    export CMD="$CXX -c $1 $2 $3"
    echo $CMD >>${LOGFILE}
    $CMD 2>>${LOGFILE}

    export CMD="$CXX -c -std=gnu++1z $1 $2 $3"
    $CMD 2>>${LOGFILE}

    ../../deheader/deheader -q -i "\"debug.h\"" \
        -i "\"utils/checkutils.h\"" \
        -i "\"utils/sdlcheckutils.h\"" \
        -i "\"sdlshared.h\"" \
        -i "\"localconsts.h\"" \
        -i "\"utils/fuzzer.h\"" \
        -i "\"utils/physfscheckutils.h\"" \
        -i "\"$name\"" \
        -c "$CXX" \
        -d "$1" \
        -s "-std=gnu++1z" \
        -m "-c -Werror -Wall -Wextra -Wundef -Wmissing-declarations -DLOCALEDIR=\\\"\\\" $2" $3 \
        | grep -v "portability requires" >> ${LOGFILE}

    echo ---------------------------- >>${LOGFILE}
}

echo >${LOGFILE}

run "-DENABLE_LIBXML -DEATHENA_SUPPORT -DDYECMD" "$includes" "$1"
run "-DENABLE_LIBXML -DEATHENA_SUPPORT -DUSE_OPENGL -DDYECMD" "$includes" "$1"
run "-DENABLE_LIBXML -DEATHENA_SUPPORT -DENABLE_NLS -DDYECMD" "$includes" "$1"
run "-DENABLE_LIBXML -DEATHENA_SUPPORT -DTMWA_SUPPORT -DDYECMD" "$includes" "$1"
run "-DENABLE_LIBXML -DEATHENA_SUPPORT -DTMWA_SUPPORT -DUSE_OPENGL -DDYECMD" "$includes" "$1"
run "-DENABLE_LIBXML -DEATHENA_SUPPORT -DTMWA_SUPPORT -DUSE_OPENGL -DUSE_X11 -DDYECMD" "$includes" "$1"

run "-DENABLE_PUGIXML -DEATHENA_SUPPORT -DDYECMD" "$includes" "$1"
run "-DENABLE_PUGIXML -DEATHENA_SUPPORT -DUSE_OPENGL -DDYECMD" "$includes" "$1"
run "-DENABLE_PUGIXML -DEATHENA_SUPPORT -DENABLE_NLS -DDYECMD" "$includes" "$1"
run "-DENABLE_PUGIXML -DEATHENA_SUPPORT -DTMWA_SUPPORT -DDYECMD" "$includes" "$1"
run "-DENABLE_PUGIXML -DEATHENA_SUPPORT -DTMWA_SUPPORT -DUSE_OPENGL -DDYECMD" "$includes" "$1"
run "-DENABLE_PUGIXML -DEATHENA_SUPPORT -DTMWA_SUPPORT -DUSE_OPENGL -DUSE_X11 -DDYECMD" "$includes" "$1"

export includes="-I. -I/usr/include -I/usr/include/SDL2 -I/usr/include/libxml2"

run "-DENABLE_LIBXML -DEATHENA_SUPPORT -DUSE_SDL2 -DDYECMD" "$includes" "$1"
run "-DENABLE_LIBXML -DEATHENA_SUPPORT -DUSE_SDL2 -DUSE_OPENGL -DDYECMD" "$includes" "$1"
run "-DENABLE_LIBXML -DEATHENA_SUPPORT -DUSE_SDL2 -DENABLE_NLS -DDYECMD" "$includes" "$1"
run "-DENABLE_LIBXML -DEATHENA_SUPPORT -DUSE_SDL2 -DTMWA_SUPPORT -DDYECMD" "$includes" "$1"
run "-DENABLE_LIBXML -DEATHENA_SUPPORT -DUSE_SDL2 -DTMWA_SUPPORT -DUSE_OPENGL -DDYECMD" "$includes" "$1"
run "-DENABLE_LIBXML -DEATHENA_SUPPORT -DUSE_SDL2 -DTMWA_SUPPORT -DUSE_OPENGL -DUSE_X11 -DDYECMD" "$includes" "$1"

run "-DENABLE_PUGIXML -DEATHENA_SUPPORT -DUSE_SDL2 -DDYECMD" "$includes" "$1"
run "-DENABLE_PUGIXML -DEATHENA_SUPPORT -DUSE_SDL2 -DUSE_OPENGL -DDYECMD" "$includes" "$1"
run "-DENABLE_PUGIXML -DEATHENA_SUPPORT -DUSE_SDL2 -DENABLE_NLS -DDYECMD" "$includes" "$1"
run "-DENABLE_PUGIXML -DEATHENA_SUPPORT -DUSE_SDL2 -DTMWA_SUPPORT -DDYECMD" "$includes" "$1"
run "-DENABLE_PUGIXML -DEATHENA_SUPPORT -DUSE_SDL2 -DTMWA_SUPPORT -DUSE_OPENGL -DDYECMD" "$includes" "$1"
run "-DENABLE_PUGIXML -DEATHENA_SUPPORT -DUSE_SDL2 -DTMWA_SUPPORT -DUSE_OPENGL -DUSE_X11 -DDYECMD" "$includes" "$1"