Move version and font to separate header
This commit is contained in:
parent
bff030dd8c
commit
5f46139416
3 changed files with 39 additions and 7 deletions
36
buffyboard.h
Normal file
36
buffyboard.h
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/**
|
||||
* Copyright 2021 Johannes Marbach
|
||||
*
|
||||
* This file is part of buffyboard, hereafter referred to as the program.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef BB_BUFFYBOARD_H
|
||||
#define BB_BUFFYBOARD_H
|
||||
|
||||
#include "lvgl/lvgl.h"
|
||||
|
||||
#ifndef BB_VERSION
|
||||
#define BB_VERSION "?" /* Just to silence IDE warning. Real version injected by meson during build. */
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Fonts
|
||||
*/
|
||||
|
||||
LV_FONT_DECLARE(font_32);
|
||||
|
||||
#endif /* BB_BUFFYBOARD_H */
|
||||
|
|
@ -20,6 +20,8 @@
|
|||
|
||||
#include "command_line.h"
|
||||
|
||||
#include "buffyboard.h"
|
||||
|
||||
#include <getopt.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
|||
8
main.c
8
main.c
|
|
@ -18,6 +18,7 @@
|
|||
*/
|
||||
|
||||
|
||||
#include "buffyboard.h"
|
||||
#include "command_line.h"
|
||||
#include "indev.h"
|
||||
#include "sq2lv_layouts.h"
|
||||
|
|
@ -40,13 +41,6 @@
|
|||
#include <sys/time.h>
|
||||
|
||||
|
||||
/**
|
||||
* Custom fonts
|
||||
*/
|
||||
|
||||
LV_FONT_DECLARE(font_32);
|
||||
|
||||
|
||||
/**
|
||||
* Static variables
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue