Skip to content

Commit d83da38

Browse files
author
Ryzerth
committed
Added windows build script
1 parent b21f8ab commit d83da38

File tree

3 files changed

+64
-28
lines changed

3 files changed

+64
-28
lines changed

core/src/core.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,13 @@ int sdrpp_main(int argc, char *argv[]) {
119119
defConfig["menuWidth"] = 300;
120120
defConfig["min"] = -70.0;
121121

122-
defConfig["moduleInstances"]["Audio Sink"] = "audio_sink";
123-
defConfig["moduleInstances"]["PlutoSDR Source"] = "plutosdr_source";
124-
defConfig["moduleInstances"]["RTL-TCP Source"] = "rtl_tcp_source";
125122
defConfig["moduleInstances"]["Radio"] = "radio";
126123
defConfig["moduleInstances"]["Recorder"] = "recorder";
127124
defConfig["moduleInstances"]["SoapySDR Source"] = "soapy_source";
125+
defConfig["moduleInstances"]["PlutoSDR Source"] = "plutosdr_source";
126+
defConfig["moduleInstances"]["RTL-TCP Source"] = "rtl_tcp_source";
127+
defConfig["moduleInstances"]["AirspyHF+ Source"] = "airspyhf_source";
128+
defConfig["moduleInstances"]["Audio Sink"] = "audio_sink";
128129

129130
defConfig["modules"] = json::array();
130131
defConfig["offset"] = 0.0;

make_debian_package.sh

+29-25
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,47 @@
22

33
# Create directory structure
44
echo Create directory structure
5-
mkdir sdrpp_deb
6-
mkdir sdrpp_deb/DEBIAN
7-
mkdir sdrpp_deb/usr
8-
mkdir sdrpp_deb/usr/bin
9-
mkdir sdrpp_deb/usr/share
10-
mkdir sdrpp_deb/usr/share/sdrpp
11-
mkdir sdrpp_deb/usr/lib
12-
mkdir sdrpp_deb/usr/lib/sdrpp
13-
mkdir sdrpp_deb/usr/lib/sdrpp/plugins
5+
mkdir sdrpp_debian_amd64
6+
mkdir sdrpp_debian_amd64/DEBIAN
7+
mkdir sdrpp_debian_amd64/usr
8+
mkdir sdrpp_debian_amd64/usr/bin
9+
mkdir sdrpp_debian_amd64/usr/share
10+
mkdir sdrpp_debian_amd64/usr/share/sdrpp
11+
mkdir sdrpp_debian_amd64/usr/lib
12+
mkdir sdrpp_debian_amd64/usr/lib/sdrpp
13+
mkdir sdrpp_debian_amd64/usr/lib/sdrpp/plugins
1414

1515
# Create package info
1616
echo Create package info
17-
echo Package: sdrpp >> sdrpp_deb/DEBIAN/control
18-
echo Version: 0.2.5 >> sdrpp_deb/DEBIAN/control
19-
echo Maintainer: Ryzerth >> sdrpp_deb/DEBIAN/control
20-
echo Architecture: all >> sdrpp_deb/DEBIAN/control
21-
echo Description: Bloat-free SDR receiver software >> sdrpp_deb/DEBIAN/control
17+
echo Package: sdrpp >> sdrpp_debian_amd64/DEBIAN/control
18+
echo Version: 0.2.5 >> sdrpp_debian_amd64/DEBIAN/control
19+
echo Maintainer: Ryzerth >> sdrpp_debian_amd64/DEBIAN/control
20+
echo Architecture: all >> sdrpp_debian_amd64/DEBIAN/control
21+
echo Description: Bloat-free SDR receiver software >> sdrpp_debian_amd64/DEBIAN/control
2222

2323
# Copy core files
2424
echo Copy core files
25-
cp $1/sdrpp sdrpp_deb/usr/bin/
26-
cp $1/libsdrpp_core.so sdrpp_deb/usr/lib/
25+
cp $1/sdrpp sdrpp_debian_amd64/usr/bin/
26+
cp $1/libsdrpp_core.so sdrpp_debian_amd64/usr/lib/
2727

2828
# Copy reasources
2929
echo Copy reasources
30-
cp -r root/res/* sdrpp_deb/usr/share/sdrpp/
30+
cp -r root/res/* sdrpp_debian_amd64/usr/share/sdrpp/
3131

3232
# Copy module
3333
echo Copy modules
34-
cp $1/radio/radio.so sdrpp_deb/usr/lib/sdrpp/plugins/
35-
cp $1/recorder/recorder.so sdrpp_deb/usr/lib/sdrpp/plugins/
36-
cp $1/airspyhf_source/airspyhf_source.so sdrpp_deb/usr/lib/sdrpp/plugins/
37-
cp $1/plutosdr_source/plutosdr_source.so sdrpp_deb/usr/lib/sdrpp/plugins/
38-
cp $1/rtl_tcp_source/rtl_tcp_source.so sdrpp_deb/usr/lib/sdrpp/plugins/
39-
cp $1/soapy_source/soapy_source.so sdrpp_deb/usr/lib/sdrpp/plugins/
40-
cp $1/audio_sink/audio_sink.so sdrpp_deb/usr/lib/sdrpp/plugins/
34+
cp $1/radio/radio.so sdrpp_debian_amd64/usr/lib/sdrpp/plugins/
35+
cp $1/recorder/recorder.so sdrpp_debian_amd64/usr/lib/sdrpp/plugins/
36+
cp $1/airspyhf_source/airspyhf_source.so sdrpp_debian_amd64/usr/lib/sdrpp/plugins/
37+
cp $1/plutosdr_source/plutosdr_source.so sdrpp_debian_amd64/usr/lib/sdrpp/plugins/
38+
cp $1/rtl_tcp_source/rtl_tcp_source.so sdrpp_debian_amd64/usr/lib/sdrpp/plugins/
39+
cp $1/soapy_source/soapy_source.so sdrpp_debian_amd64/usr/lib/sdrpp/plugins/
40+
cp $1/audio_sink/audio_sink.so sdrpp_debian_amd64/usr/lib/sdrpp/plugins/
4141

4242
# Create package
4343
echo Create packagesudo
44-
dpkg-deb --build sdrpp_deb
44+
dpkg-deb --build sdrpp_debian_amd64
45+
46+
# Cleanup
47+
echo Cleanup
48+
rm -rf sdrpp_debian_amd64

make_windows_package.ps1

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
mkdir sdrpp_windows_x64
2+
3+
# Copy root
4+
cp -Recurse root/* sdrpp_windows_x64/
5+
6+
# Copy core
7+
cp build/Release/* sdrpp_windows_x64/
8+
cp 'C:/Program Files/PothosSDR/bin/volk.dll' sdrpp_windows_x64/
9+
10+
# Copy modules
11+
cp build/radio/Release/radio.dll sdrpp_windows_x64/modules/
12+
13+
cp build/recorder/Release/recorder.dll sdrpp_windows_x64/modules/
14+
15+
cp build/airspyhf_source/Release/airspyhf_source.dll sdrpp_windows_x64/modules/
16+
cp 'C:/Program Files/PothosSDR/bin/airspyhf.dll' sdrpp_windows_x64/
17+
18+
cp build/plutosdr_source/Release/plutosdr_source.dll sdrpp_windows_x64/modules/
19+
cp 'C:/Program Files/PothosSDR/bin/libiio.dll' sdrpp_windows_x64/
20+
cp 'C:/Program Files/PothosSDR/bin/libad9361.dll' sdrpp_windows_x64/
21+
22+
cp build/rtl_tcp_source/Release/rtl_tcp_source.dll sdrpp_windows_x64/modules/
23+
24+
cp build/soapy_source/Release/soapy_source.dll sdrpp_windows_x64/modules/
25+
26+
cp build/audio_sink/Release/audio_sink.dll sdrpp_windows_x64/modules/
27+
cp build/audio_sink/Release/portaudio.dll sdrpp_windows_x64/
28+
29+
Compress-Archive -Path sdrpp_windows_x64/ -DestinationPath sdrpp_windows_x64.zip
30+
31+
rm -Force -Recurse sdrpp_windows_x64

0 commit comments

Comments
 (0)