~brian-sidebotham/wxwidgets-cmake/wxpython-2.9.4

« back to all changes in this revision

Viewing changes to wxPython/distrib/msw/.make

  • Committer: Brian Sidebotham
  • Date: 2013-08-03 14:30:08 UTC
  • Revision ID: brian.sidebotham@gmail.com-20130803143008-c7806tkych1tp6fc
Initial import into Bazaar

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
#set -o xtrace
 
4
 
 
5
function error {
 
6
    echo -----------------
 
7
    echo --    ERROR!   --
 
8
    echo -----------------
 
9
    exit $1
 
10
}
 
11
 
 
12
 
 
13
if [ "$1" == "both" ]; then
 
14
    shift
 
15
    .make debug $@   &&   .make hybrid $@
 
16
    exit $?
 
17
 
 
18
elif [ "$1" == "both-uni" ]; then
 
19
    shift
 
20
    .make debug-uni $@  &&  .make hybrid-uni $@ 
 
21
    exit $?
 
22
 
 
23
elif [ "$1" == "both-hybrid" ]; then
 
24
    shift
 
25
    .make hybrid $@    &&  .make hybrid-uni $@
 
26
    exit $?
 
27
 
 
28
elif [ "$1" == "all" ]; then
 
29
    shift
 
30
    .make debug $@          && \
 
31
        .make hybrid $@     && \
 
32
        .make debug-uni $@  && \
 
33
        .make hybrid-uni $@ 
 
34
    exit $?
 
35
 
 
36
elif [ "$1" == "debug" ]; then
 
37
    BUILD_TYPE=$1
 
38
    WXLIBDIR=mswd
 
39
    shift
 
40
 
 
41
elif [ "$1" == "hybrid" ]; then
 
42
    BUILD_TYPE=$1
 
43
    WXLIBDIR=mswh
 
44
    shift
 
45
 
 
46
elif [ "$1" == "release" ]; then
 
47
    BUILD_TYPE=$1
 
48
    WXLIBDIR=msw
 
49
    shift
 
50
 
 
51
elif [ "$1" == "debug-uni" ]; then
 
52
    BUILD_TYPE=$1
 
53
    WXLIBDIR=mswud
 
54
    shift
 
55
 
 
56
elif [ "$1" == "hybrid-uni" ]; then
 
57
    BUILD_TYPE=$1
 
58
    WXLIBDIR=mswuh
 
59
    shift
 
60
 
 
61
elif [ "$1" == "release-uni" ]; then
 
62
    BUILD_TYPE=$1
 
63
    WXLIBDIR=mswu
 
64
    shift
 
65
 
 
66
else
 
67
    echo "Invalid build type: $1  options are"
 
68
    echo "    debug"
 
69
    echo "    hybrid"
 
70
    echo "    debug-uni"
 
71
    echo "    hybrid-uni"
 
72
    echo "    both"
 
73
    echo "    both-uni"
 
74
    echo "    both-hybrid"
 
75
    echo "    all"
 
76
    echo "    release"
 
77
    echo "    release-uni"
 
78
    exit 1
 
79
fi
 
80
 
 
81
if [ "$CPU" = "AMD64" -o "$CPU" = "X64" ]; then
 
82
    DLLDIR=vc_x64_dll
 
83
else
 
84
    DLLDIR=vc_dll
 
85
fi
 
86
 
 
87
echo ------------------
 
88
echo cd $WXWIN/build/msw
 
89
cd $WXWIN/build/msw
 
90
nmake -f .makesetup.mk $WXWIN/lib/$DLLDIR/$WXLIBDIR/wx/setup.h
 
91
if [ ! $? = 0 ]; then error 2; fi
 
92
 
 
93
echo ------------------
 
94
echo cd $WXWIN/build/msw
 
95
cd $WXWIN/build/msw
 
96
$WXWIN/build/msw/.mymake $BUILD_TYPE $@
 
97
if [ ! $? = 0 ]; then error 2; fi
 
98
 
 
99
 
 
100
# echo ------------------
 
101
# echo cd ../../contrib/build/gizmos
 
102
# cd ../../contrib/build/gizmos
 
103
# $WXWIN/build/msw/.mymake $BUILD_TYPE $@
 
104
# if [ ! $? = 0 ]; then error 2; fi
 
105
# cd -
 
106
 
 
107
 
 
108
# echo ------------------
 
109
# echo cd ../../contrib/build/animate
 
110
# cd ../../contrib/build/animate
 
111
# $WXWIN/build/msw/.mymake $BUILD_TYPE $@
 
112
# if [ ! $? = 0 ]; then error 2; fi
 
113
# cd -
 
114
 
 
115
 
 
116
# echo ------------------
 
117
# echo cd ../../contrib/build/stc
 
118
# cd ../../contrib/build/stc
 
119
# $WXWIN/build/msw/.mymake $BUILD_TYPE $@
 
120
# if [ ! $? = 0 ]; then error 2; fi
 
121
# cd -
 
122
 
 
123
 
 
124
# echo ------------------
 
125
# echo cd ../../contrib/build/ogl
 
126
# cd ../../contrib/build/ogl
 
127
# $WXWIN/build/msw/.mymake $BUILD_TYPE CPPFLAGS="-DwxUSE_DEPRECATED=0" $@
 
128
# if [ ! $? = 0 ]; then error 2; fi
 
129
# cd -
 
130
 
 
131
 
 
132
 
 
133
echo -----------------
 
134
echo --   SUCCESS!  --
 
135
echo -----------------
 
136
date 
 
137
 
 
138
# copy DLLs to a dir on the PATH
 
139
# copy /U $WXWIN/lib/vc_dll/*.dll $WXWIN/BIN
 
140
# copy /U $WXWIN/lib/vc_dll/*.pdb $WXWIN/BIN
 
141
exit 0
 
142
 
 
143
 
 
144
 
 
145