diff options
author | 2019-05-11 17:22:11 +0300 | |
---|---|---|
committer | 2019-05-11 17:22:11 +0300 | |
commit | d51604d94e66d400376091aa2a735a238bb74f20 (patch) | |
tree | 5dd27fc0e6b764fedb316d2a47f3e2a19c44b529 /src/device/meson.build | |
parent | 98a8d1c8dea0f43fb1f3fe3079c1bfb8b50d2f81 (diff) | |
download | usurpation-d51604d94e66d400376091aa2a735a238bb74f20.tar.gz usurpation-d51604d94e66d400376091aa2a735a238bb74f20.tar.bz2 usurpation-d51604d94e66d400376091aa2a735a238bb74f20.zip |
device: fix screen code.
Make the screen code actually work... AND build, to begin with.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Diffstat (limited to 'src/device/meson.build')
-rw-r--r-- | src/device/meson.build | 13 |
1 files changed, 13 insertions, 0 deletions
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() |