You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run: wget https://github.com/analogdevicesinc/libiio/archive/refs/tags/v0.25.zip && 7z x v0.25.zip && cd libiio-0.25 && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
109
+
run: wget https://github.com/analogdevicesinc/libiio/archive/refs/tags/v0.25.zip && 7z x v0.25.zip && cd libiio-0.25 && mkdir build && cd build && cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
110
110
111
111
- name: Install libad9361
112
-
run: git clone https://github.com/analogdevicesinc/libad9361-iio && cd libad9361-iio && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
112
+
run: git clone https://github.com/analogdevicesinc/libad9361-iio && cd libad9361-iio && mkdir build && cd build && cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
113
113
114
114
- name: Install LimeSuite
115
-
run: git clone https://github.com/myriadrf/LimeSuite && cd LimeSuite && mkdir builddir && cd builddir && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
115
+
run: git clone https://github.com/myriadrf/LimeSuite && cd LimeSuite && mkdir builddir && cd builddir && cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
116
116
117
117
- name: Install libperseus
118
118
run: git clone https://github.com/Microtelecom/libperseus-sdr && cd libperseus-sdr && autoreconf -i && ./configure --prefix=/usr/local --prefix=/usr/local && make && make install && cd ..
119
119
120
120
- name: Install modified librtlsdr
121
-
run: git clone https://github.com/Mr-Precise/rtl-sdr && cd rtl-sdr && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j3 LIBRARY_PATH=$(pkg-config --libs-only-L libusb-1.0 | sed 's/\-L//') && sudo make install && cd ../../
121
+
run: git clone https://github.com/Mr-Precise/rtl-sdr && cd rtl-sdr && mkdir build && cd build && cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=Release .. && make -j3 LIBRARY_PATH=$(pkg-config --libs-only-L libusb-1.0 | sed 's/\-L//') && sudo make install && cd ../../
run: wget https://github.com/analogdevicesinc/libiio/archive/refs/tags/v0.25.zip && 7z x v0.25.zip && cd libiio-0.25 && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
164
-
165
-
- name: Install libad9361
166
-
run: git clone https://github.com/analogdevicesinc/libad9361-iio && cd libad9361-iio && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
167
-
168
-
- name: Install LimeSuite
169
-
run: git clone https://github.com/myriadrf/LimeSuite && cd LimeSuite && mkdir builddir && cd builddir && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
170
-
171
-
- name: Install libperseus
172
-
run: git clone https://github.com/Microtelecom/libperseus-sdr && cd libperseus-sdr && autoreconf -i && ./configure --prefix=/usr/local && make && make install && cd ..
173
-
174
-
- name: Install modified librtlsdr
175
-
run: git clone https://github.com/Mr-Precise/rtl-sdr && cd rtl-sdr && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j3 LIBRARY_PATH=$(pkg-config --libs-only-L libusb-1.0 | sed 's/\-L//') && sudo make install && cd ../../
run: cd $GITHUB_WORKSPACE && sh make_macos_bundle.sh ${{runner.workspace}}/build ./SDR++.app && zip -r ${{runner.workspace}}/sdrpp_macos13_intel.zip SDR++.app
**I DO NOT ACCEPT PULL-REQUEST FOR FEATURES OR BUGFIXES REQUIRING SIGNIFICANT CODE/STRUCTURE CHANGES.**
4
-
**SUCH PULL REQUESTS WILL BE CLOSED AUTOMATICALLY. OPEN AN ISSUE DETAILING FEATURE REQUESTS OR POTENTIAL BUGFIX INSTEAD.**
5
-
6
-
# Code Style
7
-
8
-
## Naming Convention
9
-
10
-
- Files: `snake_case.h``snake_case.cpp`
11
-
- Namespaces: `CamelCase`
12
-
- Classes: `CamelCase`
13
-
- Structs: `CamelCase_t`
14
-
- Members: `camelCase`
15
-
- Enum: `SNAKE_CASE`
16
-
- Macros: `SNAKE_CASE`
17
-
18
-
## Brace Style
19
-
20
-
```c++
21
-
intmyFunction() {
22
-
if (shortIf) { shortFunctionName(); }
23
-
24
-
if (longIf) {
25
-
longFunction();
26
-
otherStuff();
27
-
myLongFunction();
28
-
}
29
-
}
30
-
```
31
-
32
-
Note: If it makes the code cleaner, remember to use the `?` keyword instead of a `if else` statement.
33
-
34
-
## Pointers
35
-
36
-
Please use `type* name` for pointers.
37
-
38
-
## Structure
39
-
40
-
Headers and their associated C++ files shall be in the same directory. All headers must use `#pragma once` instead of other include guards. Only include files in a header that are being used in that header. Include the rest in the associated C++ file.
41
-
42
-
# Modules
43
-
44
-
## Module Naming Convention
45
-
46
-
All modules names must be `snake_case`. If the module is a source, it must end with `_source`. If it is a sink, it must end with `_sink`.
47
-
48
-
For example, lets take the module named `cool_source`:
49
-
50
-
- Directory: `cool_source`
51
-
- Class: `CoolSourceModule`
52
-
- Binary: `cool_source.<os dynlib extension>`
53
-
54
-
## Integration into main repository
55
-
56
-
If the module meets the code quality requirements, it may be added to the official repository. A module that doesn't require any external dependencies that the core doesn't already use may be enabled for build by default. Otherwise, they must be disabled for build by default with a `OPT_BUILD_MODULE_NAME` variable set to `OFF`.
57
-
58
-
# JSON Formatting
59
-
60
-
The ability to add new radio band allocation identifiers and color maps relies on JSON files. Proper formatting of these JSON files is important for reference and readability. The following guides will show you how to properly format the JSON files for their respective uses.
61
-
62
-
**IMPORTANT: JSON File cannot contain comments, there are only in this example for clarity**
3
+
Code pull requests are **NOT welcome**. Please open an issue discussing potential bugfixes or feature requests instead.
63
4
64
5
## Band Frequency Allocation
65
6
@@ -119,8 +60,8 @@ Please follow this guide to properly format the JSON files for custom color maps
119
60
}
120
61
```
121
62
122
-
# Best Practices
63
+
# JSON Formatting
64
+
65
+
The ability to add new radio band allocation identifiers and color maps relies on JSON files. Proper formatting of these JSON files is important for reference and readability. The following guides will show you how to properly format the JSON files for their respective uses.
123
66
124
-
* All additions and/or bug fixes to the core must not add additional dependencies.
125
-
* Use VSCode for development, VS seems to cause issues.
126
-
* DO NOT use libboost for any code meant for this repository
67
+
**IMPORTANT: JSON File cannot contain comments, there are only in this example for clarity**
0 commit comments