From d51604d94e66d400376091aa2a735a238bb74f20 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Sat, 11 May 2019 17:22:11 +0300 Subject: device: fix screen code. Make the screen code actually work... AND build, to begin with. Signed-off-by: Gediminas Jakutis --- src/device/meson.build | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/device/meson.build') diff --git a/src/device/meson.build b/src/device/meson.build index b3df933..9435895 100644 --- a/src/device/meson.build +++ b/src/device/meson.build @@ -1,6 +1,17 @@ fw_image = 'fw.bin' decl = 'const char * const %s = "%s";\n' +oledlibnames = ['SSD1306Wire.h', 'OLEDDisplay.h', 'OLEDDisplay.cpp', 'OLEDDisplayFonts.h'] if get_option('fwbuild') + libpath = get_option('oledlib') + assert((libpath != ''), 'path to oled lib is empty') + + oledlib = [] + foreach i : oledlibnames + oledlib += files(libpath + '/' + i) + endforeach + + assert((oledlib != []), 'oled lib not found in the supplied lib directory') + espmake = find_program('espmake') printf = find_program('printf') cat = find_program('cat') @@ -8,6 +19,8 @@ if get_option('fwbuild') fw_filenames = ['main.ino'] fw_true_sources = files(fw_filenames) + fw_filenames += oledlibnames + fw_true_sources += oledlib sourcedir = meson.current_source_dir() builddir = meson.current_build_dir() -- cgit v1.2.3