File: .make

package info (click to toggle)
wxpython3.0 3.0.2.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 482,760 kB
  • ctags: 518,293
  • sloc: cpp: 2,127,226; python: 294,045; makefile: 51,942; ansic: 19,033; sh: 3,013; xml: 1,629; perl: 17
file content (145 lines) | stat: -rw-r--r-- 2,766 bytes parent folder | download | duplicates (3)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#!/bin/bash

#set -o xtrace

function error {
    echo -----------------
    echo --    ERROR!   --
    echo -----------------
    exit $1
}


if [ "$1" == "both" ]; then
    shift
    .make debug $@   &&   .make hybrid $@
    exit $?

elif [ "$1" == "both-uni" ]; then
    shift
    .make debug-uni $@  &&  .make hybrid-uni $@ 
    exit $?

elif [ "$1" == "both-hybrid" ]; then
    shift
    .make hybrid $@    &&  .make hybrid-uni $@
    exit $?

elif [ "$1" == "all" ]; then
    shift
    .make debug $@          && \
	.make hybrid $@     && \
	.make debug-uni $@  && \
	.make hybrid-uni $@ 
    exit $?

elif [ "$1" == "debug" ]; then
    BUILD_TYPE=$1
    WXLIBDIR=mswd
    shift

elif [ "$1" == "hybrid" ]; then
    BUILD_TYPE=$1
    WXLIBDIR=mswh
    shift

elif [ "$1" == "release" ]; then
    BUILD_TYPE=$1
    WXLIBDIR=msw
    shift

elif [ "$1" == "debug-uni" ]; then
    BUILD_TYPE=$1
    WXLIBDIR=mswud
    shift

elif [ "$1" == "hybrid-uni" ]; then
    BUILD_TYPE=$1
    WXLIBDIR=mswuh
    shift

elif [ "$1" == "release-uni" ]; then
    BUILD_TYPE=$1
    WXLIBDIR=mswu
    shift

else
    echo "Invalid build type: $1  options are"
    echo "    debug"
    echo "    hybrid"
    echo "    debug-uni"
    echo "    hybrid-uni"
    echo "    both"
    echo "    both-uni"
    echo "    both-hybrid"
    echo "    all"
    echo "    release"
    echo "    release-uni"
    exit 1
fi

if [ "$CPU" = "AMD64" -o "$CPU" = "X64" ]; then
    DLLDIR=vc_x64_dll
else
    DLLDIR=vc_dll
fi

echo ------------------
echo cd $WXWIN/build/msw
cd $WXWIN/build/msw
nmake -f .makesetup.mk $WXWIN/lib/$DLLDIR/$WXLIBDIR/wx/setup.h
if [ ! $? = 0 ]; then error 2; fi

echo ------------------
echo cd $WXWIN/build/msw
cd $WXWIN/build/msw
$WXWIN/build/msw/.mymake $BUILD_TYPE $@
if [ ! $? = 0 ]; then error 2; fi


# echo ------------------
# echo cd ../../contrib/build/gizmos
# cd ../../contrib/build/gizmos
# $WXWIN/build/msw/.mymake $BUILD_TYPE $@
# if [ ! $? = 0 ]; then error 2; fi
# cd -


# echo ------------------
# echo cd ../../contrib/build/animate
# cd ../../contrib/build/animate
# $WXWIN/build/msw/.mymake $BUILD_TYPE $@
# if [ ! $? = 0 ]; then error 2; fi
# cd -


# echo ------------------
# echo cd ../../contrib/build/stc
# cd ../../contrib/build/stc
# $WXWIN/build/msw/.mymake $BUILD_TYPE $@
# if [ ! $? = 0 ]; then error 2; fi
# cd -


# echo ------------------
# echo cd ../../contrib/build/ogl
# cd ../../contrib/build/ogl
# $WXWIN/build/msw/.mymake $BUILD_TYPE CPPFLAGS="-DwxUSE_DEPRECATED=0" $@
# if [ ! $? = 0 ]; then error 2; fi
# cd -



echo -----------------
echo --   SUCCESS!  --
echo -----------------
date 

# copy DLLs to a dir on the PATH
# copy /U $WXWIN/lib/vc_dll/*.dll $WXWIN/BIN
# copy /U $WXWIN/lib/vc_dll/*.pdb $WXWIN/BIN
exit 0