Compare commits

..

No commits in common. "30422df0da09d2cdfeeb019dd6fce4f93ef9d49e" and "dfa3cc6c5b7e039870b66a86c3a88547b71059b6" have entirely different histories.

4 changed files with 8 additions and 43 deletions

View File

@ -16,10 +16,7 @@ clean:
libs: $(BUILD_DIR)/hid.o $(BUILD_DIR)/libmpdclient.o
submodules:
git submodule update --init --recursive
.PHONY: clean all run libs submodules
.PHONY: clean all run libs
#################################################
# Flags and autodetection
@ -31,14 +28,11 @@ CPPFLAGS := -MMD -MP \
-I libs/hidapi/hidapi \
-I libs/spdlog/include \
-I libs/libmpdclient/include \
-I libs/libmpdclient/output \
$(shell pkg-config --cflags hunspell)
-I libs/libmpdclient/output
# udev: required by hidapi
LDFLAGS := \
-l fftw3 \
-l udev \
$(shell pkg-config --libs hunspell)
# TODO: better hunspell link
LDFLAGS := -l fftw3 -l udev -l hunspell-1.7
# Find all cpp files in source dirs
SRCS := $(shell find $(SRC_DIRS) -name '*.cpp')
@ -69,8 +63,6 @@ $(BUILD_DIR)/hid.o:
# Build libmpdclient
$(BUILD_DIR)/libmpdclient.o:
@mkdir -p $(BUILD_DIR)
@cd libs/libmpdclient && \
meson . output && \
ninja -C output

View File

@ -1,25 +0,0 @@
# Ergodox Host Interface
Host software for [Betalupi Ergodox](https://git.betalupi.com/Mark/QMK).
## Features:
- Music visualizer ([here](https://git.betalupi.com/Mark/hostdox/src/branch/master/src/signal_processing))
- Spell checking with hunspell
-------------------------------------------------
## Dependencies:
Run:
- hunspell
Build:
- meson (for libmpdclient)
- ninja (for libmpdclient)
- gcc
-------------------------------------------------
## Building
``make submodules`` to initialize git submodules \
``make all`` to build, or ``make run`` to build and run.

View File

@ -11,8 +11,10 @@
#include <thread>
// MPD client
#include "mpd/client.h"
// Spell checking
#include "hunspell.hxx"
// TODO: Include this properly
#include "/usr/include/hunspell/hunspell.hxx"
// Local files
#include "utility/bitmap.hpp"
#include "utility/buffer.hpp"

View File

@ -1,9 +1,5 @@
#include "bitmap.hpp"
// Simple bitmap library.
// Used to debug music visualizer.
Bitmap::Bitmap(size_t w, size_t h) {
this->width = w;
this->height = h;