-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildOhNetLinux.sh
66 lines (56 loc) · 1.67 KB
/
buildOhNetLinux.sh
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
openHomeDir=../../openhome
release=1
buildOhNet=1
function Make {
echo make $3 release=$4
cd $1
cd $3
make clean release=$4
make release=$4
cd $2
}
function Waf {
echo waf $3
cd $1
cd $3
debug=""
if [ "$4" == "0" ] ; then
debug="--debug"
fi
./go --fetch --all
./waf configure --dest-platform=Linux-x86 --ohnet=../ohNet $debug
./waf clean build
cd $2
}
function CopyFiles {
echo Copying Libraries
cd $1
variant="Release"
if [ "$3" == "0" ] ; then
variant="Debug"
fi
#konfig
cp ohNet/Build/Obj/Posix/$variant/CpAvOpenhomeOrgProduct1.net.dll $2/Konfig/OpenHome/Linux
cp ohNet/Build/Obj/Posix/$variant/libohNet.so $2/Konfig/OpenHome/Linux
cp ohNet/Build/Obj/Posix/$variant/ohNet.net.dll $2/Konfig/OpenHome/Linux
#TODO: not built in ohNet cp ohNet/Build/Obj/Posix/$variant/CpLinnCoUkDiagnostics1.net.dll $2/Konfig/OpenHome/Linux
#TODO: not built in ohNet cp ohNet/Build/Obj/Linux/$variant/CpLinnCoUkVolkano1.net.dll $2/Konfig/OpenHome/Linux
cp ohXen/Build/Obj/Posix/$variant/ohXen.dll $2/Konfig/OpenHome/Linux
cp ohXapp/Build/Obj/Posix/$variant/ohXapp.dll $2/Konfig/OpenHome/Linux
cp ohXapp/Build/Obj/Posix/$variant/ohXappViewer.dll $2/Konfig/OpenHome/Linux
cd $2
}
cwd=$( pwd )
if [ "$buildOhNet" == "1" ] ; then
Make $openHomeDir $cwd ohNet $release
fi
#Make $openHomeDir $cwd ohGit $release
Make $openHomeDir $cwd ohXen $release
Make $openHomeDir $cwd ohXapp $release
#Waf $openHomeDir $cwd ohTopology $release
#Make $openHomeDir $cwd ohPlaylistManager $release
#Make $openHomeDir $cwd ohMediaToolbox $release
#Make $openHomeDir $cwd ohNetmon $release
#Make $openHomeDir $cwd ohSongcast $release
CopyFiles $openHomeDir $cwd $release