chore: update build system to clean core object files and add cross-compilation support for Windows
This commit is contained in:
parent
3a11f43fdc
commit
652e3b7f6a
3 changed files with 16 additions and 7 deletions
2
Makefile
2
Makefile
|
|
@ -27,7 +27,7 @@ clean:
|
||||||
echo "Cleaning $$plugin..."; \
|
echo "Cleaning $$plugin..."; \
|
||||||
$(MAKE) clean -C plugins/$$plugin || true; \
|
$(MAKE) clean -C plugins/$$plugin || true; \
|
||||||
done
|
done
|
||||||
rm -rf bin build
|
rm -rf bin build core/*.o core/*.obj
|
||||||
|
|
||||||
# --------------------------------------------------------------
|
# --------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
10
README.md
10
README.md
|
|
@ -22,6 +22,16 @@ If already cloned without submodules
|
||||||
|
|
||||||
`make plugins`
|
`make plugins`
|
||||||
|
|
||||||
|
To cross compile with windows. (Not actually tested but builds)
|
||||||
|
|
||||||
|
`make plugins CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ WINDOWS=true`
|
||||||
|
|
||||||
|
Do bear in front to generate types
|
||||||
|
```
|
||||||
|
make clean
|
||||||
|
bear -- make plugins
|
||||||
|
```
|
||||||
|
|
||||||
### Verify
|
### Verify
|
||||||
|
|
||||||
`ls bin/`
|
`ls bin/`
|
||||||
|
|
@ -10,7 +10,6 @@ void Clipper::process(const float *in, float *out, uint32_t frames) {
|
||||||
void Clipper::processStereo(const float *inLeft, const float *inRight,
|
void Clipper::processStereo(const float *inLeft, const float *inRight,
|
||||||
float *outLeft, float *outRight, uint32_t frames) {
|
float *outLeft, float *outRight, uint32_t frames) {
|
||||||
for (uint32_t i = 0; i < frames; ++i) {
|
for (uint32_t i = 0; i < frames; ++i) {
|
||||||
|
|
||||||
outLeft[i] = clip(inLeft[i]);
|
outLeft[i] = clip(inLeft[i]);
|
||||||
outRight[i] = clip(inRight[i]);
|
outRight[i] = clip(inRight[i]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue